/*
Theme Name: rightNreal Magazine
Theme URI: https://rightnreal.com/
Description: Dark news magazine theme. Homepage built from categories, subcategories and posts: hero banner, highlighted stories, category sections with subcategory tabs, and a video grid.
Author: rightNreal
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: rnr
Tags: news, blog, dark, grid-layout, custom-logo, custom-menu, featured-images
*/

:root {
	--bg: #0b0a10;
	--bg-2: #111019;
	--surface: #17151f;
	--surface-2: #201d2b;
	--line: #2a2636;
	--text: #ffffff;
	--muted: #a19db0;
	--dim: #6f6a80;
	--pink: #ff4d8d;
	--violet: #8b5cf6;
	--blue: #5aa9ff;
	--yellow: #ffd43b;
	--red: #ff4545;
	--green: #22c55e;
	--radius: 16px;
	--radius-sm: 10px;
	--wrap: 1400px;
	--font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--text); }
button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 1em; height: 1em; fill: currentColor; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; color: #000; padding: 8px 12px; z-index: 999; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------------- Top bar ---------------- */
.topbar {
	position: sticky; top: 0; z-index: 50;
	background: rgba(6, 6, 9, .92);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid #1c1a24;
}
.topbar__inner { max-width: 1760px; margin: 0 auto; padding: 0 32px; height: 70px; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand__mark svg { width: 36px; height: 36px; }
.brand__logo { max-height: 42px; width: auto; }
.brand__name { font-weight: 800; font-size: 20px; letter-spacing: -0.01em; text-transform: none; }
.mainnav { position: relative; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.mainnav::-webkit-scrollbar { display: none; }
.mainnav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.mainnav__list a { display: block; padding: 8px 14px; font-weight: 600; font-size: 17px; color: var(--muted); border-radius: 8px; transition: color .15s; }
.mainnav__list a:hover { color: #fff; }
.mainnav__list .current-menu-item > a { color: #fff; }
.mainnav__home { padding-right: 10px; margin-right: 6px; border-right: 1px solid var(--line); }
.mainnav__home a { color: #fff; font-weight: 800; font-size: 18px; }
.search-toggle { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface); display: grid; place-items: center; }
.search-toggle svg { width: 18px; height: 18px; }
.searchbar { border-top: 1px solid var(--line); background: var(--bg-2); }
.searchbar form { max-width: 760px; margin: 0 auto; padding: 14px 32px; display: flex; gap: 10px; }
.searchbar input { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px; color: #fff; font: inherit; }
.searchbar button, .search-form .search-submit { border: 0; border-radius: 999px; padding: 0 22px; background: #fff; color: #000; font-weight: 700; }

/* ---------------- Buttons & chips ---------------- */
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 16px 30px; font-weight: 700; font-size: 18px; border: 0; transition: transform .15s, background .15s; }
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn--light { background: #fff; color: #0b0a10; }
.btn--light:hover { color: #0b0a10; }
.btn--dark { background: rgba(255, 255, 255, .12); color: #fff; backdrop-filter: blur(6px); }
.btn--dark:hover { background: rgba(255, 255, 255, .2); }
.btn--sm { padding: 8px 16px; font-size: 14px; }
.chip {
	--h: 330;
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
	color: hsl(var(--h) 95% 72%);
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: hsl(var(--h) 90% 62%); }

/* ---------------- Placeholder media ---------------- */
.ph {
	--h: 320;
	position: absolute; inset: 0;
	background:
		radial-gradient(120% 90% at 85% 10%, hsl(calc(var(--h) + 40) 80% 55% / .55), transparent 60%),
		radial-gradient(90% 80% at 10% 100%, hsl(var(--h) 85% 50% / .6), transparent 60%),
		linear-gradient(135deg, hsl(var(--h) 45% 18%), hsl(calc(var(--h) + 50) 50% 10%));
	display: flex; align-items: flex-end; overflow: hidden;
}
.ph span { font-size: clamp(28px, 6vw, 80px); font-weight: 800; letter-spacing: -0.04em; color: rgba(255, 255, 255, .08); line-height: .9; padding: 0 0 6% 5%; white-space: nowrap; }

/* ---------------- Hero banner ---------------- */
.banner { --hue: 320; position: relative; overflow: hidden; min-height: 860px; display: flex; isolation: isolate; }
.banner__bg { position: absolute; inset: 0; z-index: -2; background: linear-gradient(120deg, hsl(var(--hue) 40% 12%), hsl(calc(var(--hue) + 50) 50% 22%)); }
.banner__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.banner::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(90deg, rgba(11, 10, 16, .97) 0%, rgba(11, 10, 16, .85) 32%, rgba(11, 10, 16, .25) 62%, rgba(11, 10, 16, .1) 100%),
		linear-gradient(0deg, rgba(11, 10, 16, .95) 0%, rgba(11, 10, 16, 0) 40%),
		linear-gradient(180deg, rgba(11, 10, 16, .6) 0%, rgba(11, 10, 16, 0) 18%);
}
.banner__inner { display: flex; flex-direction: column; justify-content: flex-end; padding-top: 120px; padding-bottom: 24px; }
.banner__live { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 26px; font-weight: 700; }
.banner__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(255, 69, 69, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 69, 69, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 69, 69, 0); } }
.banner__label { color: var(--red); font-size: 19px; font-weight: 800; letter-spacing: .01em; }
.banner__count { font-size: 19px; color: #e7e4ef; margin-right: 8px; }
.banner__tag { --h: 300; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 8px; background: rgba(255, 255, 255, .1); font-size: 14px; color: #fff; backdrop-filter: blur(6px); }
.banner__tag i { width: 12px; height: 12px; border-radius: 3px; background: hsl(var(--h) 90% 62%); }
.banner__tag b { font-weight: 800; }
.banner__title { font-size: clamp(40px, 5.2vw, 72px); font-weight: 800; max-width: 760px; line-height: 1.08; letter-spacing: -0.03em; }
.banner__excerpt { font-size: 19px; color: #d6d2e0; max-width: 540px; margin: 28px 0 40px; }
.banner__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* hero strip */
.strip { position: relative; margin-top: 90px; padding-top: 28px; }
.strip__track-line { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .25) 0 2px, transparent 2px 6px); border-radius: 2px; }
.strip__track-line span { display: block; height: 100%; width: 25%; margin-left: auto; border-radius: 2px; background: linear-gradient(90deg, var(--blue), var(--violet), var(--pink)); transition: width .3s; }
.strip__scroller { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.strip__scroller::-webkit-scrollbar { display: none; }
.strip__card {
	flex: 0 0 calc((100% - 64px) / 5); min-width: 240px; scroll-snap-align: start;
	display: flex; flex-direction: column; gap: 4px;
	background: rgba(23, 21, 31, .9); border: 1px solid rgba(255, 255, 255, .06);
	border-radius: 12px; padding: 22px 24px; min-height: 168px;
	backdrop-filter: blur(8px); transition: background .15s, border-color .15s;
}
.strip__card:hover { background: rgba(32, 29, 43, .95); border-color: rgba(255, 255, 255, .14); }
.strip__top { display: flex; justify-content: space-between; gap: 10px; font-weight: 800; font-size: 17px; }
.strip__ago { color: var(--yellow); font-size: 14px; font-weight: 700; white-space: nowrap; }
.strip__date { color: var(--muted); font-size: 14px; }
.strip__title { font-weight: 700; font-size: 18px; line-height: 1.3; margin-top: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.strip__foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; }
.strip__vid { color: var(--pink); font-weight: 700; }
.strip__nav { position: absolute; top: calc(50% + 14px); transform: translateY(-50%); z-index: 2; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(60, 58, 70, .9); display: grid; place-items: center; transition: opacity .2s; }
.strip__nav svg { width: 20px; height: 20px; }
.strip__nav--prev { left: -25px; }
.strip__nav--next { right: -25px; }
.strip.at-start .strip__nav--prev, .strip.at-end .strip__nav--next { opacity: 0; pointer-events: none; }

/* ---------------- Sections ---------------- */
.section { padding: 70px 0 10px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.section__title { font-size: clamp(30px, 3vw, 40px); font-weight: 800; }
.section__desc { color: var(--muted); font-size: 17px; margin: 10px 0 0; max-width: 760px; }
.section__tools { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.section__more { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 700; font-size: 17px; white-space: nowrap; }
.section__more:hover { color: #8cc4ff; }
.section__more svg { width: 18px; height: 18px; }
.pills { display: inline-flex; flex-wrap: wrap; padding: 4px; gap: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); }
.pill { border: 0; background: transparent; color: var(--muted); padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 15px; transition: background .15s, color .15s; }
.pill:hover { color: #fff; }
.pill.is-active { background: var(--surface-2); color: #fff; }
.panel[hidden] { display: none; }
.empty { color: var(--muted); }

/* layout: featured (1 big + 2x2) */
.layout-featured { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.layout-featured__side { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; align-content: start; }

/* layout: grid */
.layout-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 30px; }
.layout-featured + .layout-grid { margin-top: 40px; }
.panel > .layout-grid:first-child { margin-top: 0; }

/* layout: ranked list */
.layout-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.layout-list li { border-bottom: 1px solid var(--line); }

/* ---------------- Cards ---------------- */
.card { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card__media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card--big .card__media { aspect-ratio: auto; flex: 1; min-height: 420px; }
.card--big { height: 100%; }
.card__title { font-size: 17px; font-weight: 700; line-height: 1.35; }
.card__title a { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__title a:hover { color: #d8d4e6; }
.card__body { display: flex; flex-direction: column; gap: 10px; }
.card__excerpt { color: var(--muted); margin: 0; }
.card__overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 80px 32px 28px; background: linear-gradient(0deg, rgba(0, 0, 0, .88), transparent); display: flex; flex-direction: column; gap: 10px; }
.card__overlay-chip { font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--pink); }
.card__overlay-title { font-size: clamp(22px, 2.2vw, 32px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.card--big.is-video .card__overlay { padding-right: 110px; }
.badge { position: absolute; top: 20px; left: 20px; display: inline-flex; align-items: center; gap: 6px; background: var(--yellow); color: #111; font-weight: 800; font-size: 14px; padding: 7px 12px; border-radius: 8px; z-index: 2; }
.badge svg { width: 16px; height: 16px; }
.duration { position: absolute; right: 12px; bottom: 12px; background: rgba(0, 0, 0, .78); padding: 3px 9px; border-radius: 6px; font-weight: 800; font-size: 14px; z-index: 2; }
.card--big .duration { right: 20px; bottom: 20px; }
.play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; border-radius: 50%; background: rgba(15, 14, 20, .72); display: grid; place-items: center; transition: transform .2s, background .2s; z-index: 2; }
.play svg { width: 26px; height: 26px; margin-left: 3px; }
.card:hover .play, .highlight__media:hover .play { transform: translate(-50%, -50%) scale(1.08); background: var(--pink); }
.card--big .play { width: 72px; height: 72px; }

.meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; color: var(--muted); font-size: 15px; }
.meta__by { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; min-width: 0; }
.meta__by span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta__avatar { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.meta__when { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.meta__when svg { width: 15px; height: 15px; }

/* row / rank cards */
.card--rank, .card--row { flex-direction: row; align-items: center; gap: 18px; padding: 18px 0; }
.card--rank .card__media, .card--row .card__media { flex: 0 0 150px; border-radius: var(--radius-sm); }
.card--rank .card__body, .card--row .card__body { flex: 1; min-width: 0; }
.card--rank .card__body { gap: 6px; }
.card--rank .card__title { font-size: 16px; }
.card--rank .meta { font-size: 13px; }
.card--rank .meta__avatar { width: 22px; height: 22px; }
.card__rank { flex: 0 0 34px; font-size: 26px; font-weight: 800; color: var(--dim); text-align: center; }
li:nth-child(-n+3) > .card--rank .card__rank { color: var(--yellow); }

/* video section accent */
.section--video .card__media { border-radius: 14px; }
.section--video .section__title::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--red); margin-right: 14px; vertical-align: middle; }

/* ---------------- Highlighted stories card ---------------- */
.highlight__card {
	position: relative; display: grid; grid-template-columns: minmax(0, 44%) 1fr; overflow: hidden;
	border-radius: 22px; min-height: 560px;
	background:
		radial-gradient(80% 90% at 85% 0%, rgba(139, 92, 246, .35), transparent 60%),
		radial-gradient(70% 70% at 100% 100%, rgba(255, 77, 141, .18), transparent 60%),
		linear-gradient(135deg, #2a2240, #191526 55%, #231d36);
	border: 1px solid rgba(255, 255, 255, .06);
}
.highlight__media { position: relative; display: block; }
.highlight__media img, .highlight__media .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.highlight__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, #1e1930 100%); pointer-events: none; }
.highlight__body { padding: 50px 50px 44px 40px; display: flex; flex-direction: column; gap: 22px; }
.highlight__heading { font-size: clamp(32px, 3.4vw, 50px); font-weight: 800; }
.highlight__sub { display: flex; align-items: center; gap: 14px; margin: -6px 0 0; color: #e3dfee; font-size: 18px; }
.highlight__dots { display: inline-flex; gap: 6px; }
.highlight__dots i { width: 20px; height: 20px; border-radius: 6px; background: hsl(var(--h) 85% 60%); }
.highlight__lead { padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .08); border-bottom: 1px solid rgba(255, 255, 255, .08); display: flex; flex-direction: column; gap: 10px; }
.highlight__lead h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 800; }
.highlight__lead p { margin: 0; color: #cfcadb; }
.highlight__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.highlight__list li { display: flex; align-items: center; gap: 14px; min-width: 0; }
.highlight__num { font-size: 30px; font-weight: 800; color: var(--pink); flex: 0 0 24px; }
.highlight__thumb { position: relative; flex: 0 0 92px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; }
.highlight__thumb img { width: 100%; height: 100%; object-fit: cover; }
.highlight__thumb .ph span { font-size: 18px; }
.highlight__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; line-height: 1.3; margin-top: 4px; }
.highlight__title:hover { color: #d8d4e6; }

/* ---------------- Archive ---------------- */
.archive { padding-top: 60px; padding-bottom: 40px; }
.archive__head { margin-bottom: 36px; }
.crumb { display: inline-block; color: var(--blue); font-weight: 700; margin-bottom: 10px; }
.pills a.pill { display: inline-block; }
.pagination { display: flex; gap: 8px; justify-content: center; margin: 50px 0 10px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px; border-radius: 999px; background: var(--surface); color: var(--muted); font-weight: 700; }
.pagination .current { background: #fff; color: #000; }

/* ---------------- Single article ---------------- */
.article__head { padding-top: 60px; max-width: 1000px; }
.article__crumbs { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 700; margin-bottom: 18px; font-size: 14px; }
.article__crumbs a:hover { color: #fff; }
.article__title { font-size: clamp(34px, 4.4vw, 58px); font-weight: 800; letter-spacing: -0.03em; }
.article__dek { font-size: 20px; color: #d0ccdc; margin: 18px 0 0; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 26px; color: var(--muted); font-size: 15px; }
.article__meta .meta { gap: 22px; }
.article__hero { margin-top: 36px; }
.article__image { width: 100%; max-height: 720px; object-fit: cover; border-radius: 22px; }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #000; }
.video-embed iframe, .video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; }
.article__layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 70px; margin-top: 50px; }
.article__content { font-size: 19px; line-height: 1.75; color: #e4e1ec; max-width: 780px; }
.article__content--page { margin: 40px auto 60px; }
.entry-content h2 { font-size: 30px; margin: 1.6em 0 .5em; color: #fff; }
.entry-content h3 { font-size: 24px; margin: 1.4em 0 .5em; color: #fff; }
.entry-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { height: auto; border-radius: 14px; }
.entry-content blockquote { margin: 1.6em 0; padding: 6px 0 6px 24px; border-left: 4px solid var(--pink); font-size: 22px; color: #fff; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { color: var(--dim); font-size: 14px; margin-top: 8px; }
.article__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.article__tags a { padding: 6px 14px; border-radius: 999px; background: var(--surface); font-size: 14px; color: var(--muted); text-decoration: none; }
.article__aside h4 { font-size: 20px; margin-bottom: 6px; }
.article__aside { position: sticky; top: 100px; align-self: start; }
.layout-list--aside { grid-template-columns: 1fr; }
.layout-list--aside .card--rank .card__media { flex-basis: 100px; }
.article__comments { max-width: 860px; margin-top: 50px; }
.article__comments textarea, .article__comments input[type=text], .article__comments input[type=email], .article__comments input[type=url] { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: #fff; padding: 12px; font: inherit; }
.article__comments .submit { background: #fff; color: #000; border: 0; border-radius: 999px; padding: 12px 26px; font-weight: 700; }

/* ---------------- Lightbox ---------------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5, 5, 8, .9); display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox__box { position: relative; width: min(1100px, 100%); }
.lightbox__frame { aspect-ratio: 16 / 9; background: #000; border-radius: 16px; overflow: hidden; }
.lightbox__frame iframe, .lightbox__frame video { width: 100%; height: 100%; border: 0; }
.lightbox__title { margin: 14px 0 0; font-weight: 700; font-size: 18px; }
.lightbox__close { position: absolute; top: -50px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); font-size: 26px; line-height: 1; }

/* ---------------- Footer ---------------- */
.footer { margin-top: 90px; border-top: 1px solid var(--line); background: #08070c; }
.footer__inner { display: grid; grid-template-columns: 300px 1fr; gap: 50px; padding-top: 56px; padding-bottom: 40px; }
.footer__brand p { color: var(--muted); margin: 14px 0 0; }
.footer__cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 30px; }
.footer__col h4 { font-size: 16px; margin-bottom: 12px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__col li a { color: var(--muted); font-size: 15px; }
.footer__col li a:hover { color: #fff; }
.footer__widgets { grid-column: 1 / -1; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; padding-bottom: 30px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
.footer__menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.empty-home { padding: 120px 32px; text-align: center; }

/* WordPress core classes */
.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption-text, .screen-reader-text { font-size: 14px; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1200px) {
	.layout-grid { grid-template-columns: repeat(3, 1fr); }
	.strip__card { flex-basis: calc((100% - 48px) / 4); }
	.article__layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.article__aside { position: static; }
}
@media (max-width: 960px) {
	.wrap { padding: 0 20px; }
	.topbar__inner { padding: 0 16px; gap: 16px; height: 62px; }
	.mainnav__list a { font-size: 15px; padding: 8px 10px; }
	.layout-featured { grid-template-columns: 1fr; }
	.card--big .card__media { min-height: 0; aspect-ratio: 16 / 10; }
	.layout-list { grid-template-columns: 1fr; }
	.highlight__card { grid-template-columns: 1fr; }
	.highlight__media { aspect-ratio: 16 / 9; }
	.highlight__media::after { background: linear-gradient(180deg, transparent 60%, #1e1930 100%); }
	.highlight__body { padding: 28px 24px 32px; }
	.banner { min-height: 0; }
	.banner__inner { padding-top: 70px; }
	.strip { margin-top: 56px; }
	.strip__card { flex-basis: 260px; }
	.strip__nav { display: none; }
	.footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.wrap { padding: 0 16px; }
	.brand__name { font-size: 17px; }
	.layout-grid, .layout-featured__side { grid-template-columns: 1fr; }
	.highlight__list { grid-template-columns: 1fr; }
	.section { padding-top: 50px; }
	.section__tools { width: 100%; justify-content: space-between; }
	.pills { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
	.pill { white-space: nowrap; }
	.banner__excerpt { font-size: 17px; }
	.btn { padding: 13px 22px; font-size: 16px; }
	.card--big .card__media { aspect-ratio: 4 / 3; }
	.card__overlay { padding: 44px 16px 16px; }
	.card__overlay-title { font-size: 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.badge { top: 12px; left: 12px; font-size: 12px; padding: 5px 9px; }
	.card--big .play { width: 56px; height: 56px; }
	.card--rank, .card--row { gap: 12px; }
	.card--rank .card__media { flex-basis: 84px; }
	.card__rank { flex-basis: 22px; font-size: 20px; }
	.footer__bottom { flex-direction: column; }
}
