:root {
	--bg: #f3f5f7;
	--surface: #fff;
	--surface-soft: #f8fafc;
	--text: #202833;
	--muted: #697586;
	--line: #dce3ea;
	--line-strong: #c9d3dd;
	--blue: #1769aa;
	--blue-dark: #0e548e;
	--blue-soft: #eef6fc;
	--nav: #125d96;
	--nav-dark: #0c4e80;
	--green: #16834b;
	--red: #b42318;
	--radius: 8px;
	--radius-sm: 5px;
	--container: 1160px;
	--sidebar: 270px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.55;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { color: #17212b; line-height: 1.22; }
h1 { font-size: clamp(1.65rem, 3vw, 2.15rem); }
h2 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
h3 { font-size: 1.08rem; }
input, textarea, select { max-width: 100%; }
textarea { resize: vertical; }
table { max-width: 100%; border-collapse: collapse; }

::selection { background: #dceeff; color: #10283d; }

.site-container {
	width: min(calc(100% - 28px), var(--container));
	margin-inline: auto;
}

.visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.skip-link {
	position: fixed;
	left: 12px;
	top: 12px;
	z-index: 9999;
	transform: translateY(-160%);
	padding: 9px 12px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	box-shadow: 0 4px 18px rgba(15, 23, 42, .12);
}
.skip-link:focus { transform: none; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
	outline: 3px solid rgba(23, 105, 170, .22);
	outline-offset: 2px;
}

/* Header */
.site-header {
	background: #fff;
	border-bottom: 1px solid var(--line-strong);
}
.header-main {
	display: grid;
	grid-template-columns: 230px minmax(280px, 1fr) auto;
	gap: 24px;
	align-items: center;
	min-height: 92px;
}
.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	width: max-content;
	color: #17212b;
	font-weight: 800;
	letter-spacing: -.035em;
}
.brand:hover { text-decoration: none; color: #17212b; }
.brand__mark {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 7px;
	background: var(--blue);
	color: #fff;
	font-size: .88rem;
	letter-spacing: .02em;
}
.brand__text { font-size: 1.35rem; white-space: nowrap; }
.brand__text span { color: var(--blue); }
.brand__text small { color: var(--muted); font-size: .62em; font-weight: 700; }

.site-search {
	display: grid;
	grid-template-columns: 1fr auto;
	min-width: 0;
	max-width: 620px;
	width: 100%;
	justify-self: center;
}
.site-search input[type="search"] {
	width: 100%;
	height: 46px;
	padding: 0 14px;
	border: 1px solid #b8c6d2;
	border-right: 0;
	border-radius: 6px 0 0 6px;
	background: #fff;
	color: var(--text);
	box-shadow: inset 0 1px 2px rgba(15, 23, 42, .035);
}
.site-search input[type="search"]:focus { border-color: var(--blue); outline: 0; }
.site-search button {
	height: 46px;
	min-width: 82px;
	padding: 0 17px;
	border: 0;
	border-radius: 0 6px 6px 0;
	background: var(--blue);
	color: #fff;
	font-weight: 700;
}
.site-search button:hover { background: var(--blue-dark); }
.site-account { justify-self: end; }

.nav-bar { background: var(--nav); border-top: 1px solid rgba(255,255,255,.1); }
.site-nav { overflow: visible; }
.nav-list {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
}
.nav-list li { margin: 0; }
.nav-list a {
	display: flex;
	align-items: center;
	min-height: 46px;
	padding: 0 15px;
	color: #fff;
	font-size: .92rem;
	font-weight: 650;
	border-right: 1px solid rgba(255,255,255,.12);
}
.nav-list li:first-child a { border-left: 1px solid rgba(255,255,255,.12); }
.nav-list a:hover { background: var(--nav-dark); color: #fff; text-decoration: none; }

.nav-dropdown-item { position: relative; }
.nav-dropdown > summary {
	display: flex;
	align-items: center;
	gap: 7px;
	min-height: 46px;
	padding: 0 15px;
	list-style: none;
	cursor: pointer;
	color: #fff;
	font-size: .92rem;
	font-weight: 650;
	border-right: 1px solid rgba(255,255,255,.12);
}
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .16s ease; opacity: .85; }
.nav-dropdown[open] > summary, .nav-dropdown > summary:hover { background: var(--nav-dark); }
.nav-dropdown[open] > summary::after { transform: rotate(225deg) translate(-1px,-1px); }
.nav-dropdown__panel {
	position: absolute;
	left: 0;
	top: 100%;
	z-index: 120;
	min-width: 230px;
	padding: 6px;
	background: #fff;
	border: 1px solid var(--line);
	border-top: 0;
	border-radius: 0 0 7px 7px;
	box-shadow: 0 12px 28px rgba(15,23,42,.16);
}
.nav-dropdown__panel a { min-height: 38px; padding: 8px 10px; border: 0 !important; border-radius: 5px; color: #334155; }
.nav-dropdown__panel a:hover { background: var(--blue-soft); color: var(--blue-dark); }

/* Account */
.account-menu { position: relative; }
.account-menu summary {
	display: flex;
	align-items: center;
	gap: 8px;
	list-style: none;
	cursor: pointer;
	font-weight: 650;
	color: #3a4755;
}
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu--guest summary {
	padding: 9px 13px;
	border: 1px solid var(--line-strong);
	border-radius: 6px;
	background: var(--surface-soft);
}
.account-menu__avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.account-menu__panel {
	position: absolute;
	right: 0;
	top: calc(100% + 10px);
	z-index: 100;
	width: 230px;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 12px 35px rgba(15, 23, 42, .14);
}
.account-menu__panel a { display: block; padding: 8px 9px; border-radius: 5px; color: #334155; }
.account-menu__panel a:hover { background: var(--blue-soft); color: var(--blue-dark); text-decoration: none; }
.account-menu__panel--form { width: 280px; }
.account-menu__panel--form form { display: grid; gap: 8px; }
.account-menu__panel--form input[type="text"], .account-menu__panel--form input[type="password"] {
	width: 100%; height: 39px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 5px;
}
.account-menu__links { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: .88rem; }
.checkbox-line { display: flex; gap: 7px; align-items: center; font-size: .88rem; }

/* Main structure */
.site-main { padding: 24px 0 42px; }
.page-intro {
	margin-bottom: 18px;
	padding: 18px 20px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}
.page-intro h1 { margin-bottom: 7px; }
.page-intro p, .category-description { margin: 0; color: #586575; max-width: 900px; }
.category-description:empty { display: none; }
.category-description p:last-child { margin-bottom: 0; }

.content-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--sidebar);
	gap: 22px;
	align-items: start;
}
.content-column { min-width: 0; }
.sidebar { min-width: 0; }

.speedbar {
	margin-bottom: 14px;
	padding: 10px 13px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 6px;
	color: var(--muted);
	font-size: .87rem;
	overflow-wrap: anywhere;
}
.speedbar a { color: #516173; }
.sort-panel {
	margin-bottom: 14px;
	padding: 10px 12px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 6px;
	font-size: .9rem;
}

/* Listing */
.stories { display: grid; gap: 12px; }
.story-card {
	display: grid;
	grid-template-columns: 170px minmax(0, 1fr);
	gap: 18px;
	padding: 14px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	content-visibility: auto;
	contain-intrinsic-size: 268px;
}
.story-card__poster {
	display: block;
	width: 170px;
	aspect-ratio: 170 / 240;
	border-radius: 5px;
	overflow: hidden;
	background: #e8edf2;
	border: 1px solid #d5dde5;
}
.story-card__poster:hover { text-decoration: none; }
.story-card__poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.story-card__placeholder {
	display: grid;
	place-items: center;
	width: 100%; height: 100%; color: #90a0af; font-size: 1.5rem; font-weight: 800;
}
.story-card__body { min-width: 0; display: flex; flex-direction: column; }
.story-card__title { margin: 1px 0 7px; font-size: 1.23rem; }
.story-card__title a { color: #182532; }
.story-card__title a:hover { color: var(--blue); text-decoration: none; }
.story-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 13px;
	margin-bottom: 10px;
	color: var(--muted);
	font-size: .83rem;
}
.story-card__meta a { color: var(--blue); font-weight: 600; }
.story-card__excerpt {
	color: #455362;
	font-size: .94rem;
	line-height: 1.58;
	overflow-wrap: anywhere;
}
.story-card__bottom {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 14px;
	margin-top: auto;
	padding-top: 13px;
	border-top: 1px solid #edf1f4;
	color: var(--muted);
	font-size: .84rem;
}
.story-comments { margin-left: auto; }
.story-admin { opacity: .85; }

.button, .fbutton, .bbcodes, .bbcodes_poll {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 0 13px;
	border: 1px solid transparent;
	border-radius: 5px;
	font-weight: 650;
	font-size: .9rem;
	line-height: 1;
	text-decoration: none;
	box-shadow: none;
	text-shadow: none;
}
.button:hover, .fbutton:hover, .bbcodes:hover { text-decoration: none; }
.button--primary, .fbutton { background: var(--blue); border-color: var(--blue); color: #fff; }
.button--primary:hover, .fbutton:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.button--secondary, .bbcodes, .bbcodes_poll { background: #fff; border-color: var(--line-strong); color: #3d4b59; }
.button--secondary:hover, .bbcodes:hover, .bbcodes_poll:hover { background: #f5f8fa; color: #1f2d3a; }

/* Sidebar */
.side-card {
	margin-bottom: 14px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
}
.side-card__title {
	margin: 0;
	padding: 12px 14px;
	background: #f4f7f9;
	border-bottom: 1px solid var(--line);
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: .03em;
}
.side-card__body { padding: 6px 0; }

.side-accordion > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	list-style: none;
	cursor: pointer;
	user-select: none;
}
.side-accordion > summary::-webkit-details-marker { display: none; }
.side-accordion > summary::after {
	content: "+";
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border: 1px solid #c9d5df;
	border-radius: 50%;
	color: var(--blue);
	font-size: 1rem;
	line-height: 1;
}
.side-accordion[open] > summary::after { content: "−"; }
.side-accordion[open] > summary { border-bottom: 1px solid var(--line); }
.side-accordion:not([open]) > summary { border-bottom: 0; }
.side-accordion > summary:hover { background: #edf4f9; }
.category-menu, .category-menu__sub, .side-links {
	list-style: none;
	margin: 0;
	padding: 0;
}
.category-menu__item > a, .side-links a {
	display: flex;
	align-items: center;
	min-height: 36px;
	padding: 7px 13px;
	color: #364554;
	border-bottom: 1px solid #eef2f5;
}
.category-menu__item:last-child > a, .side-links li:last-child a { border-bottom: 0; }
.category-menu__item > a::before, .side-links a::before {
	content: "";
	width: 5px;
	height: 5px;
	margin-right: 9px;
	border-radius: 50%;
	background: #9db3c6;
	flex: 0 0 auto;
}
.category-menu__item > a:hover, .side-links a:hover, .category-menu__item.is-active > a {
	background: var(--blue-soft);
	color: var(--blue-dark);
	text-decoration: none;
}
.category-menu__item.is-active > a::before { background: var(--blue); }
.category-menu__sub a { padding-left: 30px; font-size: .9rem; }
.side-card--links .side-links { padding: 6px 0; }

/* Full story */
.movie-page, .comments-section, .search-page, .static-page, .preview-card, .basecont, .baseform {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}
.movie-page { padding: 20px; }
.movie-header {
	padding-bottom: 14px;
	margin-bottom: 18px;
	border-bottom: 1px solid var(--line);
}
.movie-header h1 { margin-bottom: 8px; }
.movie-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	color: var(--muted);
	font-size: .86rem;
}
.movie-meta a { font-weight: 600; }
.movie-layout {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}
.movie-layout--no-poster { grid-template-columns: 1fr; }
.movie-poster { margin: 0; }
.movie-poster img {
	display: block;
	width: 280px;
	aspect-ratio: 280 / 396;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid #d6dee6;
	background: #eef2f5;
}
.movie-content { min-width: 0; }
.article-body { color: #354352; overflow-wrap: anywhere; }
.article-body p, .article-body ul, .article-body ol, .article-body blockquote { margin: 0 0 1em; }
.movie-layout:not(.movie-layout--no-poster) .article-body > div:first-of-type img:first-child { display: none; }
.movie-layout:not(.movie-layout--no-poster) .article-body > div:first-of-type:has(> img:first-child) { display: none; }
.article-body img { border-radius: 5px; }
.article-body iframe, .article-body video {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
	border-radius: 6px;
	background: #111;
}
.article-body blockquote {
	padding: 12px 14px;
	border-left: 3px solid var(--blue);
	background: #f6f9fc;
}
.article-body table { width: 100%; display: block; overflow-x: auto; }
.article-body td, .article-body th { padding: 7px 9px; border: 1px solid var(--line); }
.tag-row {
	margin-top: 18px;
	padding-top: 12px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: .88rem;
}
.edit-note { margin: 12px 0 0; color: var(--muted); font-size: .82rem; }
.story-pages { margin-top: 18px; }

.section-title-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 13px;
}
.section-title-row h2 { margin: 0; }
.section-title-row > span { color: var(--muted); font-size: .82rem; }
.torrent-section, .related-section {
	margin-top: 22px;
	padding-top: 19px;
	border-top: 1px solid var(--line);
}
.related-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	list-style: none;
	padding: 0;
	margin: 0;
}
.related-item a {
	display: block;
	padding: 10px 11px;
	background: #f7f9fb;
	border: 1px solid #e3e9ee;
	border-radius: 5px;
	color: #334155;
}
.related-item a:hover { border-color: #b9cfe0; background: var(--blue-soft); color: var(--blue-dark); text-decoration: none; }
.movie-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 18px;
	padding-top: 13px;
	border-top: 1px solid var(--line);
	font-size: .85rem;
}
.comments-section { margin-top: 16px; padding: 18px; }

/* Existing torrent_search.php output */
.dle-torrent-wrap { margin: 0 !important; }
.dle-torrent-head { margin-bottom: 10px !important; }
.dle-torrent-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dle-torrent-table { width: 100% !important; min-width: 620px; border-collapse: collapse; }
.dle-torrent-table th, .dle-torrent-table td { padding: 9px 10px !important; border-bottom: 1px solid #e6ebef !important; vertical-align: middle; }
.dle-torrent-table thead th { background: #f3f6f8 !important; color: #45525f !important; font-size: .82rem; text-align: left; }
.dle-torrent-table tbody tr:hover { background: #f9fbfc; }
.dle-torrent-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 0 11px !important;
	border-radius: 5px !important;
	background: var(--blue) !important;
	color: #fff !important;
	font-weight: 650;
	white-space: nowrap;
	text-decoration: none !important;
}
.dle-torrent-btn:hover { background: var(--blue-dark) !important; }
.dle-torrent-file { color: #263747; font-weight: 600; overflow-wrap: anywhere; }
.dle-torrent-loading, .dle-torrent-message { padding: 14px !important; background: #f6f9fb !important; border: 1px solid var(--line) !important; border-radius: 5px; }

/* Pagination */
.pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 18px;
	padding: 12px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}
.pagination__pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.pagination a, .pagination span:not(.pagination__prev):not(.pagination__next) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 8px;
	border: 1px solid var(--line);
	border-radius: 5px;
	background: #fff;
}
.pagination a:hover { background: var(--blue-soft); text-decoration: none; }
.pagination__prev, .pagination__next { color: var(--muted); }

/* Notices */
.notice, .berrors {
	margin: 0 0 14px;
	padding: 12px 14px;
	background: #f6f9fb;
	border: 1px solid var(--line);
	border-left: 3px solid var(--blue);
	border-radius: 5px;
}
.notice--error { border-left-color: var(--red); background: #fff7f6; }

/* Comments */
/* Native comment composer: no jQuery required */
.comment-composer { margin: 0 0 14px; }
.comment-composer > summary { width: max-content; list-style: none; cursor: pointer; }
.comment-composer > summary::-webkit-details-marker { display: none; }
.comment-composer > summary::before { content: "+"; margin-right: 7px; font-weight: 800; }
.comment-composer[open] > summary::before { content: "−"; }
.comment-composer__body { margin-top: 10px; }

.comment-form { margin: 14px 0 18px; padding: 15px; background: #f8fafb; border: 1px solid var(--line); border-radius: 6px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-field { display: grid; gap: 5px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-weight: 650; color: #45525f; }
.form-actions { margin-top: 12px; }
.comment {
	margin-top: 12px;
	padding: 14px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 6px;
}
.comment__header { display: flex; gap: 10px; align-items: center; }
.comment__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #eef2f5; }
.comment__author { display: grid; }
.comment__author span { color: var(--muted); font-size: .8rem; }
.comment__reply { margin-left: auto; font-size: .85rem; }
.comment__body { margin: 12px 0; }
.comment__signature { margin-top: 12px; padding-top: 8px; border-top: 1px dashed var(--line); color: var(--muted); font-size: .85rem; }
.comment__footer { display: flex; gap: 8px 12px; flex-wrap: wrap; padding-top: 9px; border-top: 1px solid #edf1f4; color: var(--muted); font-size: .78rem; }
.comment__tools { margin-left: auto; display: flex; gap: 8px; }

/* Search/static */
.search-page, .static-page { padding: 18px; }
.search-page__header, .static-page__header { margin-bottom: 15px; }
.search-page__header h1, .static-page__header h1 { margin-bottom: 7px; }
.search-result {
	margin-top: 12px;
	padding: 14px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 6px;
}
.search-result__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--muted); font-size: .8rem; }
.search-result__title { margin: 6px 0; font-size: 1.12rem; }
.search-result__text { color: #4a5866; }
.search-result__footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fast-search-result { display: grid; gap: 3px; padding: 8px 10px; border-bottom: 1px solid var(--line); color: #334155; }
.fast-search-result span { color: var(--muted); font-size: .82rem; }
.fast-search-result:hover { background: #f5f8fa; text-decoration: none; }

/* Generic DLE forms and legacy internal pages */
.f_input, .f_textarea, .tableform input[type="text"], .tableform input[type="password"], .tableform input[type="email"], .tableform input[type="file"], .tableform textarea, .tableform select {
	width: 100%;
	min-height: 39px;
	padding: 8px 10px;
	border: 1px solid var(--line-strong);
	border-radius: 5px;
	background: #fff;
	color: var(--text);
}
.f_textarea, .tableform textarea { min-height: 120px; }
.f_input:focus, .f_textarea:focus, .tableform input:focus, .tableform textarea:focus, .tableform select:focus { border-color: var(--blue); outline: 0; }
.baseform, .basecont { padding: 16px; }
.pheading { margin: 0 0 12px; }
.pheading h2, .pheading h3 { margin: 0; }
.tableform { width: 100%; }
.tableform td { padding: 8px; vertical-align: top; }
.tableform td.label { width: 220px; color: #485766; font-weight: 600; }
.fieldsubmit { margin-top: 12px; }
.impot { color: var(--red); }
.small { font-size: .82rem; }
.editorcomm { min-width: 0; }
.pm_status { margin-bottom: 12px; padding: 12px; background: #f7f9fb; border: 1px solid var(--line); border-radius: 5px; }
.pm_status_head { font-weight: 700; margin-bottom: 5px; }
.bcomment { margin-bottom: 12px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.statistics ul { margin: 0 0 14px; }
.userstop, .pm { width: 100%; overflow-x: auto; }
.userstop td, .pm td { padding: 7px; border: 1px solid var(--line); }

.poll-box { margin-bottom: 14px; padding: 15px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.poll-box__actions { display: flex; gap: 8px; margin-top: 10px; }
.preview-card { padding: 16px; }
.preview-meta { color: var(--muted); font-size: .84rem; }

/* Attachments */
.attachment-card {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	margin: 12px 0;
	padding: 12px;
	background: #f8fafc;
	border: 1px solid var(--line);
	border-radius: 7px;
}
.attachment-card__type {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	padding: 4px;
	border-radius: 7px;
	background: #e6f1f9;
	color: var(--blue-dark);
	font-size: .68rem;
	font-weight: 800;
	text-transform: uppercase;
	overflow: hidden;
}
.attachment-card__content { min-width: 0; }
.attachment-card__name { display: block; color: #1d2b38; font-weight: 700; overflow-wrap: anywhere; }
.attachment-card__name:hover { color: var(--blue); text-decoration: none; }
.attachment-card__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; color: var(--muted); font-size: .8rem; }
.attachment-card__download {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0 13px;
	border-radius: 5px;
	background: var(--blue);
	color: #fff;
	font-weight: 700;
	white-space: nowrap;
}
.attachment-card__download:hover { background: var(--blue-dark); color: #fff; text-decoration: none; }
.attachment-card--locked { grid-template-columns: 52px minmax(0, 1fr); }

/* SEO copy */

/* Footer */
.site-footer {
	margin-top: 12px;
	padding: 26px 0;
	background: #17212b;
	color: #aeb9c4;
}
.footer-grid {
	display: grid;
	grid-template-columns: 1fr auto auto;
	gap: 24px;
	align-items: center;
}
.footer-brand { color: #fff; font-size: 1.05rem; font-weight: 800; }
.footer-brand:hover { color: #fff; }
.footer-grid p { margin: 4px 0 0; }
.footer-links { display: flex; gap: 14px; }
.footer-links a { color: #d8e1e8; }
.copyright { font-size: .83rem; }

/* Custom/poster helpers */
.custom-card, .mini-poster-card { list-style: none; }
.mini-poster-card a { display: grid; gap: 7px; color: #263442; }
.mini-poster-card img { width: 100%; aspect-ratio: 150/212; object-fit: cover; border-radius: 5px; }

/* Utility compatibility */
.clr { clear: both; }
.reset { margin: 0; padding: 0; list-style: none; }
.lcol, .rcol { float: none; }
.thide { overflow: hidden; text-indent: -9999px; }

@media (max-width: 980px) {
	.header-main { grid-template-columns: auto minmax(250px, 1fr) auto; gap: 16px; }
	.brand__mark { display: none; }
	.brand { min-width: 175px; }
	.content-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 16px; }
	:root { --sidebar: 240px; }
	.story-card { grid-template-columns: 150px minmax(0, 1fr); }
	.story-card__poster { width: 150px; }
	.movie-layout { grid-template-columns: 240px minmax(0, 1fr); }
	.movie-poster img { width: 240px; }
}

@media (max-width: 780px) {
	.site-container { width: min(calc(100% - 20px), var(--container)); }
	.header-main {
		grid-template-columns: 1fr auto;
		gap: 10px 14px;
		padding-block: 12px;
		min-height: 0;
	}
	.brand { min-width: 0; }
	.site-account { grid-column: 2; grid-row: 1; }
	.site-search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
	.nav-list a { min-height: 43px; padding-inline: 13px; }
	.site-main { padding-top: 16px; }
	.content-layout { grid-template-columns: 1fr; }
	.sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.side-card { margin: 0; }
	.movie-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 18px; }
	.movie-poster img { width: 220px; }
	.footer-grid { grid-template-columns: 1fr auto; }
	.copyright { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
	.nav-list { flex-wrap: wrap; }
	.nav-list a, .nav-dropdown > summary { min-height: 40px; padding-inline: 11px; font-size: .84rem; }
	.nav-dropdown__panel { min-width: 220px; }
	body { font-size: 14px; }
	.site-container { width: min(calc(100% - 16px), var(--container)); }
	.header-main { padding-block: 10px; }
	.brand__text { font-size: 1.17rem; }
	.account-menu--guest summary { padding: 7px 10px; }
	.site-search input[type="search"], .site-search button { height: 43px; }
	.site-search button { min-width: 68px; padding-inline: 12px; }
	.page-intro { padding: 14px; margin-bottom: 12px; }
	.page-intro h1 { font-size: 1.42rem; }
	.speedbar { padding: 8px 10px; }
	.story-card {
		grid-template-columns: 104px minmax(0, 1fr);
		gap: 11px;
		padding: 10px;
		contain-intrinsic-size: 210px;
	}
	.story-card__poster { width: 104px; aspect-ratio: 104/148; }
	.story-card__title { font-size: 1.02rem; margin-bottom: 5px; }
	.story-card__meta { gap: 3px 8px; margin-bottom: 6px; font-size: .75rem; }
	.story-card__meta span:nth-child(3) { display: none; }
	.story-card__excerpt {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 5;
		overflow: hidden;
		font-size: .86rem;
		line-height: 1.48;
	}
	.story-card__bottom { grid-column: 1 / -1; margin-top: 9px; padding-top: 9px; }
	.story-card__bottom .button { min-height: 34px; padding-inline: 10px; font-size: .82rem; }
	.story-comments { display: none; }
	.sidebar { grid-template-columns: 1fr; }
	.movie-page, .comments-section, .search-page, .static-page, .basecont, .baseform { padding: 13px; }
	.movie-layout { grid-template-columns: 1fr; }
	.movie-poster { display: flex; justify-content: center; }
	.movie-poster img { width: min(74vw, 280px); }
	.movie-layout:not(.movie-layout--no-poster) .article-body > div:first-of-type img:first-child { display: none; }
.movie-layout:not(.movie-layout--no-poster) .article-body > div:first-of-type:has(> img:first-child) { display: none; }
	.section-title-row { align-items: flex-start; flex-direction: column; }
	.related-list { grid-template-columns: 1fr; }
	.form-grid { grid-template-columns: 1fr; }
	.form-field--full { grid-column: auto; }
	.tableform, .tableform tbody, .tableform tr, .tableform td { display: block; width: 100%; }
	.tableform tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
	.tableform td { padding: 4px 0; }
	.tableform td.label { width: auto; }
	.footer-grid { grid-template-columns: 1fr; gap: 12px; }
	.footer-links { flex-wrap: wrap; }
	.copyright { grid-column: auto; }
	.attachment-card { grid-template-columns: 44px minmax(0, 1fr); gap: 9px; padding: 10px; }
	.attachment-card__type { width: 44px; height: 44px; }
	.attachment-card__download { grid-column: 1 / -1; width: 100%; }
	.account-menu__panel { position: fixed; left: 8px; right: 8px; top: 64px; width: auto; }
	.account-menu__panel--form { width: auto; }
	.dle-torrent-table { min-width: 560px; }
}

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

@media print {
	.site-header, .site-footer, .sidebar, .site-account, .site-search, .nav-bar, .comments-section, .torrent-section, .movie-actions { display: none !important; }
	body { background: #fff; color: #000; }
	.site-container { width: 100%; }
	.content-layout { display: block; }
	.movie-page { border: 0; padding: 0; }
}
