/* ════════════════════════════════════════════════════════════════════
   ChicasReales IG · DLE 19.1 · Style v2
   Classic Instagram feel + custom micro-interactions
   ════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Inter+Tight:wght@400;500;600;700;800;900&display=swap');

:root {
	/* ── Colors ──────────────────────────────────────────────────── */
	--bg: #fafaf9;
	--surface: #ffffff;
	--surface-soft: #f5f5f4;
	--surface-hover: #ebebea;
	--line: #dbdbdb;
	--line-soft: #efefef;

	--text: #0a0a0a;
	--text-soft: #1f1f1f;
	--muted: #737373;
	--muted-2: #a3a3a3;

	/* Brand gradient (logo colors) */
	--brand-1: #ff2d6f;
	--brand-2: #b933ff;
	--brand-3: #1da1f2;
	--brand-grad: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 50%, var(--brand-3) 100%);

	/* Action colors */
	--like: #ed1c5c;
	--save: #0a0a0a;
	--success: #00ba7c;
	--danger: #f4212e;

	/* ── Layout ──────────────────────────────────────────────────── */
	--sidebar-w: 244px;
	--rail-w: 60px;
	--feed-w: 540px;
	--mobile-top: 56px;
	--mobile-bottom: 56px;

	/* ── Type scale ──────────────────────────────────────────────── */
	--font-display: 'Bricolage Grotesque', system-ui, sans-serif;
	--font-body: 'Inter Tight', system-ui, sans-serif;

	/* ── Motion ──────────────────────────────────────────────────── */
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
	--dur-fast: 120ms;
	--dur: 200ms;
	--dur-slow: 360ms;

	/* ── Shadow ──────────────────────────────────────────────────── */
	--shadow-card: 0 1px 2px rgba(0,0,0,.04), 0 0 0 1px rgba(0,0,0,.05);
	--shadow-pop: 0 8px 32px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.06);
	--shadow-glow: 0 20px 60px -10px rgba(255,45,111,.18);
}

/* ════════════════════════════════════════════════════════════════════
   RESET & BASE
   ════════════════════════════════════════════════════════════════════ */

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
*:focus-visible {
	outline: 2px solid var(--brand-2);
	outline-offset: 2px;
	border-radius: 4px;
}
html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}
body {
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.5;
	font-feature-settings: 'cv11', 'ss01';
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	min-height: 100vh;
}
img, svg, video {
	display: block;
	max-width: 100%;
}
a {
	color: inherit;
	text-decoration: none;
}
button {
	font-family: inherit;
	cursor: pointer;
	background: none;
	border: 0;
	color: inherit;
}
h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
}

/* ════════════════════════════════════════════════════════════════════
   APP SHELL — sidebar + main + rail
   ════════════════════════════════════════════════════════════════════ */

.ig-app {
	display: grid;
	grid-template-columns: var(--sidebar-w) 1fr var(--rail-w);
	min-height: 100vh;
	position: relative;
}

/* Vertical line behind sidebar — extends full page height */
.ig-app::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--sidebar-w);
	width: 1px;
	background: linear-gradient(180deg, var(--line) 0%, var(--line) calc(100% - 80px), transparent 100%);
	z-index: 1;
	pointer-events: none;
}

