/**
 * Imperial Hip Hop Videos category archives.
 * Scoped beneath .ihh-category-redesign to avoid homepage/single regressions.
 */

.ihh-category-redesign {
	--ihh-category-bg: #08090a;
	--ihh-category-panel: #111315;
	--ihh-category-panel-soft: #151719;
	--ihh-category-line: #2b2e31;
	--ihh-category-text: #f3f1eb;
	--ihh-category-muted: #aeb3b7;
	--ihh-category-gold: #f4b51f;
	background: var(--ihh-category-bg);
	color: var(--ihh-category-text);
	font-family: Inter, "Work Sans", Arial, sans-serif;
	overflow: clip;
}

.ihh-category-redesign *,
.ihh-category-redesign *::before,
.ihh-category-redesign *::after {
	box-sizing: border-box;
}

.ihh-category-redesign a {
	color: inherit;
	text-decoration: none;
}

.ihh-category-redesign img {
	display: block;
	max-width: 100%;
}

.ihh-category-shell {
	width: min(1180px, calc(100% - 48px));
	margin-inline: auto;
}

.ihh-category-tabs {
	border-bottom: 1px solid var(--ihh-category-line);
	background: #0c0d0e;
}

.ihh-category-tabs__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 34px;
	min-height: 56px;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	scrollbar-width: thin;
}

.ihh-category-tabs a {
	position: relative;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	min-height: 56px;
	color: #e4e5e5;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .055em;
	text-transform: uppercase;
}

.ihh-category-tabs a::after {
	position: absolute;
	content: "";
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: transparent;
}

.ihh-category-tabs a:hover,
.ihh-category-tabs a:focus-visible,
.ihh-category-tabs a[aria-current="page"] {
	color: var(--ihh-category-gold);
}

.ihh-category-tabs a[aria-current="page"]::after {
	background: var(--ihh-category-gold);
}

.ihh-category-hero {
	border-bottom: 1px solid var(--ihh-category-line);
	background:
		radial-gradient(circle at 78% 20%, rgba(244, 181, 31, .09), transparent 28%),
		linear-gradient(110deg, #121416, #0b0c0d);
}

.ihh-category-hero__inner {
	position: relative;
	display: flex;
	min-height: 270px;
	flex-direction: column;
	justify-content: center;
	padding-block: 48px;
}

.ihh-category-hero__inner::after {
	position: absolute;
	right: 40px;
	width: 190px;
	height: 190px;
	border: 1px solid rgba(244, 181, 31, .11);
	border-radius: 50%;
	box-shadow: 0 0 0 34px rgba(244, 181, 31, .025), 0 0 0 68px rgba(244, 181, 31, .012);
	content: "";
}

.ihh-category-hero__inner > * {
	position: relative;
	z-index: 1;
}

.ihh-category-eyebrow {
	display: block;
	margin: 0 0 8px;
	color: var(--ihh-category-gold);
	font-family: "IBM Plex Mono", "JetBrains Mono", monospace;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.ihh-category-hero h1,
.ihh-category-feature h2,
.ihh-category-archive-heading h2,
.ihh-category-trending h2 {
	margin: 0;
	font-family: Anton, Impact, "Arial Narrow", sans-serif;
	font-weight: 400;
	letter-spacing: -.02em;
	line-height: .96;
	text-transform: uppercase;
}

.ihh-category-hero h1 {
	max-width: 780px;
	font-size: clamp(52px, 6vw, 84px);
}

.ihh-category-hero__rule {
	width: 54px;
	height: 4px;
	margin: 22px 0 18px;
	background: var(--ihh-category-gold);
}

.ihh-category-hero__description {
	max-width: 680px;
	color: var(--ihh-category-muted);
	font-size: 16px;
	line-height: 1.65;
}

.ihh-category-hero__description > :first-child {
	margin-top: 0;
}

.ihh-category-hero__description > :last-child {
	margin-bottom: 0;
}

.ihh-category-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 32px;
	padding-block: 54px 76px;
}

.ihh-category-main {
	min-width: 0;
}

.ihh-category-feature {
	display: grid;
	grid-template-columns: minmax(0, 1.22fr) minmax(330px, 1fr);
	margin-bottom: 48px;
	overflow: hidden;
	border: 1px solid var(--ihh-category-line);
	background: var(--ihh-category-panel);
}

.ihh-category-feature__media,
.ihh-category-card__media,
.ihh-category-trending__media {
	position: relative;
	display: block;
	overflow: hidden;
	background: #181a1c;
}

.ihh-category-feature__media {
	aspect-ratio: 16 / 10;
}

.ihh-category-feature__image,
.ihh-category-card__image,
.ihh-category-trending__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .25s ease;
}

