/* ============================================
   TURKUSERIALAI.LIVE — PREMIUM THEME v4
   Plus Jakarta Sans · Cinematic Dark
   ============================================ */

:root {
  --bg-deep: #060a10;
  --bg-primary: #0b1018;
  --bg-card: #111a24;
  --bg-elevated: #162030;
  --bg-glass: rgba(11, 16, 24, 0.8);
  --border-subtle: rgba(255,255,255,0.06);
  --border-light: rgba(255,255,255,0.10);
  --border-hover: rgba(255,255,255,0.16);
  --text-primary: #eaeff5;
  --text-secondary: #94a7be;
  --text-muted: #586b82;
  --accent: #e8443a;
  --accent-warm: #f2784b;
  --accent-glow: rgba(232, 68, 58, 0.14);
  --accent-gradient: linear-gradient(135deg, #f2784b 0%, #e8443a 50%, #c2293f 100%);
  --gold: #d4a855;
  --green: #34d399;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-hover: 0 20px 60px rgba(0,0,0,0.55);
  --shadow-glow: 0 0 40px rgba(232, 68, 58, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* === RESET === */
*{background:0 0;margin:0;padding:0;outline:0;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,figure img,footer,header,hgroup,main,nav,section{display:block}
img{max-width:100%}.clr{clear:both}
.clearfix::after{content:"";display:table;clear:both}

/* === BASE === */
body {
  font: 400 14px/1.6 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 0; margin: 0; color: var(--text-primary);
  background: var(--bg-deep);
  min-height: 100vh; width: 100%;
}
/* Noise overlay */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}
a { color: var(--text-primary); text-decoration: none; transition: color 0.25s ease; }
a:focus, a:hover { color: var(--accent); text-decoration: none; }
h1,h2,h3,h4,h5 { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }

/* === BUTTONS === */
button, input[type=button], input[type=password], input[type=submit], input[type=text], select, textarea {
  appearance: none; font-size: 14px; font-family: inherit;
}
.btn, .button, .meta-fav a, .pagi-load a, .qq-upload-button, .self_delete_link,
.up-second li a, .usp-btn a, .usp-edit a, button:not(.color-btn):not(.tox-tbtn):not(.f-button):not([class*=fr]):not(.search-btn):not([class*=owl-]),
html input[type=button], input[type=reset], input[type=submit] {
  display: inline-block; text-align: center; padding: 0 24px;
  height: 42px; line-height: 42px; cursor: pointer; font-weight: 700;
  background: var(--accent-gradient); color: #fff; font-size: 13px;
  border-radius: var(--radius-md); transition: all 0.35s var(--ease);
  letter-spacing: 0.02em;
}
.btn:hover, .button:hover, .meta-fav a:hover, .pagi-load a:hover, .qq-upload-button:hover,
.up-second li a:hover, .usp-btn a:hover, .usp-edit a:hover, .self_delete_link:hover,
button:not(.color-btn):not([class*=fr]):not(.tox-tbtn):not(.f-button):not(.search-btn):not([class*=owl-]):hover,
html input[type=button]:hover, input[type=reset]:hover, input[type=submit]:hover {
  background: var(--accent-gradient); color: #fff; border-radius: var(--radius-md);
  transform: translateY(-2px); box-shadow: 0 8px 30px rgba(232,68,58,0.35);
}
button:active, input[type=button]:active, input[type=submit]:active { transform: translateY(0); box-shadow: none; }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-gradient); border-radius: 3px; }

/* === FORM INPUTS === */
input[type=password], input[type=text] { height: 42px; line-height: 42px; border-radius: var(--radius-md); padding: 0 16px; }
select { height: 42px; padding: 0 16px; border-radius: var(--radius-md); }
textarea { padding: 16px; overflow: auto; vertical-align: top; resize: vertical; border-radius: var(--radius-md); }
input[type=password], input[type=text], select, textarea {
  width: 100%; background: rgba(255,255,255,0.04); color: var(--text-primary);
  border: 1px solid var(--border-subtle); transition: all 0.3s var(--ease);
}
select { width: auto; }
input[type=password]:focus, input[type=text]:focus, textarea:focus {
  border-color: rgba(232,68,58,0.3); box-shadow: 0 0 0 3px rgba(232,68,58,0.06), 0 8px 30px rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.06);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); opacity: 1; font-size: 13px; }
input:focus::placeholder, textarea:focus::placeholder { color: transparent; }

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

/* === FLEX UTILS === */
#dle-content,.fx-row{display:flex;flex-wrap:wrap}
.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-basis:0px;flex-grow:1;max-width:100%;min-width:50px}
.fx-between{justify-content:space-between;z-index:111}
.fw700,b,strong{font-weight:600}
.icon-left .icon,.icon-left [class*=fa-]{margin-right:6px}
.icon-right .icon,.icon-right [class*=fa-]{margin-left:10px}
#dofullsearch,.hidden{display:none}
.anim,.btn,.footer a,.header-btn,.popular-item-img::before,.short-img,.short-item a,
.side-nav a,.sidebar a,button{transition:all 0.35s var(--ease)}
.form-wrap h1,.mtitle,.sub-title h1{margin-bottom:30px;font-weight:800;font-size:24px!important}
#dle-content>:not(.th-item){width:100%}

/* ========== LAYOUT ========== */
.wrap { min-width: 320px; position: relative; padding: 16px; }
.wrap-center { max-width: 1300px; margin: 0 auto; position: relative; z-index: 20; }
.wrap-main {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 0 120px rgba(0,0,0,0.6);
  overflow: hidden;
}