/* ── Sidebar ──────────────────────────────────────────────────── */
.ig-sidebar {
	position: sticky;
	top: 0;
	align-self: start;
	height: 100vh;
	background: var(--surface);
	padding: 22px 14px 18px;
	display: flex;
	flex-direction: column;
	z-index: 30;
	border-radius: 0 0 24px 0;
}
/* Soft fade at the bottom of sidebar — visual closure */
.ig-sidebar::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 60px;
	background: linear-gradient(180deg, transparent, var(--surface) 70%);
	pointer-events: none;
	border-radius: 0 0 24px 0;
}
.ig-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 4px 10px 24px;
	font-family: var(--font-display);
}
.ig-brand-icon {
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	background: var(--brand-grad);
	border-radius: 9px;
	color: #fff;
}
.ig-brand-icon svg {
	width: 19px;
	height: 19px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.ig-brand-word {
	height: 22px;
	width: auto;
}

.ig-nav {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.ig-nav-link, .menu-ul .main-menu-link {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 11px 12px;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 500;
	color: var(--text);
	transition: background var(--dur) var(--ease-out), transform var(--dur) var(--ease-spring);
	position: relative;
}
.ig-nav-link:hover, .menu-ul .main-menu-link:hover {
	background: var(--surface-soft);
	transform: translateX(2px);
}
.ig-nav-link:active, .menu-ul .main-menu-link:active {
	transform: scale(0.97);
}
.ig-nav-link svg, .menu-ul .main-menu-link svg, .ig-cat-icon svg {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.ig-cat-icon {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
}

.menu-ul {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.menu-ul li { position: relative; }

/* Active page indicator */
.ig-nav-link.is-active::before, .main-menu-link.is-active::before {
	content: '';
	position: absolute;
	left: -14px;
	top: 50%;
	transform: translateY(-50%);
	width: 3px;
	height: 18px;
	background: var(--brand-grad);
	border-radius: 0 3px 3px 0;
}

.ig-nav-button {
	background: none;
	width: 100%;
	text-align: left;
}

.ig-nav-more {
	margin-top: auto;
}

/* ── Mobile top bar ──────────────────────────────────────────── */
.ig-mobile-top {
	display: none;
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255,255,255,.92);
	backdrop-filter: saturate(180%) blur(20px);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid var(--line);
	padding: 0 14px;
	height: var(--mobile-top);
	align-items: center;
	justify-content: space-between;
}
.ig-mobile-brand {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 22px;
	letter-spacing: -0.02em;
	background: var(--brand-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.ig-icon-button {
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border-radius: 10px;
	transition: background var(--dur) var(--ease-out);
}
.ig-icon-button:hover { background: var(--surface-soft); }
.ig-icon-button svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ── Main content area ──────────────────────────────────────── */
.ig-main {
	min-width: 0;
	padding: 0 24px 80px;
}
.ig-main--single {
	padding-bottom: 120px;
}

/* Right rail (prev/next post quick nav) */
.ig-rail {
	position: sticky;
	top: 0;
	align-self: start;
	height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 8px;
}
.ig-rail-button {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--surface);
	border: 1px solid var(--line);
	display: grid;
	place-items: center;
	color: var(--muted);
	transition: all var(--dur) var(--ease-out);
}
.ig-rail-button:hover {
	background: var(--text);
	color: #fff;
	border-color: var(--text);
	transform: scale(1.08);
}
.ig-rail-button svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ── Speedbar (breadcrumb) ──────────────────────────────────── */
.ig-speedbar {
	max-width: var(--feed-w);
	margin: 18px auto 8px;
	font-size: 13px;
	color: var(--muted);
}
.ig-speedbar a {
	color: var(--muted);
	transition: color var(--dur) var(--ease-out);
}
.ig-speedbar a:hover {
	color: var(--text);
}

/* ── Feed intro (catpages, tags, main h1) ──────────────────── */
.ig-feed-intro {
	max-width: var(--feed-w);
	margin: 28px auto 32px;
	padding: 0 4px;
}
.ig-feed-intro h1 {
	font-size: clamp(28px, 4vw, 38px);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.05;
}
.ig-feed-intro p {
	margin-top: 8px;
	color: var(--muted);
	font-size: 15px;
}
.ig-feed-intro--category h1 {
	background: var(--brand-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* ════════════════════════════════════════════════════════════════════
   FEED — single column TikTok-style
   ════════════════════════════════════════════════════════════════════ */

.ig-feed {
	max-width: var(--feed-w);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 36px;
}

.ig-content {
	max-width: var(--feed-w);
	margin: 0 auto;
}

/* ── Card ────────────────────────────────────────────────────── */
.ig-card {
	position: relative;
	display: flex;
	flex-direction: column;
}

/* The signature glow effect — blurred copy of cover behind card */
.ig-card::before {
	content: '';
	position: absolute;
	inset: 16px 0 -16px;
	background: var(--card-glow, transparent);
	filter: blur(48px);
	opacity: 0;
	transform: scale(.9);
	z-index: -1;
	transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
	pointer-events: none;
	border-radius: 50%;
}
.ig-card:hover::before {
	opacity: .55;
	transform: scale(1.05);
}

/* Card head — author/category, title, meta */
.ig-card-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 6px 4px 12px;
}
.ig-card-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--brand-grad);
	display: grid;
	place-items: center;
	flex-shrink: 0;
	padding: 2px;
}
.ig-card-avatar::after {
	content: '';
	position: absolute;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--surface);
}
.ig-avatar-mark {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--surface);
}
.ig-avatar-mark svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: var(--text);
	stroke-width: 2;
}
.ig-card-head-text {
	flex: 1;
	min-width: 0;
}
.ig-card-author {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.3;
}
.ig-card-author a {
	color: inherit;
	transition: color var(--dur) var(--ease-out);
}
.ig-card-author a:hover {
	color: var(--brand-2);
}
.ig-card-meta-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 2px;
}
.ig-card-sub {
	font-size: 12px;
	color: var(--muted);
}
.ig-pill {
	display: inline-flex;
	align-items: center;
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--brand-grad);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.ig-card-more {
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	border-radius: 8px;
	color: var(--muted);
	transition: background var(--dur) var(--ease-out);
}
.ig-card-more:hover {
	background: var(--surface-soft);
	color: var(--text);
}
.ig-card-more svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
}

/* ── Card stage — image + carousel ───────────────────────────── */
.ig-card-stage {
	position: relative;
}
.ig-card-media {
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	background: #000;
	aspect-ratio: 2 / 3;
}
.ig-slide {
	display: block;
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity var(--dur-slow) var(--ease-out);
}
.ig-slide.ig-slide--active {
	opacity: 1;
}
.ig-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 700ms var(--ease-out);
}
.ig-card-media:hover img {
	transform: scale(1.02);
}

/* Carousel buttons */
.ig-carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255,255,255,.9);
	color: var(--text);
	display: grid;
	place-items: center;
	opacity: 0;
	transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-spring), background var(--dur) var(--ease-out);
	box-shadow: 0 2px 10px rgba(0,0,0,.15);
	z-index: 2;
}
.ig-card-stage:hover .ig-carousel-btn {
	opacity: 1;
}
.ig-carousel-btn:hover {
	background: var(--text);
	color: #fff;
	transform: translateY(-50%) scale(1.08);
}
.ig-carousel-prev { left: 12px; }
.ig-carousel-next { right: 12px; }
.ig-carousel-btn svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.ig-carousel-btn[disabled] {
	opacity: 0 !important;
	pointer-events: none;
}
.ig-carousel-dots {
	position: absolute;
	bottom: 12px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 4px;
	z-index: 2;
}
.ig-carousel-dots span {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: rgba(255,255,255,.5);
	transition: all var(--dur) var(--ease-out);
}
.ig-carousel-dots span.is-active {
	background: #fff;
	width: 16px;
	border-radius: 3px;
}

/* ── Card actions — like, comment, save ───────────────────── */
.ig-card-actions {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 12px 4px 6px;
}
.ig-action {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px;
	border-radius: 10px;
	color: var(--text);
	font-size: 13px;
	font-weight: 600;
	transition: transform var(--dur) var(--ease-spring), background var(--dur) var(--ease-out);
	cursor: pointer;
}
.ig-action:hover {
	background: var(--surface-soft);
	transform: scale(1.05);
}
.ig-action:active {
	transform: scale(0.92);
}
.ig-action svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform var(--dur) var(--ease-spring), fill var(--dur) var(--ease-out);
}
.ig-action:hover svg {
	transform: scale(1.1);
}
.ig-action--rating {
	color: #ffb400;
}

/* Like pulse — when active */
.ig-action.is-liked svg,
.ig-action--liked svg {
	fill: var(--like);
	stroke: var(--like);
	animation: like-pulse 0.5s var(--ease-spring);
}
@keyframes like-pulse {
	0%   { transform: scale(1); }
	35%  { transform: scale(1.4); }
	60%  { transform: scale(0.92); }
	100% { transform: scale(1.1); }
}

.ig-action-group {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 2px 6px;
	border-radius: 999px;
	background: var(--surface-soft);
}
.ig-action-count {
	font-size: 13px;
	font-weight: 700;
	color: var(--text);
	min-width: 18px;
	text-align: center;
}
.ig-action--small svg {
	width: 18px;
	height: 18px;
}

/* Save action sticks to right */
.ig-card-actions > :last-child {
	margin-left: auto;
}