.ihh-category-feature:hover .ihh-category-feature__image,
.ihh-category-card:hover .ihh-category-card__image,
.ihh-category-trending li:hover .ihh-category-trending__image {
	transform: scale(1.025);
}

.ihh-category-feature__content {
	display: flex;
	min-width: 0;
	flex-direction: column;
	justify-content: center;
	padding: 28px 30px;
}

.ihh-category-feature h2 {
	font-size: clamp(30px, 2.6vw, 40px);
}

.ihh-category-feature h2 a:hover,
.ihh-category-card h3 a:hover,
.ihh-category-trending h3 a:hover {
	color: var(--ihh-category-gold);
}

.ihh-category-feature__excerpt {
	margin: 17px 0 15px;
	color: #c1c5c8;
	font-size: 14px;
	line-height: 1.58;
}

.ihh-category-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 13px;
	color: #a7acb0;
	font-family: "IBM Plex Mono", "JetBrains Mono", monospace;
	font-size: 11px;
	line-height: 1.45;
}

.ihh-category-meta span::before {
	margin-right: 13px;
	color: var(--ihh-category-gold);
	content: "•";
}

.ihh-category-button {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 20px;
	margin-top: 23px;
	padding: 13px 17px;
	background: var(--ihh-category-gold);
	color: #101112 !important;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ihh-category-button:hover,
.ihh-category-button:focus-visible {
	background: #ffd05a;
}

.ihh-category-play {
	position: absolute;
	z-index: 2;
	left: 13px;
	bottom: 13px;
	display: grid;
	width: 36px;
	height: 36px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, .72);
	border-radius: 50%;
	background: rgba(5, 6, 7, .76);
}

.ihh-category-play > span {
	width: 0;
	height: 0;
	margin-left: 2px;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	border-left: 8px solid #fff;
}

.ihh-category-play--small {
	left: 6px;
	bottom: 6px;
	width: 22px;
	height: 22px;
}

.ihh-category-play--small > span {
	border-top-width: 3px;
	border-bottom-width: 3px;
	border-left-width: 5px;
}

.ihh-category-duration {
	position: absolute;
	z-index: 2;
	right: 8px;
	bottom: 8px;
	padding: 4px 6px;
	background: rgba(0, 0, 0, .88);
	color: #fff;
	font-family: "IBM Plex Mono", "JetBrains Mono", monospace;
	font-size: 10px;
	font-weight: 700;
}

.ihh-category-archive-heading {
	margin-bottom: 22px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--ihh-category-line);
}

.ihh-category-archive-heading h2 {
	font-size: 34px;
}

.ihh-category-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 30px 22px;
}

.ihh-category-card {
	min-width: 0;
}

.ihh-category-card__media {
	aspect-ratio: 16 / 9;
	margin-bottom: 13px;
}