/* ========== HEADER ========== */
.header {
  padding: 0 28px; display: flex; align-items: center; height: 58px;
  background: var(--bg-glass);
  backdrop-filter: blur(30px) saturate(1.3); -webkit-backdrop-filter: blur(30px) saturate(1.3);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky; top: 0; z-index: 100;
  gap: 0;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  height: 58px; line-height: 58px; font-size: 24px; font-weight: 300;
  color: var(--text-primary); white-space: nowrap;
  letter-spacing: -0.02em;
  flex-shrink: 0; margin-right: 8px;
}
.logo-icon {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(232,68,58,0.3));
}
.logo span {
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.logo span.logo-domain {
  font-size: 13px; font-weight: 400; color: var(--text-muted);
  -webkit-text-fill-color: var(--text-muted); margin-left: 2px;
}

/* Header inline nav */
.header-nav {
  display: flex; align-items: center; height: 58px;
  margin: 0 auto; padding: 0 16px;
}
.header-nav a {
  display: flex; align-items: center; height: 58px;
  padding: 0 16px; font-size: 12px; font-weight: 600;
  color: var(--text-muted); text-decoration: none;
  text-transform: uppercase; letter-spacing: 0.06em;
  position: relative; transition: color 0.25s ease;
  white-space: nowrap;
}
.header-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 12px; right: 12px;
  height: 2px; background: var(--accent-gradient);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0); transition: transform 0.3s var(--ease);
}
.header-nav a:hover { color: var(--text-primary); }
.header-nav a:hover::after { transform: scaleX(1); }
.header-nav a.active { color: var(--text-primary); }
.header-nav a.active::after { transform: scaleX(1); }
/* Pulsing dot for active page */
.header-nav a.active::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); margin-right: 7px; flex-shrink: 0;
  animation: navPulse 2s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(232,68,58,0.5);
}
@keyframes navPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } }

.header-btn { padding: 0 24px; border-radius: var(--radius-md); font-size: 13px; }

/* Search - right aligned */
.search-wrap { position: relative; width: 220px; flex-shrink: 0; margin-left: auto; }
.search-box { position: relative; }
.search-box input, .search-box input:focus {
  padding: 0 40px 0 14px; height: 36px; line-height: 36px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle); border-radius: 10px;
  font-size: 13px; width: 100%;
}
.search-box input:focus {
  border-color: rgba(232,68,58,0.3);
  box-shadow: 0 0 0 3px rgba(232,68,58,0.06), 0 4px 20px rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.06); width: 280px;
  transition: all 0.35s var(--ease);
}
.search-box input { transition: all 0.35s var(--ease); }
.search-box input:not(:focus)::placeholder { color: var(--text-muted); font-size: 12px; }
.search-box button {
  position: absolute; right: 0; top: 0; z-index: 10;
  width: 40px; height: 36px; cursor: pointer; background: 0 0;
  line-height: 36px; color: var(--text-muted); text-align: center;
  border-radius: 0 10px 10px 0; transition: color 0.25s ease;
}
.search-box button:hover { color: var(--accent); }

/* Old f-menu hidden - nav is in header now */
.f-menu { display: none; }

/* ========== CAROUSEL / HERO ========== */
.carou-sect {
  position: relative; padding: 24px 28px;
  background: linear-gradient(180deg, rgba(232,68,58,0.03) 0%, transparent 60%);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}
.carou-sect::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(232,68,58,0.25) 50%, transparent 100%);
}
.carou-content { height: 230px; counter-reset: rank; }
.carou-title {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent); margin-bottom: 18px;
}
.carou-title .line { flex: 0 0 20px; height: 2px; background: var(--accent-gradient); border-radius: 1px; }
.carou-title [class*=fa-] {
  color: var(--accent); margin-right: 0;
  width: auto; height: auto; line-height: 1; text-align: center;
  border-radius: 0; background: transparent; display: inline;
}

.popular-item { transition: all 0.45s var(--ease); counter-increment: rank; position: relative; }
.popular-item-img {
  display: block; height: 230px; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-card);
}
.popular-item-img img { transition: transform 0.6s var(--ease); }
.popular-item:hover .popular-item-img img { transform: scale(1.06); }
.popular-item:hover {
  transform: translateY(-6px);
  z-index: 2;
}
/* Ranking number badge - uniform accent style */
.popular-item::after {
  content: counter(rank); position: absolute; top: 8px; right: 8px; z-index: 12;
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent-gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff;
  line-height: 30px; text-align: center;
  box-shadow: 0 3px 12px rgba(232,68,58,0.45);
}
.popular-item-title {
  position: absolute; z-index: 10; left: 0; bottom: 0; right: 0;
  padding: 12px 14px; text-align: center;
  color: #fff; font-weight: 700; font-size: 13px; overflow-wrap: break-word;
  line-height: 1.3;
}
.popular-item-img::before {
  content: ""; position: absolute; z-index: 5;
  left: 0; right: 0; bottom: 0; height: 65%;
  background: linear-gradient(transparent, rgba(6,8,12,0.95));
  opacity: 1;
}

/* ========== COLUMNS ========== */
.cols { padding: 28px; gap: 28px; }
.main { min-height: 100vh; }
.sidebar { width: 300px; margin-left: 0; order: 1; flex-shrink: 0; }

/* ========== FOOTER ========== */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(8,12,18,0.95);
}
.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px; gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo-icon { width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0; }
.footer-brand-text { display: flex; flex-direction: column; }
.footer-name { font-size: 16px; font-weight: 300; color: var(--text-primary); letter-spacing: -0.01em; }
.footer-name b { font-weight: 800; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.footer-name small { font-size: 11px; color: var(--text-muted); margin-left: 2px; }
.footer-desc { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.footer-links { display: flex; gap: 6px; flex-wrap: wrap; }
.footer-links a {
  padding: 6px 14px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-subtle);
  font-size: 12px; font-weight: 600; color: var(--text-secondary);
  text-decoration: none; transition: all 0.25s ease; text-transform: uppercase;
  letter-spacing: 0.03em;
}
.footer-links a:hover { color: var(--accent); border-color: rgba(232,68,58,0.2); background: var(--accent-glow); }
.footer-social { display: flex; gap: 8px; }
.footer-social-btn {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 14px; text-decoration: none;
  transition: all 0.25s ease;
}
.footer-social-btn:hover { color: #fff; background: var(--accent-gradient); border-color: transparent; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(232,68,58,0.3); }
.footer-bottom {
  padding: 14px 28px; border-top: 1px solid var(--border-subtle);
  font-size: 11px; color: var(--text-muted); text-align: center;
}
.footer a { color: var(--accent); text-decoration: none; font-weight: 600; }
.footer a:hover { text-decoration: underline; }

#gotop {
  position: fixed; width: 44px; height: 44px; line-height: 44px;
  right: 16px; bottom: 16px; z-index: 990; display: none;
  background: var(--bg-glass); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); cursor: pointer; font-size: 18px; text-align: center;
  backdrop-filter: blur(16px); transition: all 0.3s var(--ease);
}
#gotop:hover { background: var(--accent-gradient); color: #fff; border-color: transparent; }