/* ════════════════════════════════════════════════════════════════════
   FULLSTORY — single post page
   ════════════════════════════════════════════════════════════════════ */

.ig-full {
	max-width: 760px;
	margin: 24px auto 40px;
}

.ig-full-head {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 0 4px 18px;
}
.ig-full-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--brand-grad);
	display: grid;
	place-items: center;
	padding: 2px;
	flex-shrink: 0;
}
.ig-full-head-copy {
	flex: 1;
	min-width: 0;
}
.ig-full-author {
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
	margin-bottom: 4px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}
.ig-full-author a {
	color: var(--brand-2);
	transition: color var(--dur) var(--ease-out);
}
.ig-full-author a:hover { color: var(--brand-1); }
.ig-full-title {
	font-family: var(--font-display);
	font-size: clamp(22px, 3.5vw, 30px);
	font-weight: 700;
	letter-spacing: -0.025em;
	line-height: 1.15;
	margin-bottom: 8px;
}
.ig-full-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--muted);
}
.ig-full-meta time::after, .ig-full-meta span::after {
	content: '·';
	margin-left: 8px;
	color: var(--muted-2);
}
.ig-full-meta > :last-child::after { display: none; }

/* Layout: image + actions sidebar */
.ig-full-layout {
	display: grid;
	grid-template-columns: 1fr 56px;
	gap: 12px;
	align-items: start;
}

.ig-full-media {
	position: relative;
}
.ig-viewer {
	position: relative;
	background: #000;
	border-radius: 16px;
	overflow: hidden;
}
.ig-viewer-stage {
	position: relative;
	min-height: 400px;
	max-height: 90vh;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ig-viewer-stage img {
	max-width: 100%;
	max-height: 90vh;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}
/* Single image — buttons hidden, no need for them */
.fn-viewer:not(.ig-viewer--gallery) .fn-nav,
.fn-viewer--single .fn-nav {
	display: none;
}
/* Hide gallery thumbs by default until JS confirms gallery */
.fn-viewer:not(.ig-viewer--gallery) ~ .ig-thumbs {
	display: none !important;
}

/* Image nav buttons (large) */
.fn-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(0,0,0,.5);
	color: #fff;
	display: grid;
	place-items: center;
	opacity: 0;
	transition: all var(--dur) var(--ease-out);
	z-index: 2;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}
.ig-viewer:hover .fn-nav {
	opacity: 1;
}
.fn-nav:hover {
	background: rgba(0,0,0,.85);
	transform: translateY(-50%) scale(1.06);
}
.fn-nav-prev { left: 14px; }
.fn-nav-next { right: 14px; }
.fn-nav svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ig-viewer-counter {
	position: absolute;
	top: 14px;
	right: 14px;
	background: rgba(0,0,0,.6);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
	z-index: 2;
}

/* Thumbnails strip */
.ig-thumbs {
	margin-top: 8px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.ig-thumbs::-webkit-scrollbar { display: none; }
.fn-thumbs-inner {
	display: flex;
	gap: 4px;
	padding: 4px 0;
}
.fn-thumb {
	width: 64px;
	height: 96px;
	flex-shrink: 0;
	object-fit: cover;
	border-radius: 6px;
	cursor: pointer;
	opacity: 0.55;
	transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.fn-thumb:hover {
	opacity: 0.85;
}
.fn-thumb--active {
	opacity: 1;
	box-shadow: 0 0 0 2px var(--text);
}

/* Action sidebar — vertical column right of image */
.ig-full-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	position: sticky;
	top: 24px;
}
.ig-full-actions .ig-action {
	flex-direction: column;
	width: 48px;
	height: 56px;
	gap: 2px;
	padding: 6px 0;
	font-size: 11px;
	border-radius: 12px;
}
.ig-full-actions .ig-action svg {
	width: 26px;
	height: 26px;
}
.ig-full-actions .ig-action--active svg {
	fill: var(--text);
}
.ig-full-actions .ig-action--complaint:hover {
	color: var(--danger);
}

/* Post body — description, tags */
.ig-full-copy {
	margin-top: 18px;
	padding: 0 4px;
}
.ig-full-text {
	font-size: 16px;
	line-height: 1.65;
	color: var(--text-soft);
	font-family: var(--font-body);
}
.ig-full-text p {
	margin-bottom: 14px;
}
.ig-full-text p:last-child {
	margin-bottom: 0;
}

/* Tags */
.ig-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 18px;
}
.ig-tags a {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	background: var(--surface-soft);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
	color: var(--text);
	transition: all var(--dur) var(--ease-spring);
}
.ig-tags a:hover {
	background: var(--text);
	color: #fff;
	transform: translateY(-2px) scale(1.04);
}

.ig-editdate {
	margin-top: 14px;
	padding: 10px 14px;
	background: var(--surface-soft);
	border-radius: 10px;
	font-size: 12px;
	color: var(--muted);
}

/* Post navigation (prev/next) */
.ig-post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 28px;
	padding-top: 28px;
	border-top: 1px solid var(--line-soft);
}
.fn-post-nav-card {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	background: var(--surface);
	border: 1px solid var(--line-soft);
	border-radius: 14px;
	transition: all var(--dur) var(--ease-out);
	min-width: 0;
}
.fn-post-nav-card:hover {
	background: var(--surface-soft);
	transform: translateY(-2px);
	border-color: var(--text);
}
.fn-post-nav-card--next {
	flex-direction: row-reverse;
	text-align: right;
}
.fn-post-nav-card svg {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	fill: none;
	stroke: var(--muted);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: stroke var(--dur) var(--ease-out);
}
.fn-post-nav-card:hover svg { stroke: var(--text); }
.fn-post-nav-card > div { min-width: 0; flex: 1; }
.fn-post-nav-label {
	font-size: 11px;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 700;
	margin-bottom: 2px;
}
.fn-post-nav-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--text);
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
}

/* ════════════════════════════════════════════════════════════════════
   COMMENTS
   ════════════════════════════════════════════════════════════════════ */

.ig-comments {
	max-width: 760px;
	margin: 32px auto;
	padding: 24px 4px 0;
	border-top: 1px solid var(--line-soft);
}
.fn-comments-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
}
.fn-comments-title {
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.02em;
}
.fn-comments-count {
	display: inline-flex;
	align-items: center;
	padding: 1px 10px;
	border-radius: 999px;
	background: var(--surface-soft);
	color: var(--muted);
	font-size: 13px;
	font-weight: 700;
}
.fn-comments-list {
	display: flex;
	flex-direction: column;
}