.ihh-category-card__label {
	display: inline-block;
	margin-bottom: 7px;
	color: var(--ihh-category-gold) !important;
	font-family: "IBM Plex Mono", "JetBrains Mono", monospace;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ihh-category-card h3 {
	margin: 0 0 11px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.28;
}

.ihh-category-card h3 a {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.ihh-category-empty {
	margin: 0;
	padding: 24px;
	border: 1px solid var(--ihh-category-line);
	background: var(--ihh-category-panel);
	color: var(--ihh-category-muted);
}

.ihh-category-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 40px;
}

.ihh-category-pagination .page-numbers {
	display: inline-flex;
	min-width: 42px;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	padding-inline: 13px;
	border: 1px solid #35393c;
	background: #101214;
	color: #e6e7e7;
	font-size: 12px;
	font-weight: 800;
}

.ihh-category-pagination .page-numbers:hover,
.ihh-category-pagination .page-numbers:focus-visible,
.ihh-category-pagination .page-numbers.current {
	border-color: var(--ihh-category-gold);
	background: var(--ihh-category-gold);
	color: #101112;
}

.ihh-category-rail {
	min-width: 0;
}

.ihh-category-trending {
	position: sticky;
	top: 106px;
	border: 1px solid var(--ihh-category-line);
	background: var(--ihh-category-panel);
}

.ihh-category-trending__header {
	padding: 22px 22px 18px;
	border-bottom: 1px solid var(--ihh-category-line);
	background: linear-gradient(135deg, #17191b, #111315);
}

.ihh-category-trending h2 {
	font-size: 36px;
}

.ihh-category-trending ol {
	margin: 0;
	padding: 0 18px;
	list-style: none;
}

.ihh-category-trending li {
	display: grid;
	grid-template-columns: 32px 84px minmax(0, 1fr);
	align-items: center;
	gap: 10px;
	min-height: 112px;
	padding-block: 15px;
	border-bottom: 1px solid var(--ihh-category-line);
}

.ihh-category-trending__rank {
	color: var(--ihh-category-gold);
	font-family: Anton, Impact, sans-serif;
	font-size: 25px;
}

.ihh-category-trending__media {
	width: 84px;
	aspect-ratio: 16 / 9;
}

.ihh-category-trending__copy {
	min-width: 0;
}

.ihh-category-trending__copy > span {
	display: block;
	margin-bottom: 5px;
	color: var(--ihh-category-gold);
	font-family: "IBM Plex Mono", "JetBrains Mono", monospace;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.ihh-category-trending h3 {
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.28;
}

.ihh-category-trending h3 a {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.ihh-category-trending .ihh-category-meta {
	font-size: 10px;
}

.ihh-category-redesign :focus-visible {
	outline: 2px solid var(--ihh-category-gold);
	outline-offset: 3px;
}

@media (max-width: 1024px) {
	.ihh-category-shell {
		width: min(920px, calc(100% - 36px));
	}

	.ihh-category-layout {
		grid-template-columns: 1fr;
	}

	.ihh-category-trending {
		position: static;
	}

	.ihh-category-trending ol {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0 24px;
	}
}

@media (max-width: 900px) {
	.ihh-category-feature {
		grid-template-columns: 1fr;
	}

	.ihh-category-feature__media {
		aspect-ratio: 16 / 9;
	}

	.ihh-category-feature__content {
		padding: 26px;
	}

	.ihh-category-feature h2 {
		max-width: 720px;
		font-size: clamp(32px, 5.5vw, 46px);
	}
}

@media (max-width: 700px) {
	.ihh-category-shell {
		width: min(100% - 28px, 620px);
	}

	.ihh-category-tabs__inner {
		justify-content: flex-start;
		gap: 24px;
	}

	.ihh-category-tabs a {
		font-size: 11px;
	}

	.ihh-category-hero__inner {
		min-height: 224px;
		padding-block: 34px;
	}

	.ihh-category-hero__inner::after {
		right: -130px;
	}

	.ihh-category-hero h1 {
		font-size: clamp(44px, 14vw, 62px);
	}

	.ihh-category-hero__description {
		font-size: 15px;
	}

	.ihh-category-layout {
		padding-block: 34px 52px;
	}

	.ihh-category-feature {
		margin-bottom: 40px;
	}

	.ihh-category-feature__content {
		padding: 22px;
	}

	.ihh-category-feature h2 {
		font-size: 34px;
	}

	.ihh-category-grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.ihh-category-card {
		display: grid;
		grid-template-columns: 128px minmax(0, 1fr);
		align-items: center;
		gap: 13px;
		padding-block: 16px;
		border-bottom: 1px solid var(--ihh-category-line);
	}

	.ihh-category-card__media {
		margin-bottom: 0;
	}

	.ihh-category-card h3 {
		margin-bottom: 8px;
		font-size: 15px;
	}

	.ihh-category-trending ol {
		display: block;
	}

	.ihh-category-trending li {
		grid-template-columns: 30px 92px minmax(0, 1fr);
	}

	.ihh-category-trending__media {
		width: 92px;
	}
}

@media (max-width: 420px) {
	.ihh-category-meta {
		font-size: 10px;
	}

	.ihh-category-card {
		grid-template-columns: 112px minmax(0, 1fr);
		gap: 12px;
	}

	.ihh-category-trending li {
		grid-template-columns: 27px 82px minmax(0, 1fr);
		gap: 8px;
	}

	.ihh-category-trending__media {
		width: 82px;
	}

	.ihh-category-pagination .prev,
	.ihh-category-pagination .next {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ihh-category-redesign *,
	.ihh-category-redesign *::before,
	.ihh-category-redesign *::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}