/* ========== SIDEBAR ========== */
.side-box {
  margin-bottom: 20px; background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  overflow: hidden; transition: border-color 0.3s ease;
}
.side-box:hover { border-color: var(--border-light); }
.side-bt {
  padding: 14px 16px; background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 0;
}
.mb-remove { margin-bottom: -10px; }
.nav-col { width: 50%; padding: 14px; }
.nav-col + .nav-col { width: 50%; }
.nav-title {
  font-size: 10px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px;
}
.nav-menu + .nav-title { margin-top: 12px; }
.nav-menu a {
  font-size: 12px; color: var(--text-secondary); display: inline-block;
  margin: 0 4px 5px 0; padding: 6px 11px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); transition: all 0.25s ease; font-weight: 500;
}
.nav-menu a:hover, .side-popular-item:hover .side-popular-item-title, a.short-title:hover {
  color: var(--accent); background: var(--accent-glow);
  border-color: rgba(232,68,58,0.2); transform: translateY(-1px);
}
.side-popular-item:nth-child(2n+1) {
  background: rgba(255,255,255,0.01); border-radius: var(--radius-md); position: relative;
}
.side-popular-item:nth-child(2n+1):before { display: none; }
.side-popular-item { margin-bottom: 0; padding: 12px 16px; cursor: pointer; transition: all 0.25s ease; }
.side-popular-item:hover { background: rgba(255,255,255,0.03); }
.side-popular-item + .side-popular-item { border-top: 1px solid var(--border-subtle); }
.side-popular-item-img { width: 54px; height: 72px; margin-right: 14px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border-subtle); }
.side-popular-item-title { font-weight: 600; font-size: 13px; line-height: 1.3; }
.side-popular-item-info {
  font-size: 10px; color: var(--accent); text-align: center;
  background: var(--accent-glow); padding: 3px 8px; border-radius: 5px;
  display: inline-block; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.side-popular-item-date { color: var(--text-muted); margin-top: 4px; font-size: 11px; }
.side-recommend-item { display: block; margin: 4px; margin-top: 0; margin-bottom: 15px; width: 45%; transition: all 0.35s var(--ease); }
.side-recommend-item-img { border-radius: var(--radius-md); overflow: hidden; }
.side-recommend-item:hover { opacity: 0.85; transform: translateY(-3px); }

/* Latest comments sidebar */
.lcomm { margin-bottom: 10px; position: relative; z-index: 111; padding: 14px 16px; background: rgba(255,255,255,0.02); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); transition: all 0.25s ease; }
.lcomm:hover { border-color: var(--border-light); }
.ltitle { display: block; line-height: 1; font-weight: 300; font-size: 13px; margin-top: 10px; padding-left: 2px; position: relative; }
.ltext { line-height: 1.5; padding: 0; background: transparent; border: none; font-size: 13px; }
.ltext:after { display: none; }
.lmeta { font-size: 12px; margin: 8px 0 0; color: var(--text-muted); display: flex; align-items: center; gap: 10px; }
.lav, .ldate, .lname { display: inline-block; vertical-align: middle; }
.lav { width: 26px; height: 26px; border-radius: 8px; margin-right: 0; }
.lcomm .comm-letter { line-height: 26px; font-size: 11px; border-radius: 8px; background: linear-gradient(135deg, var(--bg-elevated), #1e2838); color: var(--accent); }
.lname { font-weight: 600; }
.ldate { margin-left: auto; }

/* ========== SECTIONS ========== */
.sect { margin-bottom: 24px; }
.sect-header { display: flex; align-items: center; margin-bottom: 20px; }
.sect:last-child { margin-bottom: 0; }
.sect-title {
  font-weight: 700; font-size: 15px; text-transform: uppercase;
  letter-spacing: 0.05em; display: flex; align-items: center; gap: 10px;
}
.carou-title [class*=fa-], .sect-title [class*=fa-], .side-bt [class*=fa-], .speedbar [class*=fa-] {
  color: var(--accent); margin-right: 8px;
  width: 28px; height: 28px; line-height: 28px; text-align: center;
  border-radius: 8px; background: var(--accent-glow); display: inline-block;
}

/* Sorter */
.sect-link, .sorter {
  position: relative; cursor: pointer; height: 30px; line-height: 28px; margin-left: 12px;
  padding: 0 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); font-size: 12px; display: block; transition: all 0.25s ease;
  color: var(--text-secondary); font-family: inherit;
}
.sorter::before { content: attr(data-label); display: inline-block; vertical-align: top; }
.sorter > span { display: inline-block; vertical-align: top; margin-left: 2px; }
.sorter form {
  display: none; background: var(--bg-elevated); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 10px; line-height: 26px;
  position: absolute; right: -1px; top: 100%; width: 160px; z-index: 999;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.sorter a:hover { text-decoration: underline; }
.sect-link:hover, .sorter:hover { border-color: var(--border-hover); color: var(--text-primary); }

/* ========== SHORT STORY CARDS (list) ========== */
.short-item {
  margin-bottom: 16px; padding: 20px;
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); transition: all 0.4s var(--ease);
}
.short-item:hover {
  border-color: var(--border-hover); transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.short-img { width: 170px; height: 250px; margin-right: 20px; display: block; border-radius: var(--radius-md); overflow: hidden; }
.short-header { margin-bottom: 5px; }
.short-title { display: block; font-size: 18px; font-weight: 700; line-height: 1.5; letter-spacing: -0.02em; }
.short-text { font-size: 14px; line-height: 1.7; }
.short-list li { position: relative; padding: 0 0 4px 120px; margin: 3px 0; font-size: 14px; line-height: 1.7; border-bottom: 1px solid var(--border-subtle); }
.short-list li > span:first-child { position: absolute; left: 0; top: 0; color: var(--text-muted); font-weight: 500; }
.short-list a { color: var(--accent); }
.short-meta { font-size: 13px; }
.short-metafuls { margin-top: 15px; padding: 10px 14px; font-size: 13px; border: 1px solid var(--border-subtle); background: rgba(255,255,255,0.02); border-radius: var(--radius-md); }

/* Play mask overlay — image lives inside .mask so it must stay visible */
.mask {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  text-align: center; padding: 0;
  background: transparent; color: #fff; font-size: 20px;
  align-items: center; border-radius: inherit;
  z-index: 2;
}
.mask img { position: relative; z-index: 1; transition: transform 0.5s var(--ease), filter 0.5s ease; }
.th-item:hover .mask img, .popular-item:hover .mask img { transform: scale(1.06); filter: brightness(0.85); }
.mask::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(6,10,16,0.7) 0%, rgba(6,10,16,0.2) 40%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease; z-index: 2;
  border-radius: inherit;
}
.mask span.fal {
  width: 52px; height: 52px; border-radius: 50%; text-align: center; line-height: 52px;
  background: var(--accent-gradient); margin: 0 auto; padding-left: 3px; font-size: 18px;
  box-shadow: 0 4px 24px rgba(232,68,58,0.5); transition: all 0.4s var(--ease);
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.6);
  opacity: 0; z-index: 3;
}
.th-item:hover .mask::before, .popular-item:hover .mask::before,
.side-recommend-item:hover .mask::before, .side-popular-item:hover .mask::before { opacity: 1; }
.th-item:hover .mask span.fal, .popular-item:hover .mask span.fal,
.side-recommend-item:hover .mask span.fal, .side-popular-item:hover .mask span.fal {
  opacity: 1; transform: translate(-50%, -50%) scale(1);
  box-shadow: 0 4px 24px rgba(232,68,58,0.5), 0 0 0 8px rgba(232,68,58,0.15);
}
.ps-link { cursor: pointer; }
.flex-col { display: flex; flex-direction: column; justify-content: center; }
.short-meta-item { margin-right: 20px; }
.short-rating { line-height: 28px; background: rgba(255,255,255,0.04); padding: 0 12px; font-size: 13px; border-radius: var(--radius-sm); border: 1px solid var(--border-subtle); margin-right: 20px; }
.short-rating .fa-thumbs-up { color: #4ade80; margin-right: 10px; }
.short-rating .fa-thumbs-down { color: #ef4444; margin: 0 10px; }
.short-label {
  background: var(--accent-gradient); color: #fff; padding: 4px 10px;
  position: absolute; left: 10px; top: 10px; z-index: 10;
  font-size: 10px; font-weight: 700; border-radius: var(--radius-sm);
  text-transform: uppercase; letter-spacing: 0.04em;
  box-shadow: 0 2px 10px rgba(232,68,58,0.4);
}
.short-btn { height: 32px; line-height: 32px; font-size: 12px; padding: 0 12px; border-radius: var(--radius-sm); }
.short-rate-in { line-height: 30px; border-radius: var(--radius-sm); text-align: center; font-size: 13px; opacity: 0.9; padding: 0 8px; margin-left: 10px; font-weight: 600; }
.short-rate-in::before { content: attr(data-text); display: inline; margin-right: 3px; text-transform: uppercase; }
.short-rate-kp { background: #f60; color: #fff; }
.short-rate-imdb { background: #f5c518; color: #000; }
.mrating { margin-right: 10px; overflow: hidden; }
.mrating a { transition: none; }

/* SEO desc */
.site-desc { line-height: 1.7; font-size: 14px; padding: 24px; background: rgba(255,255,255,0.02); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); }
.site-desc h1,.site-desc h2,.site-desc h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; text-align: center; text-transform: uppercase; }
.site-desc li { list-style-type: disc; margin-left: 40px; }
.site-desc p { margin-bottom: 10px; }
.site-desc > :last-child { margin-bottom: 0; }
.site-desc a { color: var(--accent); text-decoration: underline; }
.site-desc img { float: left; max-width: 200px; margin: 0 10px 10px 0; border-radius: var(--radius-sm); }

/* Pagination */
.bottom-nav { margin-bottom: -10px; text-align: center; }
.navigation a, .navigation span, .pnext a, .pnext > span, .pprev a, .pprev > span {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 10px; margin: 0 3px 10px; line-height: 38px; min-width: 38px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
  color: var(--text-secondary); transition: all 0.25s ease;
}
.navigation a:hover { border-color: var(--border-hover); color: var(--text-primary); background: rgba(255,255,255,0.05); }
.navigation span:not(.nav_ext), .pagi-nav a:hover {
  background: var(--accent-gradient); color: #fff; border: 0;
  box-shadow: 0 2px 12px rgba(232,68,58,0.3);
}

/* Breadcrumbs */
.speedbar { font-size: 13px; margin-bottom: 16px; padding: 12px 16px; background: rgba(255,255,255,0.02); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
.speedbar .fal { margin-right: 8px; }

/* ========== FULL STORY ========== */
.fleft { width: 220px; margin-right: 24px; flex-shrink: 0; }
.fimg { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,0.4); position: relative; }
.fimg img { width: 100%; display: block; }
.ftext { margin: 20px 0; font-size: 14px; line-height: 1.7; color: var(--text-secondary); }
.fcols .short-list li { font-size: 13px; line-height: 1.7; }
.fcols .short-meta-item:last-child { margin-right: 0; }
h1 a { margin-left: 10px; font-size: 15px; }
.fcols { padding: 28px; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); position: relative; overflow: hidden; }
.fcols::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--accent-gradient); opacity: 0.5; }
.fcols .short-title { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }

/* Info list */
.short-list li { position: relative; padding: 8px 0 8px 130px; margin: 0; font-size: 14px; line-height: 1.6; border-bottom: 1px solid var(--border-subtle); color: var(--text-primary); }
.short-list li:last-child { border-bottom: none; }
.short-list li > span:first-child { position: absolute; left: 0; top: 8px; color: var(--text-muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.short-list a { color: var(--accent-warm); font-weight: 500; transition: color 0.2s; }
.short-list a:hover { color: var(--accent); }

.short-metafuls { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-subtle); }
.mrating { font-size: 14px; }

.frels .popular-item-img::before { background: linear-gradient(transparent, rgba(6,8,12,0.95)); opacity: 1; }
.fsubtitle { text-align: center; font-size: 18px; font-weight: 700; margin: 24px 0 16px; letter-spacing: -0.01em; }

/* Player modern */
.fplayer { position: relative; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow: hidden; }
.fctrl { padding: 0 20px 0 0; display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--border-subtle); background: rgba(255,255,255,0.015); }
.fplayer .tabs-sel span {
  display: inline-block; padding: 0 20px; height: 48px; line-height: 48px; cursor: pointer;
  background: rgba(255,255,255,0.02); border-right: 1px solid var(--border-subtle);
  font-weight: 600; font-size: 13px; transition: all 0.25s ease;
}
.fplayer .tabs-sel span.current { background: var(--accent-gradient); color: #fff; }
.fplayer .tabs-sel span:hover { color: var(--accent); }
.fplayer .tabs-sel span.current:hover { color: #fff; }
.js .tabs-b { background-color: #000; display: none; }
.js .tabs-b.visible { display: block; }
.fcompl a:hover, .ffav a:hover, .ffav span:hover { color: var(--accent); cursor: pointer; }
.fcompl, .ffav { margin-left: 20px; font-size: 13px; }
.ffav .fal, .ffav .fas { color: var(--accent); margin-right: 5px; }
.fcompl .fal { margin-right: 5px; color: var(--text-muted); }
.fshare { padding: 12px; text-align: center; white-space: nowrap; }
.fshare .fab, .fshare .fas { width: 38px; height: 32px; border-radius: var(--radius-sm); text-align: center; line-height: 32px; background: var(--accent); color: #fff; font-size: 14px; margin: 0 2px; cursor: pointer; transition: all 0.25s ease; }
.fshare .fa:hover { opacity: 0.8; transform: translateY(-2px); }
.fab.fa-vk { background: #5075a5; }
.fab.fa-facebook-f { background: #4b6baf; }
.fab.fa-twitter { background: #2daae1; }
.fa.fa-rss, .fab.fa-odnoklassniki { background: #fc6d00; }
.fas.fa-paper-plane { background: #5682a3; }
.video-box embed, .video-box frame, .video-box iframe, .video-box object, .video-box video { display: block; width: 100%; height: 480px; max-width: 100% !important; }
.mejs-container { max-width: 100% !important; }

/* Full text */
.full-text { line-height: 1.8; margin-bottom: 16px; padding: 24px; background: rgba(255,255,255,0.02); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); color: var(--text-secondary); }
.full-text img:not(.emoji) { max-width: 100%; margin-top: 10px; margin-bottom: 10px; border-radius: var(--radius-sm); }
.full-text > .highslide img[style*=left], .full-text > img[style*=left] { margin: 0 10px 10px 0; }
.full-text > .highslide img[style*=right], .full-text > img[style*=right] { margin: 0 0 10px 10px; }
.full-text a { text-decoration: underline; color: var(--accent); }
.full-text a:hover { text-decoration: none; }
.full-text h2,.full-text h3,.full-text h4,.full-text h5 { margin: 10px 0; font-size: 22px; font-weight: 700; }
.full-text p { margin-bottom: 10px; }
.full-text > ol,.full-text > ul { margin: 0; }
.full-text > ul li { list-style: disc; margin-left: 40px; }
.full-text > ol li { list-style: decimal; margin-left: 40px; }

/* Comments */
.add-comms { margin-bottom: 24px; padding: 24px; background: rgba(255,255,255,0.02); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); }
.ac-inputs input { width: 48.5%; margin-bottom: 15px; }
.ac-textarea textarea { height: 100px; margin-bottom: 15px; }
.ac-protect, .ac-textarea .bb-editor + br { display: none; }
.comments_subscribe input { margin-right: 10px; }
.comments_subscribe { display: block; }
.mass_comments_action { display: none; }
.last-comm-link { display: inline-block; padding-bottom: 20px; color: var(--accent); font-size: 18px; }
.comm-avatar { position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: var(--radius-md); }
.comm-letter {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  line-height: 40px; text-align: center;
  background: linear-gradient(135deg, var(--bg-elevated), #1e2838);
  color: var(--accent); font-size: 16px; font-weight: 700;
  text-transform: uppercase; border-radius: var(--radius-md);
}
.comm-item { font-size: 13px; padding-left: 55px; position: relative; min-height: 40px; margin-bottom: 20px; }
.comm-two { margin: 5px 0 10px; }
.comm-one > span { margin-right: 15px; opacity: 0.5; }
.comm-one > span.comm-author, .comm-one > span.comm-author a { font-weight: 600; opacity: 1; }
.comm-three-left > a, .comm-three-right li a { opacity: 0.6; }
.comm-three-right li { display: inline-block; margin-left: 15px; }
.comm-rate3 { white-space: nowrap; margin-right: 15px; height: 20px; line-height: 20px; display: inline-block; vertical-align: top; position: relative; top: -3px; }
.comm-rate3 a { display: inline-block; vertical-align: middle; position: relative; opacity: 0.8; }
.comm-rate3 a:first-child { top: -5px; }
.comm-rate3 > span { margin: 0 5px; }
.comm-rate3 > span > span.ratingtypeplus { color: #4ade80; }
.comm-rate3 > span > span.ratingplus { color: #a3e635; }
.comm-rate3 > span > span.ratingminus { color: #ef4444; }
.comm-three a:hover { border-bottom-color: transparent; }
.comm-three-left > a { opacity: 1; color: var(--accent); border-bottom: 1px dotted var(--accent); }

/* Login */
.overlay-box { position: fixed; z-index: 998; left: 0; top: 0; width: 100%; height: 100%; opacity: 0.9; background: var(--bg-deep); cursor: pointer; }
.login-box { position: fixed; z-index: 999; left: 50%; top: 50%; transform: translate(-50%,-50%); background: var(--bg-elevated); padding: 30px 40px 40px; border-radius: var(--radius-xl); border-top: 3px solid var(--accent); width: 400px; box-shadow: 0 25px 80px rgba(0,0,0,0.7); }
.login-close { width: 30px; height: 30px; line-height: 30px; text-align: center; font-size: 18px; cursor: pointer; position: absolute; top: 12px; right: 12px; color: var(--text-muted); border-radius: var(--radius-sm); transition: all 0.2s ease; }
.login-close:hover { color: var(--accent); background: var(--accent-glow); }
.login-title { font-size: 22px; font-weight: 800; margin-bottom: 20px; text-align: center; }
.login-avatar { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 15px; text-align: center; line-height: 60px; font-size: 24px; background: linear-gradient(135deg, var(--bg-elevated), #1e2838); color: var(--accent); }
.login-input { margin-bottom: 15px; }
.login-btn button { width: 100%; margin: 15px 0; }
.login-btm a { border-bottom: 1px dotted var(--accent); color: var(--accent); font-size: 13px; }
.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-muted); }
.login-check span::after, .login-check span::before { content: ""; position: absolute; top: 50%; transition: all 0.3s ease; }
.login-check span::before { left: 0; height: 12px; margin-top: -6px; width: 28px; border-radius: 6px; background: rgba(255,255,255,0.1); }
.login-check span::after { left: 1px; height: 14px; width: 14px; margin-top: -7px; background: var(--accent); border-radius: 7px; }
.login-check input:checked + span::before { background: rgba(232,68,58,0.2); }
.login-check input:checked + span::after { left: 13px; }
.login-menu { border-top: 1px solid var(--border-subtle); margin-top: -1px; }
.login-menu li { text-align: center; border-right: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); width: 50%; }
.login-menu a { display: block; padding: 10px 5px; font-size: 13px; }
.login-menu li .fa { display: none; height: 28px; font-size: 22px; color: var(--accent); }
.login-admin { text-align: center; margin: -10px 0 25px; }
.login-soc-title { display: flex; align-items: center; margin: 20px 0 15px; font-size: 13px; color: var(--text-muted); }
.login-soc-title::after, .login-soc-title::before { content: ""; height: 1px; background: var(--border-subtle); flex: 1; }
.login-soc-title::before { margin-right: 15px; }
.login-soc-title::after { margin-left: 15px; }
.login-soc-btns { text-align: center; }
.login-soc-btns a { display: inline-block; margin: 0 3px; vertical-align: top; }
.login-soc-btns img { display: block; width: 32px; height: 32px; border-radius: 50%; }

/* Owl carousel */
.owl-carousel{display:none;opacity:0;transition:opacity .3s linear;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(0,0,0)}
.owl-carousel .owl-item{position:relative;min-height:1px}
.owl-carousel .owl-dots.disabled,.owl-carousel .owl-nav.disabled,.owl-carousel.owl-refresh .owl-item{display:none}
.no-js .owl-carousel,.owl-carousel.owl-loaded,.owl-carousel.owl-loading{display:block;opacity:1}
.owl-carousel.owl-hidden,.owl-carousel.owl-loading{opacity:0}
.owl-carousel.owl-drag .owl-item{user-select:none}
.owl-carousel.owl-grab{cursor:grab}
.owl-carousel .animated{animation-duration:1s;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 .5s ease-in-out}
.owl-carousel .owl-item .owl-lazy{opacity:0;transition:opacity .4s ease}
.owl-carousel .owl-item img.owl-lazy{transform-style:preserve-3d}
.owl-nav{position:absolute;right:0;top:-8px;z-index:1}
.owl-next,.owl-prev{display:block;cursor:pointer;height:24px;line-height:24px;position:absolute;top:-46px;box-shadow:none;font-size:22px;background:var(--accent-gradient);-webkit-background-clip:text;-webkit-text-fill-color:transparent;transition:all .25s ease}
.owl-prev{right:40px}.owl-next{right:0}
.owl-next:hover,.owl-prev:hover{transform:scale(1.2)}

/* Mobile menu */
.btn-menu{display:none}
.side-panel{width:300px;height:100%;overflow:hidden auto;background:var(--bg-primary);padding:24px;z-index:9999;position:fixed;left:-340px;top:0;transition:left .35s var(--ease);border-right:1px solid var(--border-subtle)}
.side-panel.active{left:0}
.close-overlay{width:100%;height:100%;background:rgba(6,8,12,0.75);position:fixed;left:0;top:0;z-index:9998;display:none;backdrop-filter:blur(6px)}
.btn-close{cursor:pointer;display:block;left:300px;top:-50px;position:fixed;z-index:9999;width:44px;height:44px;line-height:44px;text-align:center;font-size:18px;background:var(--accent);color:#fff;transition:top .35s ease;border-radius:0 var(--radius-md) var(--radius-md) 0}
.btn-close.active{top:0}
body.opened-menu{overflow:hidden;width:100%;height:100%}
.side-panel .side-nav a{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.side-panel .side-box{margin-bottom:20px}
.section{text-align:center;padding-bottom:20px}
.sectbtn{display:inline-block;text-align:center;padding:0 16px;height:36px;line-height:36px;cursor:pointer;margin-left:5px;background:var(--accent-gradient);color:#fff;border-radius:var(--radius-sm);transition:all .25s ease;font-weight:700;font-size:12px}
.sectbtn:hover{transform:translateY(-2px);box-shadow:0 4px 15px rgba(232,68,58,0.35)}

/* Series groups */
.group_series-content{margin-bottom:16px;position:relative}
.group_series-title{position:absolute;left:0;top:0;background:rgba(255,255,255,0.03);border:1px solid var(--border-subtle);border-radius:var(--radius-md);padding:6px 8px;color:var(--text-muted);width:80px;text-align:center;font-size:12px}
.group_series-title strong{color:var(--accent);display:block;font-size:22px;background:var(--accent-gradient);-webkit-background-clip:text;-webkit-text-fill-color:transparent}
.group_series-list{padding-left:96px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;grid-auto-flow:dense}
.group_series-item{background:var(--bg-card);position:relative;display:flex;align-items:center;border-radius:var(--radius-md);overflow:hidden;border:1px solid var(--border-subtle);transition:all .25s ease}
.group_series-item:before{display:none}
.group_series-item:hover{border-color:rgba(232,68,58,0.2);background:rgba(232,68,58,0.04);transform:translateY(-1px)}
.group_series-item img{display:block;max-width:44px;min-width:44px;height:44px;object-fit:cover;margin:8px 10px 8px 8px;position:relative;border-radius:6px}
.group_series-item-title{line-height:22px;font-weight:600;margin:0 8px 0 0;font-size:13px;min-width:0;position:relative}
.group_series-item span:last-child{text-transform:uppercase}
.group_series-item-num{margin:0;color:var(--text-muted);line-height:22px;display:block;width:100%;font-size:11px;position:relative}

/* ========== THUMBNAIL GRID ========== */
.th-item {
  float: left; width: 24%; padding: 0 7px; margin-bottom: 18px; position: relative;
}
.th-item .th-in {
  display: block; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  transition: all 0.4s var(--ease);
  position: relative;
}
.th-item:hover .th-in {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover), 0 0 30px rgba(232,68,58,0.06);
  border-color: rgba(232,68,58,0.12);
}
.th-item:hover .th-in .img-resp-vert img { transform: scale(1.06); }
.th-img { border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; }
.th-img img { transition: transform 0.6s var(--ease); }
.th-desc {
  padding: 12px 14px; min-height: 56px; margin-top: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  position: relative;
}
.th-desc::before {
  content: ''; position: absolute; top: -1px; left: 20%; right: 20%;
  height: 1px; background: var(--accent-gradient); opacity: 0;
  transition: opacity 0.35s ease;
}
.th-item:hover .th-desc::before { opacity: 1; }
.th-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; }
.th-cat { margin-top: 5px; font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.th-meta { position: absolute; z-index: 10; font-size: 13px; }
.th-trl { right: 12px; bottom: 65px; display: inline-block; padding: 4px 10px; font-size: 9px; background: var(--accent-gradient); color: #fff; cursor: pointer; border-radius: 6px; font-weight: 700; }
.th-qual {
  left: 14px; top: 14px; display: inline-block; padding: 4px 10px;
  background: var(--accent-gradient); color: #fff; border-radius: var(--radius-sm);
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; box-shadow: 0 2px 10px rgba(232,68,58,0.4);
}
.seotexts { order: 2; padding-top: 20px; }
.namrecoms { font-size: 12px; margin-top: 6px; text-align: center; }

/* ========== TOASTS ========== */
.toasts{position:fixed;right:10px;top:20px;z-index:990;display:grid;gap:16px}
.toast{background:var(--bg-elevated);color:var(--text-primary);border-radius:var(--radius-lg);overflow:hidden;position:relative;width:400px;display:flex;align-items:center;gap:16px;padding:16px 20px;box-shadow:0 12px 40px rgba(0,0,0,0.5);border:1px solid var(--border-subtle);--accent:#e8443a;animation:showToast .5s ease forwards;max-width:calc(100vw - 40px)}
.toast__icon{font-size:24px;color:var(--accent)}.toast__descr{flex:1 1 0;max-width:100%;min-width:50px}
.toast__title{font-weight:700;color:var(--text-primary)}.toast__text{font-size:13px}
.toast__close{font-size:16px;margin:0 -8px;display:grid;place-items:center;cursor:pointer;opacity:.5;width:36px;height:36px;border-radius:var(--radius-sm);transition:all .2s ease}
.toast__close:hover{opacity:1;background:rgba(255,255,255,0.05)}
.toast::after{content:'';width:100%;height:3px;background:var(--accent);position:absolute;left:0;bottom:0;animation:progressToast var(--toast-timer) linear forwards}
.toast--success{--accent:#4ade80}.toast--warning{--accent:#fbbf24}.toast--error{--accent:#ef4444}
.toast--is-hiding{animation:hideToast .5s ease forwards}
@keyframes progressToast{100%{width:0}}
@keyframes showToast{0%{transform:translateX(calc(100% + 20px));opacity:0}100%{transform:translateX(0);opacity:1}}
@keyframes hideToast{0%{transform:translateX(0);opacity:1}100%{transform:translateX(calc(100% + 20px));opacity:0}}

/* Card entrance animation */
.th-item { animation: cardFadeIn 0.4s var(--ease) both; }
.th-item:nth-child(1) { animation-delay: 0.02s; }
.th-item:nth-child(2) { animation-delay: 0.06s; }
.th-item:nth-child(3) { animation-delay: 0.1s; }
.th-item:nth-child(4) { animation-delay: 0.14s; }
.th-item:nth-child(5) { animation-delay: 0.18s; }
.th-item:nth-child(6) { animation-delay: 0.22s; }
.th-item:nth-child(7) { animation-delay: 0.26s; }
.th-item:nth-child(8) { animation-delay: 0.3s; }
@keyframes cardFadeIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ========== RESPONSIVE ========== */
@media screen and (max-width: 1220px) {
  .wrap { padding: 0; overflow: hidden; }
  .carou-sect,.cols,.footer,.header { padding-left: 20px; padding-right: 20px; }
  .wrap-center { max-width: 1000px; border-radius: 0; }
  .wrap-main { border-radius: 0; border: none; }
  .sidebar { display: none; }
  .header-nav { display: none; }
  .search-wrap { margin-left: auto; }
  .btn-menu { display: flex; align-items: center; justify-content: center; font-size: 20px; margin-left: 12px; cursor: pointer; color: var(--accent); width: 40px; height: 40px; border-radius: var(--radius-md); background: rgba(255,255,255,0.04); border: 1px solid var(--border-subtle); transition: all 0.25s ease; flex-shrink: 0; }
  .btn-menu:hover { background: rgba(255,255,255,0.08); }
  .cols { padding-top: 20px; }
  .video-box embed,.video-box frame,.video-box iframe,.video-box object,.video-box video { height: 400px; }
}
@media screen and (max-width: 950px) {
  .wrap-center { max-width: 768px; }
  .short-meta-item:not(.mrating-count) { display: none; }
  .footer-top { flex-wrap: wrap; gap: 16px; }
  .footer-links { order: 3; width: 100%; justify-content: center; }
}
@media screen and (max-width: 760px) {
  .wrap-center { max-width: 640px; }
  .not-logged .login-avatar { display: none; }
  .login-close { top: 12px; right: 12px; }
  .login-title { font-size: 18px; }
  .login-box { max-width: calc(100% - 32px); padding: 20px; }
  .search-wrap { width: 44px; overflow: hidden; transition: width 0.35s var(--ease); }
  .search-wrap:focus-within { width: 200px; overflow: visible; }
  .search-box input { opacity: 0; width: 0; padding: 0; }
  .search-wrap:focus-within .search-box input { opacity: 1; width: 100%; padding: 0 40px 0 14px; }
  .search-box button { width: 44px; height: 44px; line-height: 44px; font-size: 18px; border-radius: var(--radius-md); background: rgba(255,255,255,0.04); border: 1px solid var(--border-subtle); right: 0; }
  .search-box input:focus { width: 100%; }
  .header-btn { padding: 0 12px; }
  .logo { flex: 1; max-width: 100%; min-width: 50px; position: relative; margin-right: 8px; font-size: 20px; }
  .owl-nav { display: none; }
  .group_series-list { grid-template-columns: repeat(1,minmax(0,1fr)); }
  .fcols { display: block; padding: 16px; background: var(--bg-card); border-radius: var(--radius-lg); }
  .fleft { margin: 0 auto 16px; width: 180px; }
  .fcols::before { display: none; }
  .fcols::after { content: ""; display: table; clear: both; }
  .short-rates { width: 100%; margin: 10px 0 0 -10px; justify-content: flex-start; }
  .fcols .short-list li { padding-left: 100px; font-size: 13px; }
  .mrating-count { text-align: right; margin-right: 0; margin-left: -20px; }
  .fcompl,.ffav { display: none; }
  .fplayer .tabs-sel > span { width: 50%; text-align: center; }
  .fctrl { padding: 0; flex-wrap: wrap; }
  .fplayer { margin-left: 0; margin-right: 0; }
  .f-menu { display: none; }
  .popular-item-img { height: 230px; }
  .carou-content { height: 230px; }
  .footer-top { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .footer-links { justify-content: center; }
  .video-box embed,.video-box frame,.video-box iframe,.video-box object,.video-box video { height: 280px; }
  .dcont button { font-size: 12px; padding: 0 15px !important; }
  .comments-tree-list .comments-tree-list { padding-left: 0 !important; }
  .comments-tree-list .comments-tree-list::before { display: none; }
  .mass_comments_action { display: none; }
  .site-desc { margin-right: 0; }
  .th-item { width: 33.33%; }
}
@media screen and (max-width: 590px) {
  .wrap-center { max-width: 480px; }
  .short-item { margin-bottom: 8px; padding: 0; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); width: 47% !important; overflow: hidden; }
  .short-item .short-img { width: 100%; margin: 0 0 5px; padding-top: 140%; height: auto; border-radius: 0; }
  .sect-title .fal,.short-item .short-list,.short-item .short-meta,.short-item .short-rates { display: none; }
  .short-item .short-title { white-space: normal; font-size: 12px; padding: 0 10px 10px; font-weight: 700; }
  .short-item .short-img img { position: absolute; left: 0; top: 0; }
  .navigation { justify-content: center; }
  .logo,.sect-title { font-size: 15px; }
  .ac-inputs input { width: 100%; }
  .th-item { width: 50%; }
  .th-desc { padding: 10px; }
  .th-title { font-size: 11px; }
  .site-desc { margin-right: 0; }
  .short-header { margin-bottom: 5px; text-align: center; }
  .video-box embed,.video-box frame,.video-box iframe,.video-box object,.video-box video { height: 240px; }
  .f-menu { display: none; }
  .nav-col { width: 100%; }
  .nav-col + .nav-col { width: 100%; }
  .popular-item-img { height: 200px; }
  .carou-content { height: 200px; }
  .bottom-nav { margin-top: 10px; }
  .ui-dialog { width: 100% !important; }
  .upop-left,.upop-right { margin: 0; padding: 0 20px; float: none !important; width: 100% !important; }
  .upop-left { margin-bottom: 10px; text-align: center; }
  .ui-dialog-buttonset button { display: block; margin: 0 0 5px; width: 100%; }
  #dofullsearch,#searchsuggestions span.seperator { display: none !important; }
  .attach .download-link { margin: 0 -15px 0 0; float: none; display: block; padding: 0 10px; }
  .attach-info { float: none; }
  .sect-header { margin-bottom: 16px; }
  .footer-links a { padding: 5px 10px; font-size: 11px; }
}
@media screen and (max-width: 470px) {
  .f-menu { display: none; }
  .short-header { margin-bottom: 5px; text-align: center; }
  .sect-header { margin-bottom: 16px; }
  .fleft { width: 100%; }
  .nav-col { width: 100%; }
  .nav-col + .nav-col { width: 100%; }
  .popular-item-img { height: 200px; }
  .carou-content { height: 200px; }
  .fimg { height: auto; width: 100%; max-width: 280px; margin: 0 auto 16px; }
  .fimg img { width: 100%; height: auto; object-fit: cover; }
  .video-box embed,.video-box frame,.video-box iframe,.video-box object,.video-box video { height: 200px; }
  .header { padding: 0 12px; }
  .carou-sect { padding-left: 12px; padding-right: 12px; }
  .cols { padding: 12px; }
  .footer-top { padding: 20px 16px; }
  .footer-bottom { padding: 12px 16px; }
  .logo-icon { width: 28px; height: 28px; border-radius: 7px; }
}

/* Language badge in cards */
.card-lang {
  display: inline-flex; align-items: center;
  padding: 1px 6px; border-radius: 4px;
  background: rgba(255,255,255,0.06);
  font-size: 10px; font-weight: 700; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.04em;
  vertical-align: middle;
}
.dot-sep { color: var(--text-muted); margin: 0 2px; vertical-align: middle; }

/* === EXTRA POLISH === */
/* Smooth scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }

/* Selection */
::selection { background: rgba(232,68,58,0.25); color: #fff; }

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Section titles */
.sect { margin-top: 28px; }
.sect .carou-title { margin-bottom: 16px; }

/* Comments section */
.fcomms .sect-content { padding: 20px; }

/* Status badge in fullstory */
.short-list a[href="#"] { pointer-events: none; }

/* Smooth page transitions */
.article { animation: pageIn 0.4s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