.comment-item {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	gap: 14px;
	padding: 16px 0;
	border-top: 1px solid var(--line-soft);
}
.comment-item:first-child {
	border-top: 0;
}
.comment-item-left {
	position: relative;
}
.comment-item-image img {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 50%;
}
.comment-item-right {
	min-width: 0;
}
.comment-item-date {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 4px;
}
.comment-item-author {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: -0.01em;
}
.comment-item-time {
	color: var(--muted);
	font-size: 12px;
}
.comment-item-text {
	font-size: 14px;
	color: var(--text-soft);
	line-height: 1.5;
}
.comment-item-newslink {
	margin-top: 6px;
	font-size: 12px;
}
.comment-item-newslink a {
	color: var(--brand-2);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.comment-item-images {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}
.comment-item-images img {
	width: 120px;
	height: 120px;
	object-fit: cover;
	border-radius: 8px;
}
.comment-item-signature {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px dashed var(--line-soft);
	font-size: 12px;
	color: var(--muted);
	font-style: italic;
}
.comment-item-rating {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 6px;
	font-size: 13px;
}
.comment-rating-stars {
	color: #ffb400;
	font-weight: 700;
}
.comment-rating-like {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.comment-rating-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	color: var(--muted);
	transition: all var(--dur) var(--ease-out);
}
.comment-rating-action:hover {
	background: var(--surface-soft);
}
.comment-rating-plus:hover { color: var(--success); }
.comment-rating-minus:hover { color: var(--danger); }
.comment-rating-likes { color: var(--success); font-weight: 700; }
.comment-rating-dislikes { color: var(--danger); font-weight: 700; }
.comment-online {
	color: var(--success);
	position: absolute;
	right: -2px;
	bottom: -2px;
	background: #fff;
	border-radius: 50%;
	width: 12px;
	height: 12px;
	display: grid;
	place-items: center;
	font-size: 9px;
	box-shadow: 0 0 0 2px #fff;
}
.comment-mass-action {
	margin-left: auto;
	font-size: 12px;
	color: var(--muted);
}
.comments-item-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
}
.comment-action {
	font-size: 12px;
	color: var(--muted);
	cursor: pointer;
	transition: color var(--dur) var(--ease-out);
}
.comment-action:hover {
	color: var(--text);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.comment-action--del:hover { color: var(--danger); }

.fn-add-comment-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	padding: 10px 18px;
	background: var(--text);
	color: #fff;
	border-radius: 999px;
	font-weight: 700;
	font-size: 14px;
	transition: transform var(--dur) var(--ease-spring), background var(--dur) var(--ease-out);
}
.fn-add-comment-btn:hover {
	background: var(--brand-2);
	transform: translateY(-2px);
}
.fn-add-comment-btn svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.fn-com-form {
	margin-top: 16px;
	max-height: 0;
	overflow: hidden;
	transition: max-height var(--dur-slow) var(--ease-out);
}
.fn-com-form--open {
	max-height: 2000px;
}
.add-comment {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px;
	background: var(--surface-soft);
	border-radius: 14px;
}
.add-comment textarea,
.add-comment .login-input-text,
.add-comment input[type="text"],
.add-comment input[type="email"] {
	width: 100%;
	padding: 12px 14px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
	font-family: var(--font-body);
	font-size: 15px;
	color: var(--text);
	transition: border-color var(--dur) var(--ease-out);
	box-sizing: border-box;
}
.add-comment textarea {
	min-height: 110px;
	resize: vertical;
	line-height: 1.5;
}
.add-comment textarea:focus,
.add-comment input:focus {
	outline: 0;
	border-color: var(--brand-2);
}
.add-comment .form-line-tt {
	display: grid;
	grid-template-columns: 90px 1fr;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	margin: 0;
}
.add-comment .form-line-tt-left {
	color: var(--muted);
	font-weight: 600;
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 0.04em;
}
.add-comment .form-line-tt-right {
	min-width: 0;
}
.bb-editor {
	width: 100%;
}
.bb-pane {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 6px 8px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-bottom: 0;
	border-radius: 10px 10px 0 0;
}
.bb-pane + textarea,
.bb-pane + #comments,
.bb-editor textarea {
	border-radius: 0 0 10px 10px !important;
	border-top: 0 !important;
}
.bbcodes {
	width: 30px;
	height: 30px;
	display: inline-grid;
	place-items: center;
	border-radius: 6px;
	background: transparent;
	border: 0;
	cursor: pointer;
	color: var(--muted);
	font-family: inherit;
	font-size: 13px;
	transition: all var(--dur) var(--ease-out);
}
.bbcodes:hover {
	background: var(--surface-soft);
	color: var(--text);
}
.comment-image-upload {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--muted);
}
.comment-image-upload a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--text);
	font-weight: 600;
	transition: all var(--dur) var(--ease-out);
}
.comment-image-upload a:hover {
	background: var(--text);
	color: #fff;
	border-color: var(--text);
}
.comment-image-upload a::before {
	content: '+';
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
}
.comment-captcha {
	display: flex;
	align-items: center;
	gap: 10px;
}
.comment-captcha img {
	height: 42px;
	border-radius: 8px;
	border: 1px solid var(--line);
}
.comment-captcha input {
	flex: 1;
}
.form-submit-block-tt {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 4px;
}
.form-check-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	color: var(--muted);
	font-size: 13px;
}
.form-check-input {
	cursor: pointer;
	accent-color: var(--brand-2);
}
.form-button-tt {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 11px 24px;
	background: var(--brand-grad);
	color: #fff;
	border: 0;
	border-radius: 999px;
	font-weight: 700;
	font-size: 14px;
	font-family: inherit;
	cursor: pointer;
	transition: transform var(--dur) var(--ease-spring), filter var(--dur) var(--ease-out);
	box-shadow: var(--shadow-glow);
}
.form-button-tt:hover {
	transform: translateY(-2px) scale(1.02);
	filter: brightness(1.1);
}
.form-button-tt:active {
	transform: translateY(0) scale(0.98);
}

/* ════════════════════════════════════════════════════════════════════
   RELATED POSTS
   ════════════════════════════════════════════════════════════════════ */

