@font-face {
	font-family: Inter;
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/inter-400.woff2") format("woff2");
}

@font-face {
	font-family: Inter;
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/inter-600.woff2") format("woff2");
}

@font-face {
	font-family: Inter;
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("../fonts/inter-800.woff2") format("woff2");
}

:root {
	color-scheme: dark;
	--bg: #141416;
	--surface: #1e1e24;
	--surface-2: #2a2a32;
	--text: #f4f4f5;
	--muted: #a1a1aa;
	--line: #34343c;
	--violet: #7c3aed;
	--lime: #c6f531;
	--cyan: #22d3ee;
	--blue: #60a5fa;
	--indigo: #818cf8;
	--green: #4ade80;
	--zinc: #d4d4d8;
	--youtube: #ff2a2a;
	--ink: #141416;
	--radius-card: 12px;
	--radius-pill: 999px;
	--header-h: 72px;
	--gap: 20px;
	--sidebar: 320px;
}

[data-theme="light"] {
	color-scheme: light;
	--bg: #f7f7f8;
	--surface: #ffffff;
	--surface-2: #efeff2;
	--text: #16161a;
	--muted: #52525b;
	--line: #e4e4e7;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: Inter, system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

body.drawer-open {
	overflow: hidden;
}

img {
	max-width: 100%;
	display: block;
}

h1,
h2,
p {
	margin-top: 0;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
textarea {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

:focus {
	outline: none;
}

:focus-visible {
	outline: 2px solid var(--lime);
	outline-offset: 2px;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -48px;
	z-index: 80;
	background: var(--lime);
	color: var(--ink);
	font-weight: 800;
	padding: 8px 12px;
	border-radius: 8px;
}

.skip-link:focus {
	top: 12px;
}

.container {
	width: min(1200px, calc(100% - 32px));
	margin-inline: auto;
}

.site-header {
	background: var(--bg);
	border-bottom: 1px solid var(--line);
}

.header-bar {
	min-height: var(--header-h);
	display: flex;
	align-items: center;
	gap: 16px;
}

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.logo__text {
	display: flex;
	flex-direction: column;
	font-weight: 800;
	font-size: 18px;
	line-height: 0.95;
	letter-spacing: -0.03em;
	text-shadow: 1px 0 0 var(--cyan), -1px 0 0 var(--violet);
}

.logo__icon {
	width: 42px;
	height: 42px;
	flex-shrink: 0;
}

.logo__icon img {
	width: 42px;
	height: 42px;
	object-fit: contain;
	display: block;
}

.primary-nav {
	flex: 1;
	min-width: 0;
}

.primary-nav ul,
.footer-nav ul,
.drawer ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 14px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-nav a,
.footer-nav a,
.drawer a {
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.primary-nav a[aria-current="page"],
.drawer a[aria-current="page"] {
	color: var(--text);
	box-shadow: inset 0 -2px 0 var(--nav, var(--lime));
}

.search-form {
	position: relative;
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.search-form input {
	width: 180px;
	height: 44px;
	border-radius: var(--radius-pill);
	border: 1px solid var(--line);
	background: var(--surface);
	padding: 0 44px 0 14px;
}

.search-form button {
	position: absolute;
	right: 4px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--muted);
	display: grid;
	place-items: center;
}

.search-form--page {
	margin: 0 auto 28px;
	max-width: 560px;
}

.search-form--page input {
	width: 100%;
}

.header-tools {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.icon-btn,
.menu-toggle,
.theme-toggle,
.hero-arrow {
	min-height: 44px;
	border-radius: var(--radius-pill);
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--text);
}

.icon-btn,
.hero-arrow {
	width: 44px;
	display: grid;
	place-items: center;
	padding: 0;
}

.search-toggle,
.menu-toggle {
	display: none;
}

.menu-toggle__icon,
.menu-toggle__icon::before,
.menu-toggle__icon::after {
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 1px;
	background: currentColor;
}

.menu-toggle__icon {
	position: relative;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
	content: "";
	position: absolute;
	left: 0;
}

.menu-toggle__icon::before {
	top: -6px;
}

.menu-toggle__icon::after {
	top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon {
	background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before {
	top: 0;
	transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after {
	top: 0;
	transform: rotate(-45deg);
}

.theme-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0 12px 0 8px;
	font-weight: 800;
}

.theme-toggle__track {
	width: 40px;
	height: 22px;
	border-radius: var(--radius-pill);
	background: var(--surface-2);
	border: 1px solid var(--line);
	position: relative;
	flex-shrink: 0;
}

.theme-toggle__thumb {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--lime);
	transition: transform 150ms ease;
}

[data-theme="light"] .theme-toggle__thumb {
	transform: translateX(18px);
}

.when-light {
	display: none;
}

[data-theme="light"] .when-dark {
	display: none;
}

[data-theme="light"] .when-light {
	display: inline;
}

.drawer-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 40;
}

.drawer {
	position: fixed;
	z-index: 41;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(320px, 100%);
	background: var(--bg);
	border-left: 1px solid var(--line);
	padding: 24px 16px;
	overflow: auto;
}

.drawer ul {
	flex-direction: column;
	align-items: stretch;
	gap: 4px;
}

.drawer a {
	display: flex;
	align-items: center;
	min-height: 44px;
}

.drawer[hidden],
.drawer-backdrop[hidden],
.hero-slide[hidden] {
	display: none !important;
}

.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
	padding: 24px 0 48px;
}

.layout__main,
.layout__side {
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}

.page-title,
.page-intro h1,
.article-title {
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.page-title,
.page-intro h1 {
	font-size: 40px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 28px 0 8px;
}

.page-intro {
	text-align: center;
	padding-top: 12px;
}

.page-kicker {
	margin: 28px 0 0;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.page-intro .page-kicker + h1 {
	margin-top: 8px;
}

.crumbs {
	margin: 20px 0 0;
}

.page-intro .crumbs {
	display: flex;
	justify-content: center;
}

.entry .crumbs {
	margin-top: 0;
}

.crumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 13px;
	color: var(--muted);
}

.crumbs li {
	display: inline-flex;
	align-items: center;
}

.crumbs li + li::before {
	content: "/";
	margin: 0 8px;
}

.crumbs a:hover,
.crumbs [aria-current="page"] {
	color: var(--text);
}

.page-lead {
	max-width: 720px;
	margin: 0 0 8px;
	color: var(--muted);
}

.page-lead p {
	margin: 0;
}

.page-intro p,
.page-empty,
.channel-bio {
	color: var(--muted);
}

.page-empty {
	margin: 12px 0 32px;
}

.hero-slide {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
	gap: var(--gap);
	align-items: stretch;
}

.hero-sides {
	display: grid;
	gap: var(--gap);
}

.hero-main,
.hero-side {
	display: flex;
	min-width: 0;
	min-height: 0;
}

.hero-main .media {
	flex: 1;
	min-height: 420px;
	aspect-ratio: auto;
}

.hero-side .media {
	flex: 1;
	min-height: 160px;
	aspect-ratio: auto;
}

.hero-main .media img,
.hero-side .media img {
	transition: transform 350ms ease;
}

@media (hover: hover) {
	.hero-main:hover .media img,
	.hero-side:hover .media img {
		transform: scale(1.04);
	}
}

.hero-main:focus-visible .media img,
.hero-side:focus-visible .media img {
	transform: scale(1.04);
}

.hero-controls {
	display: flex;
	align-items: center;
	gap: 12px;
}

.hero-dots {
	display: flex;
	gap: 8px;
}

.hero-dots button {
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	display: grid;
	place-items: center;
}

.hero-dots button::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--line);
}

.hero-dots button[aria-pressed="true"]::before {
	background: var(--lime);
}

.media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 8px;
	overflow: hidden;
	background: var(--surface-2);
}

.media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

.media--games { background: #1c2610; }
.media--filmes { background: #102428; }
.media--animes { background: #24143a; }
.media--livros { background: #142033; }
.media--series { background: #1c1a33; }
.media--artigos { background: #2a2a30; }
.media--accent-violet { background: #24143a; }
.media--accent-green { background: #142616; }
.media--accent-blue { background: #142033; }

.media--overlay::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 62%;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
	z-index: 1;
}

.hero-main__content,
.hero-side__title {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 20px;
}

.hero-title,
.hero-side__title {
	color: #f4f4f5;
	font-weight: 800;
	line-height: 1.15;
	text-transform: uppercase;
	margin: 8px 0 0;
}

.hero-title {
	font-size: 32px;
}

.hero-side__title {
	font-size: 16px;
	margin: 0;
}

.pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.pill {
	display: inline-flex;
	align-items: center;
	min-height: 22px;
	padding: 0 8px;
	border-radius: var(--radius-pill);
	background: var(--zinc);
	color: var(--ink);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.pill--games,
.pill--destaque { background: var(--lime); }
.pill--filmes { background: var(--cyan); }
.pill--animes,
.pill--indicacao { background: var(--violet); color: #f4f4f5; }
.pill--livros { background: var(--blue); }
.pill--series { background: var(--indigo); }
.pill--artigos { background: var(--zinc); }
.pill--review,
.pill--critica { background: var(--green); }

.card-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--gap);
}

.card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	padding: 12px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
}

.card:hover {
	border-color: var(--muted);
}

.card__title,
.side-item__title,
.video-card__title {
	font-weight: 800;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.card__title {
	font-size: 18px;
}

.meta {
	color: var(--muted);
	font-size: 14px;
}

.side-title {
	margin: 0 0 12px;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.side-list,
.channel-mini-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.video-loading {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	color: var(--muted);
	font-size: 14px;
}

.video-loading__spinner {
	width: 18px;
	height: 18px;
	border: 2px solid var(--line);
	border-top-color: var(--lime);
	border-radius: 50%;
	animation: video-loading-spin 800ms linear infinite;
	flex-shrink: 0;
}

@keyframes video-loading-spin {
	to {
		transform: rotate(360deg);
	}
}

.side-item,
.channel-mini,
.channel-id {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.side-item .media {
	width: 72px;
	height: 72px;
	aspect-ratio: 1;
	flex-shrink: 0;
}

button.side-item {
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.side-video__thumb {
	position: relative;
	width: 104px;
	flex-shrink: 0;
}

.side-video__thumb .media {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}

.side-video__thumb .avatar {
	position: absolute;
	left: 6px;
	bottom: 6px;
	z-index: 2;
	width: 22px;
	height: 22px;
	border: 2px solid var(--bg);
	font-size: 8px;
}

.side-item__copy,
.channel-id__copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1;
}

.ad-slot {
	display: grid;
	place-items: center;
	min-height: 96px;
	border: 1px dashed var(--line);
	border-radius: var(--radius-card);
	background: var(--surface-2);
	color: var(--muted);
}

.ad-slot p {
	margin: 0;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ad-slot--tall {
	min-height: 120px;
}

.article-title {
	font-size: 40px;
	margin: 12px 0;
	text-transform: none;
	letter-spacing: -0.03em;
}

.byline-wrap {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.byline,
.byline-canal {
	display: flex;
	align-items: center;
	gap: 12px;
}

.byline-canal .avatar {
	width: 32px;
	height: 32px;
	font-size: 11px;
}

.byline-canal__label {
	color: var(--muted);
	font-size: 13px;
}

.byline__name,
.channel-id__name {
	font-weight: 800;
}

.channel-id__name,
.channel-id__copy .meta {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}

.channel-id--stack {
	flex-direction: column;
	align-items: stretch;
	gap: 14px;
}

.channel-id--stack .channel-id__main {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.channel-id--stack .button {
	align-self: flex-start;
	margin-left: 52px;
}

.channel-head .channel-bio,
.channel-col .channel-bio {
	margin: 16px 0 0;
}

.channel-col .channel-bio {
	margin: 0;
	font-size: 14px;
}

.byline__copy {
	display: flex;
	flex-direction: column;
}

.share-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.share-bar a,
.share-bar button {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 8px;
	color: #fff;
}

.share-bar a:nth-child(1) { background: #1877f2; }
.share-bar a:nth-child(2) { background: #111111; color: #fff; }
.share-bar a:nth-child(3) { background: #25d366; }
.share-bar a:nth-child(4) { background: #2aabee; }
.share-bar button { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }

[data-theme="light"] .share-bar a:nth-child(2) {
	background: #16161a;
}

.copy-status:empty {
	display: none;
}

.copy-status {
	color: var(--lime);
	font-size: 14px;
	font-weight: 800;
}

[data-theme="light"] .copy-status {
	color: #3f6212;
}

.article-media .media {
	aspect-ratio: 16 / 9;
	border-radius: var(--radius-card);
}

.entry-content h2 {
	font-size: 22px;
	margin: 28px 0 8px;
}

.entry-content p {
	margin: 0 0 16px;
}

.avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	flex-shrink: 0;
	background: var(--violet);
	color: #f4f4f5;
	font-size: 13px;
	font-weight: 800;
}

.avatar--green { background: var(--green); color: var(--ink); }
.avatar--blue { background: var(--blue); color: var(--ink); }

.avatar--photo {
	padding: 0;
	overflow: hidden;
	background: var(--surface-2);
}

.avatar--photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.comments-panel {
	display: none;
}

.comment-list {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.comment__body {
	display: flex;
	gap: 10px;
}

.comment__text p {
	margin: 0;
}

.comment-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.comment-form input,
.comment-form textarea,
.post-password-form input[type="password"] {
	width: 100%;
	background: var(--surface-2);
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	padding: 12px;
}

.comment-form textarea {
	min-height: 96px;
	resize: vertical;
}

.comment-form p {
	margin: 0 0 12px;
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 16px;
	border-radius: var(--radius-pill);
	font-weight: 800;
	border: 0;
}

.button--violet {
	background: var(--violet);
	color: #fff;
}

.button--youtube {
	background: var(--youtube);
	color: #fff;
}

.button--youtube.is-on {
	background: var(--surface-2);
	color: var(--text);
	border: 1px solid var(--line);
}

.channel-columns,
.video-grid {
	display: grid;
	gap: var(--gap);
}

.channel-col,
.channel-head {
	border: 1px solid var(--accent, var(--line));
	border-radius: var(--radius-card);
	background: var(--surface);
	padding: 16px;
	min-width: 0;
}

.channel-col {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.channel-videos,
.video-stack {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.video-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

button.video-card {
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.video-dialog {
	width: min(920px, calc(100% - 32px));
	max-height: calc(100% - 32px);
	margin: auto;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: var(--radius-card);
	background: var(--surface);
	color: var(--text);
	overflow: auto;
}

.video-dialog::backdrop {
	background: rgba(0, 0, 0, 0.72);
}

.video-dialog__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.video-dialog__top h2 {
	margin: 0;
	font-size: 18px;
}

.video-dialog__close {
	flex-shrink: 0;
	min-height: 36px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius-pill);
	background: transparent;
	color: var(--text);
	font-weight: 800;
}

.video-dialog__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 8px;
	overflow: hidden;
}

.video-dialog__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.video-dialog__desc {
	margin: 12px 0 0;
	white-space: pre-wrap;
	max-height: 30vh;
	overflow: auto;
}

.play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 48px;
	height: 48px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: var(--youtube);
	z-index: 1;
}

.play::before {
	content: "";
	position: absolute;
	left: 19px;
	top: 15px;
	border-style: solid;
	border-width: 9px 0 9px 14px;
	border-color: transparent transparent transparent #fff;
}

.duration {
	position: absolute;
	right: 8px;
	bottom: 8px;
	z-index: 1;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 2px 6px;
	border-radius: 4px;
}

.channel-top {
	display: grid;
	grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
	gap: var(--gap);
	align-items: stretch;
}

.video-feature .media {
	min-height: 240px;
	aspect-ratio: 16 / 9;
}

.channel-col .channel-id,
.channel-mini {
	flex-wrap: wrap;
}

.channel-col .button,
.channel-col .channel-id--stack .button {
	margin-left: 52px;
}

.channel-mini .button {
	margin-left: auto;
	flex-shrink: 0;
}

.latest-videos {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.social-grid {
	display: grid;
	grid-template-columns: repeat(4, 44px);
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.social-grid a {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--surface);
}

.site-footer {
	border-top: 1px solid var(--line);
	padding: 32px 0 40px;
}

.footer-grid {
	display: grid;
	gap: 24px;
}

.footer-nav ul {
	justify-content: flex-start;
}

.footer-copy {
	color: var(--muted);
	margin: 24px auto 0;
}

.navigation.pagination {
	margin-top: 8px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.nav-links a,
.nav-links span {
	min-width: 44px;
	min-height: 44px;
	display: grid;
	place-items: center;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
}

@media (min-width: 768px) {
	.container {
		width: min(1200px, calc(100% - 48px));
	}

	.card-grid,
	.video-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.footer-grid {
		grid-template-columns: 1.2fr 2fr auto;
		align-items: start;
	}
}

@media (max-width: 1000px) {
	.header-bar .search-form input {
		width: 132px;
	}

	.primary-nav a {
		font-size: 12px;
	}
}

@media (min-width: 1100px) {
	.card-grid {
		padding: 8px;
		margin: -8px;
	}

	.layout {
		grid-template-columns: minmax(0, 1fr) var(--sidebar);
		align-items: start;
	}

	.card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.channel-columns {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.video-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.card {
		position: relative;
	}

	.card::before,
	.card::after {
		content: "";
		position: absolute;
		width: 8px;
		height: 8px;
		z-index: 2;
		pointer-events: none;
	}

	.card::before {
		top: -4px;
		left: -4px;
		background: var(--violet);
		box-shadow: 12px 8px 0 var(--lime);
	}

	.card::after {
		right: -4px;
		bottom: 20px;
		background: var(--lime);
		box-shadow: -10px 10px 0 var(--violet);
	}
}

@media (max-width: 1099px) {
	.channel-columns {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.primary-nav {
		display: none;
	}

	.header-bar {
		flex-wrap: wrap;
		padding: 8px 0;
	}

	.header-bar .search-form {
		display: none;
		flex-basis: 100%;
		order: 5;
	}

	.header-bar .search-form.is-open {
		display: flex;
	}

	.header-bar .search-form.is-open input,
	.search-form--page input {
		width: 100%;
	}

	.search-toggle,
	.menu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.hero-slide,
	.channel-top,
	.card-grid,
	.video-grid {
		grid-template-columns: 1fr;
	}

	.hero-main .media {
		min-height: 280px;
	}

	.page-title,
	.page-intro h1,
	.article-title,
	.hero-title {
		font-size: 28px;
	}

	.channel-id,
	.channel-mini {
		flex-wrap: wrap;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.theme-toggle__thumb {
		transition: none;
	}

	.hero-main .media img,
	.hero-side .media img {
		transition: none;
	}

	.video-loading__spinner {
		animation: none;
	}

	.card::before,
	.card::after {
		display: none !important;
	}
}