.ig-related {
	max-width: 760px;
	margin: 32px auto 0;
	padding: 24px 4px;
	border-top: 1px solid var(--line-soft);
}
.fn-related-title {
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-bottom: 16px;
}
.fn-related-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 6px;
}
.ig-related-card {
	position: relative;
	transition: transform var(--dur) var(--ease-out);
}
.ig-related-card:hover {
	transform: translateY(-4px);
}
.ig-related-image {
	position: relative;
	display: block;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	background: #111;
	border-radius: 10px;
}
.ig-related-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--dur-slow) var(--ease-out);
}
.ig-related-card:hover .ig-related-image img {
	transform: scale(1.06);
}
.ig-related-overlay {
	position: absolute;
	inset: auto 0 0;
	padding: 28px 8px 8px;
	background: linear-gradient(180deg, transparent, rgba(0,0,0,.85));
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.ig-related-card:hover .ig-related-overlay {
	opacity: 1;
	transform: translateY(0);
}

/* ════════════════════════════════════════════════════════════════════
   DLEPush — system notifications (movie ratings, errors, success)
   ════════════════════════════════════════════════════════════════════ */

.DLEPush {
	position: fixed;
	top: 24px;
	right: 24px;
	z-index: 9000;
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 380px;
	pointer-events: none;
}
@keyframes DLEPush-show {
	from { transform: translateY(-12px) scale(0.95); opacity: 0; }
	to   { transform: translateY(0) scale(1); opacity: 1; }
}
.DLEPush-notification.wrapper {
	position: relative;
	display: grid;
	grid-template-columns: 44px 1fr;
	align-items: center;
	background: var(--surface);
	color: var(--text);
	border: 1px solid var(--line);
	border-radius: 14px;
	box-shadow: var(--shadow-pop);
	overflow: hidden;
	pointer-events: auto;
	animation: DLEPush-show 0.36s var(--ease-spring);
}
.DLEPush-notification .DLEPush-icon {
	grid-column: 1;
	grid-row: 1 / span 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 100%;
	color: #fff;
}
.DLEPush-notification .DLEPush-icon svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}
.DLEPush-notification .DLEPush-header {
	grid-column: 2;
	grid-row: 1;
	font-size: 14px;
	font-weight: 700;
	color: var(--text);
	padding: 14px 36px 0 14px;
	letter-spacing: -0.01em;
}
.DLEPush-notification .DLEPush-header:empty {
	display: none;
}
.DLEPush-notification .DLEPush-message {
	grid-column: 2;
	grid-row: 2;
	font-size: 13px;
	color: var(--text-soft);
	padding: 4px 36px 14px 14px;
	line-height: 1.4;
}
.DLEPush-notification .DLEPush-header:empty + .DLEPush-message {
	grid-row: 1 / span 2;
	padding-top: 14px;
}
.DLEPush-notification .DLEPush-message ul,
.DLEPush-notification .DLEPush-message li {
	list-style: none;
	padding: 0;
	margin: 0;
}
.DLEPush-notification .DLEPush-close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 22px;
	height: 22px;
	display: grid;
	place-items: center;
	background: none;
	border: 0;
	border-radius: 50%;
	font-size: 18px;
	line-height: 1;
	color: var(--muted);
	cursor: pointer;
	opacity: 0.6;
	transition: all var(--dur) var(--ease-out);
	font-family: inherit;
	padding: 0;
}
.DLEPush-notification .DLEPush-close:hover {
	opacity: 1;
	background: var(--surface-soft);
	color: var(--text);
}

/* Notification types */
.DLEPush-notification.wrapper.push-success {
	border-color: rgba(0, 186, 124, 0.25);
}
.DLEPush-notification.wrapper.push-success .DLEPush-icon {
	background: var(--success);
}
.DLEPush-notification.wrapper.push-success .DLEPush-icon:empty::before {
	content: '✓';
	font-size: 22px;
	font-weight: 700;
}
.DLEPush-notification.wrapper.push-warning {
	border-color: rgba(255, 180, 0, 0.3);
}
.DLEPush-notification.wrapper.push-warning .DLEPush-icon {
	background: #ff9800;
}
.DLEPush-notification.wrapper.push-warning .DLEPush-icon:empty::before {
	content: '!';
	font-size: 22px;
	font-weight: 800;
}
.DLEPush-notification.wrapper.push-error {
	border-color: rgba(244, 33, 46, 0.25);
}
.DLEPush-notification.wrapper.push-error .DLEPush-icon {
	background: var(--danger);
}
.DLEPush-notification.wrapper.push-error .DLEPush-icon:empty::before {
	content: '✕';
	font-size: 18px;
	font-weight: 700;
}

/* Mobile — стек снизу по центру */
@media (max-width: 600px) {
	.DLEPush {
		top: auto;
		bottom: 80px;
		left: 12px;
		right: 12px;
		max-width: none;
		align-items: center;
	}
	.DLEPush-notification.wrapper {
		width: 100%;
		max-width: 420px;
	}
}

/* ════════════════════════════════════════════════════════════════════
   QUOTE & SPOILER (DLE bbcode)
   ════════════════════════════════════════════════════════════════════ */

.quote_link {
	float: right;
	font-size: 12px;
	color: var(--muted);
	margin-bottom: 4px;
}
.quote_link svg {
	width: 14px;
	height: 14px;
	color: var(--muted);
	vertical-align: middle;
}
.quote {
	margin: 12px 0;
	padding: 12px 14px;
	background: var(--surface-soft);
	border-left: 3px solid var(--brand-2);
	border-radius: 0 10px 10px 0;
	font-style: italic;
	color: var(--text-soft);
}
.title_spoiler {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: var(--surface-soft);
	border-radius: 8px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	color: var(--text);
	transition: background var(--dur) var(--ease-out);
}
.title_spoiler:hover {
	background: var(--surface-hover);
}
.text_spoiler {
	margin-top: 8px;
	padding: 12px 14px;
	background: var(--surface-soft);
	border-radius: 10px;
	font-size: 14px;
	color: var(--text-soft);
}


.ig-footer {
	max-width: 1100px;
	margin: 60px auto 0;
	padding: 36px 24px;
	border-top: 1px solid var(--line-soft);
}
.footer2 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 24px;
}
.footer-title {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 13px;
	color: var(--text);
	margin-bottom: 10px;
	letter-spacing: -0.01em;
	text-transform: uppercase;
}
.footer-menu-content {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.footer-menu-content a {
	font-size: 14px;
	color: var(--text-soft);
	transition: color var(--dur) var(--ease-out);
}
.footer-menu-content a:hover {
	color: var(--brand-2);
}
.footer-text-content {
	font-size: 12px;
	color: var(--muted);
	line-height: 1.55;
}

/* ════════════════════════════════════════════════════════════════════
   HIDDEN PANELS, MODALS, OVERLAYS
   ════════════════════════════════════════════════════════════════════ */

.hidden-panel {
	position: fixed;
	left: 14px;
	bottom: 18px;
	z-index: 80;
	width: 280px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 16px;
	box-shadow: var(--shadow-pop);
	padding: 16px;
	transform: translateY(20px);
	opacity: 0;
	pointer-events: none;
	transition: all var(--dur) var(--ease-out);
}
.hidden-panel.asdrtr {
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}
.opacity-body {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.4);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	z-index: 70;
	display: none;
}
.ig-sidebar.vismenu {
	transform: translateX(0);
}

.login-block {
	font-size: 14px;
}
.login-ava {
	display: flex;
	justify-content: center;
	margin-bottom: 8px;
}
.login-ava2 img {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 2px solid var(--surface);
	box-shadow: 0 0 0 2px var(--brand-2);
}
.login-user {
	text-align: center;
	font-weight: 700;
	margin-bottom: 14px;
}
.login-link {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.login-link a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 8px;
	color: var(--text);
	transition: background var(--dur) var(--ease-out);
}
.login-link a:hover { background: var(--surface-soft); }
.login-link a svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	color: var(--muted);
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.login-link i { width: 16px; color: var(--muted); }
.pm-count {
	margin-left: auto;
	background: var(--like);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 0 6px;
	border-radius: 999px;
}

/* Age modal */
.modal_age {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 999;
	background: rgba(10,10,10,.8);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.modal_age_wrap {
	max-width: 420px;
	background: var(--surface);
	border-radius: 24px;
	padding: 32px 28px 28px;
	text-align: center;
	box-shadow: var(--shadow-pop);
	animation: modal-in 0.4s var(--ease-spring);
}
@keyframes modal-in {
	from { opacity: 0; transform: scale(0.9) translateY(20px); }
	to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal_title {
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin-bottom: 12px;
}
.modal_age_text span {
	display: block;
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 6px;
}
.modal_age_text p {
	font-size: 13px;
	color: var(--muted);
	margin-bottom: 22px;
}
.modal_age_but {
	display: flex;
	gap: 8px;
	justify-content: center;
}
.modal_but_yes, .modal_but_no {
	padding: 12px 22px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 14px;
	font-family: inherit;
	transition: all var(--dur) var(--ease-spring);
}
.modal_but_yes {
	background: var(--brand-grad);
	color: #fff;
	box-shadow: var(--shadow-glow);
}
.modal_but_yes:hover {
	transform: translateY(-2px);
	filter: brightness(1.1);
}
.modal_but_no {
	background: var(--surface-soft);
	color: var(--text);
}
.modal_but_no:hover {
	background: var(--surface-hover);
}

/* Toast notifications */
#sly-toasts {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 9999;
	display: flex;
	flex-direction: column-reverse;
	gap: 8px;
	pointer-events: none;
}
.sly-toast {
	background: var(--text);
	color: #fff;
	padding: 12px 18px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	opacity: 0;
	transform: translateY(10px);
	transition: all var(--dur) var(--ease-spring);
	box-shadow: var(--shadow-pop);
}
.sly-toast--show {
	opacity: 1;
	transform: translateY(0);
}
.sly-toast--ok { background: var(--success); }
.sly-toast--error { background: var(--danger); }

/* Page form (login/register) */
.page-form-wrap {
	min-height: 100vh;
	display: grid;
	place-items: center;
	padding: 24px;
	background:
		radial-gradient(circle at 20% 10%, rgba(255,45,111,.08) 0%, transparent 40%),
		radial-gradient(circle at 80% 90%, rgba(29,161,242,.08) 0%, transparent 40%),
		var(--bg);
}
.page-form-back {
	position: fixed;
	top: 24px;
	left: 24px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--surface);
	display: grid;
	place-items: center;
	box-shadow: var(--shadow-card);
	transition: transform var(--dur) var(--ease-spring);
	z-index: 10;
}
.page-form-back:hover {
	transform: translateX(-3px);
}
.page-form-back svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: var(--text);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.page-form-body {
	max-width: 480px;
	width: 100%;
	background: var(--surface);
	border-radius: 24px;
	padding: 36px 32px;
	box-shadow: var(--shadow-pop);
}

/* DLE registration/lostpassword block */
.stt-block {
	font-size: 14px;
	color: var(--text-soft);
	line-height: 1.55;
}
.stt-block-title {
	font-family: var(--font-display);
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.025em;
	margin-bottom: 18px;
	color: var(--text);
	line-height: 1.2;
}
.stt-block-content {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.stt-block-content ul,
.stt-block-content ol {
	list-style: none;
	padding: 0;
	margin: 4px 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.stt-block-content ul li {
	position: relative;
	padding-left: 14px;
}
.stt-block-content ul li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 9px;
	width: 5px;
	height: 5px;
	background: var(--brand-grad);
	border-radius: 50%;
}
.stt-block-content p {
	margin: 0;
}
.stt-block-content b,
.stt-block-content strong {
	color: var(--text);
}
/* DLE register/login form (key=value rows) */
.stt-block-content form,
form[name="registration"],
form[name="lostpassword"] {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 16px;
}
form[name="registration"] input[type="text"],
form[name="registration"] input[type="email"],
form[name="registration"] input[type="password"],
form[name="lostpassword"] input[type="text"],
form[name="lostpassword"] input[type="email"] {
	width: 100%;
	padding: 12px 14px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
	font-family: var(--font-body);
	font-size: 15px;
	color: var(--text);
	transition: border-color var(--dur) var(--ease-out);
	box-sizing: border-box;
}
form[name="registration"] input:focus,
form[name="lostpassword"] input:focus {
	outline: 0;
	border-color: var(--brand-2);
}
/* Browser autofill yellow override */
form[name="registration"] input:-webkit-autofill,
form[name="lostpassword"] input:-webkit-autofill,
.add-comment input:-webkit-autofill,
.login-input-text:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 1000px var(--surface) inset !important;
	-webkit-text-fill-color: var(--text) !important;
	border-color: var(--line) !important;
}
/* Lost password / register page rules accept buttons (input.bbcodes) */
form[name="registration"] input.bbcodes,
form[name="lostpassword"] input.bbcodes,
.stt-block-content input.bbcodes {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	padding: 11px 24px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--text);
	font-family: inherit;
	transition: all var(--dur) var(--ease-spring);
}
form[name="registration"] input.bbcodes[value="Acepto"],
.stt-block-content input.bbcodes[value="Acepto"],
.stt-block-content input.bbcodes[type="submit"] {
	background: var(--brand-grad);
	color: #fff;
	border-color: transparent;
	box-shadow: var(--shadow-glow);
}
form[name="registration"] input.bbcodes[value="Acepto"]:hover,
.stt-block-content input.bbcodes[type="submit"]:hover {
	transform: translateY(-2px) scale(1.02);
	filter: brightness(1.1);
}
form[name="registration"] input.bbcodes[value="No acepto"]:hover,
.stt-block-content input.bbcodes[value="No acepto"]:hover {
	background: var(--surface-soft);
	border-color: var(--text);
}
.stt-block-content p[style*="text-align:center"] {
	text-align: center;
	margin-top: 18px;
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}
/* DLE register form (table-like layout) */
.page-form-body ul,
.page-form-body ol {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.page-form-body ul li {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 0;
}
.page-form-body ul li::before {
	display: none;
}
.page-form-body label,
.page-form-body .formlabel {
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.page-form-body input[type="text"],
.page-form-body input[type="email"],
.page-form-body input[type="password"],
.page-form-body input[type="url"],
.page-form-body select,
.page-form-body textarea {
	width: 100%;
	padding: 12px 14px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
	font-family: var(--font-body);
	font-size: 15px;
	color: var(--text);
	transition: border-color var(--dur) var(--ease-out);
	box-sizing: border-box;
}
.page-form-body input:focus,
.page-form-body textarea:focus,
.page-form-body select:focus {
	outline: 0;
	border-color: var(--brand-2);
}
.page-form-body input[type="submit"],
.page-form-body button[type="submit"] {
	width: 100%;
	padding: 12px 24px;
	background: var(--brand-grad);
	color: #fff;
	border: 0;
	border-radius: 999px;
	font-family: inherit;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	transition: transform var(--dur) var(--ease-spring), filter var(--dur) var(--ease-out);
	box-shadow: var(--shadow-glow);
}
.page-form-body input[type="submit"]:hover,
.page-form-body button[type="submit"]:hover {
	transform: translateY(-2px) scale(1.02);
	filter: brightness(1.1);
}
.page-form-body small,
.page-form-body .formhelp {
	font-size: 12px;
	color: var(--muted);
}
/* Login dropdown form on mobile */
.page-form-body a[href*="checkname"],
.page-form-body a[href*="check"] {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: var(--brand-2);
	margin-top: 4px;
}
.ig-form-brand {
	display: block;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 32px;
	letter-spacing: -0.03em;
	background: var(--brand-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	text-align: center;
	margin-bottom: 24px;
}

/* ── Login form (group=5 or page-form) ─────────────────────── */
.login-line {
	margin-bottom: 10px;
}
.login-input-text {
	width: 100%;
	padding: 12px 14px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
	font-family: var(--font-body);
	font-size: 15px;
	color: var(--text);
	transition: border-color var(--dur) var(--ease-out);
	box-sizing: border-box;
}
.login-input-text:focus {
	outline: 0;
	border-color: var(--brand-2);
}
.enter {
	display: block;
	width: 100%;
	padding: 12px 24px;
	margin-top: 6px;
	background: var(--brand-grad);
	color: #fff;
	border: 0;
	border-radius: 999px;
	font-family: inherit;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	transition: transform var(--dur) var(--ease-spring), filter var(--dur) var(--ease-out);
	box-shadow: var(--shadow-glow);
}
.enter:hover {
	transform: translateY(-2px) scale(1.02);
	filter: brightness(1.1);
}
.enter:active {
	transform: translateY(0) scale(0.98);
}
.soc-login-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 10px 0;
}
.soc-btn {
	flex: 1;
	min-width: 80px;
	padding: 8px 12px;
	background: var(--surface-soft);
	color: var(--text);
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	transition: all var(--dur) var(--ease-out);
}
.soc-btn:hover {
	background: var(--surface-hover);
}
.soc-vk { background: #4a76a8; color: #fff; }
.soc-ya { background: #ff0000; color: #fff; }
.soc-gp { background: #ea4335; color: #fff; }
.soc-ok { background: #ee8208; color: #fff; }
.soc-mail { background: #168de2; color: #fff; }
.soc-btn:hover { filter: brightness(1.08); }
.reg-link {
	margin-top: 14px;
	font-size: 13px;
	text-align: center;
	color: var(--muted);
}
.reg-link a {
	color: var(--brand-2);
	font-weight: 600;
}
.reg-link a:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ════════════════════════════════════════════════════════════════════
   SCROLL PROGRESS — signature feature
   ════════════════════════════════════════════════════════════════════ */

.ig-scroll-progress {
	position: fixed;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 40;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	font-family: var(--font-body);
	font-feature-settings: 'tnum';
	font-size: 11px;
	font-weight: 700;
	color: var(--muted);
	opacity: 0;
	transition: opacity var(--dur-slow) var(--ease-out);
	pointer-events: none;
}
.ig-scroll-progress.is-visible {
	opacity: 1;
}
.ig-scroll-progress-bar {
	width: 2px;
	height: 80px;
	background: var(--line);
	border-radius: 2px;
	overflow: hidden;
	position: relative;
}
.ig-scroll-progress-bar::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: var(--progress, 0%);
	background: var(--brand-grad);
	transition: height var(--dur) var(--ease-out);
}

/* ════════════════════════════════════════════════════════════════════
   FORMS — addnews, feedback, registration
   ════════════════════════════════════════════════════════════════════ */

.baseform, .add-comment {
	max-width: 540px;
	margin: 24px auto;
}
.baseform input[type="text"],
.baseform input[type="email"],
.baseform input[type="password"],
.baseform input[type="number"],
.baseform input[type="url"],
.baseform select,
.baseform textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 10px;
	font-family: inherit;
	font-size: 15px;
	background: var(--surface);
	color: var(--text);
	transition: border-color var(--dur) var(--ease-out);
}
.baseform input:focus, .baseform select:focus, .baseform textarea:focus {
	outline: 0;
	border-color: var(--brand-2);
}

/* ════════════════════════════════════════════════════════════════════
   NAVIGATION (pagination)
   ════════════════════════════════════════════════════════════════════ */

.navigation, .nav-cont {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	margin: 32px auto 24px;
	max-width: var(--feed-w);
}
.navigation-left, .navigation-right {
	display: flex;
	align-items: center;
}
.navigation-left a, .navigation-right a,
.navigation > a, .navigation > span,
.navigation-center a, .navigation-center span,
.nav-cont a, .nav-cont span {
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 10px;
	font-weight: 600;
	font-size: 14px;
	color: var(--text);
	transition: all var(--dur) var(--ease-out);
	text-decoration: none;
}
.navigation-left a:hover, .navigation-right a:hover,
.navigation > a:hover,
.navigation-center a:hover, .nav-cont a:hover {
	background: var(--surface-soft);
	transform: scale(1.05);
}
.navigation .navigation-current,
.navigation-center .navigation-current,
.nav-cont .navigation-current {
	background: var(--text);
	color: #fff;
}

/* ── "Cargar más" button — load next page via AJAX ───────────── */
.load-more {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	max-width: 240px;
	margin: 24px auto;
	padding: 14px 24px;
	background: var(--surface);
	color: var(--text);
	border: 1px solid var(--line);
	border-radius: 999px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: all var(--dur) var(--ease-spring);
	user-select: none;
}
.load-more::before {
	content: '';
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 12a9 9 0 1 1-6.2-8.55'/><path d='m17 4 4 4-4 4'/></svg>") center / contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 12a9 9 0 1 1-6.2-8.55'/><path d='m17 4 4 4-4 4'/></svg>") center / contain no-repeat;
	transition: transform var(--dur-slow) var(--ease-out);
}
.load-more:hover {
	background: var(--text);
	color: #fff;
	border-color: var(--text);
	transform: translateY(-2px);
	box-shadow: var(--shadow-pop);
}
.load-more:hover::before {
	transform: rotate(90deg);
}
.load-more:active {
	transform: translateY(0) scale(0.98);
}
.load-more.is-loading {
	pointer-events: none;
	opacity: 0.7;
}
.load-more.is-loading::before {
	animation: load-spin 0.8s linear infinite;
}
@keyframes load-spin {
	to { transform: rotate(360deg); }
}

#hidden-next-page { display: none; }


/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE — tablet & mobile
   ════════════════════════════════════════════════════════════════════ */

/* Tablet — collapse sidebar to icons only */
@media (max-width: 1100px) {
	:root {
		--sidebar-w: 76px;
	}
	.ig-brand-word, .ig-nav-link span, .menu-ul .main-menu-link span {
		display: none;
	}
	.ig-brand {
		justify-content: center;
		padding: 4px 0 24px;
	}
	.ig-nav-link, .menu-ul .main-menu-link {
		justify-content: center;
		padding: 12px;
	}
}

/* Mobile — hide sidebar + rail, mobile-top visible */
@media (max-width: 768px) {
	:root {
		--feed-w: 100%;
	}
	.ig-app {
		grid-template-columns: 1fr;
	}
	.ig-app::before {
		display: none;
	}
	.ig-sidebar {
		position: fixed;
		left: 0;
		top: 0;
		bottom: 0;
		width: 280px;
		max-width: 84vw;
		height: 100vh;
		transform: translateX(-100%);
		transition: transform var(--dur-slow) var(--ease-out);
		z-index: 80;
		border-right: 1px solid var(--line);
		border-radius: 0;
		box-shadow: 4px 0 30px rgba(0,0,0,.12);
	}
	.ig-sidebar::after {
		display: none;
	}
	.ig-sidebar.vismenu {
		transform: translateX(0);
	}
	/* Restore brand and nav text on mobile slide-in sidebar */
	.ig-sidebar .ig-brand-word,
	.ig-sidebar .ig-nav-link span,
	.ig-sidebar .menu-ul .main-menu-link span {
		display: inline;
	}
	.ig-sidebar .ig-brand {
		justify-content: flex-start;
		padding: 4px 10px 24px;
	}
	.ig-sidebar .ig-nav-link,
	.ig-sidebar .menu-ul .main-menu-link {
		justify-content: flex-start;
		padding: 11px 12px;
	}
	.ig-rail {
		display: none;
	}
	.ig-mobile-top {
		display: flex;
	}
	.ig-main {
		padding: 0 16px 80px;
	}
	.ig-feed {
		gap: 28px;
	}
	.ig-card-media {
		border-radius: 0;
		margin: 0 -16px;
		aspect-ratio: 2 / 3;
	}
	.ig-card-actions {
		padding-top: 14px;
	}
	.ig-full {
		margin-top: 12px;
		padding: 0;
	}
	.ig-full-layout {
		grid-template-columns: 1fr;
	}
	.ig-viewer {
		border-radius: 0;
		margin: 0 -16px;
	}
	.ig-full-actions {
		flex-direction: row;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		top: auto;
		padding: 8px 14px;
		background: rgba(255,255,255,.95);
		backdrop-filter: blur(20px);
		-webkit-backdrop-filter: blur(20px);
		border-top: 1px solid var(--line);
		justify-content: space-around;
		z-index: 40;
	}
	.ig-full-actions .ig-action {
		flex-direction: row;
		width: auto;
		height: auto;
		font-size: 13px;
	}
	.fn-related-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.ig-post-nav {
		grid-template-columns: 1fr;
	}
	.ig-scroll-progress {
		display: none;
	}
}

/* Small mobile */
@media (max-width: 420px) {
	.ig-feed-intro h1 {
		font-size: 26px;
	}
	.ig-full-title {
		font-size: 20px;
	}
}

/* ════════════════════════════════════════════════════════════════════
   PRINT
   ════════════════════════════════════════════════════════════════════ */
@media print {
	.ig-sidebar, .ig-rail, .ig-mobile-top, .ig-card-actions,
	.ig-full-actions, .fn-comments, .ig-related, .ig-post-nav {
		display: none !important;
	}
	.ig-app {
		grid-template-columns: 1fr;
	}
}

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