/**
 * Archive and listing styles for Anime Review Child.
 */

.ar-archive-header {
	padding: 28px;
	background: linear-gradient(135deg, #ffffff, #f5f3ff);
	border: 1px solid var(--ar-border);
	border-radius: calc(var(--ar-radius) + 6px);
	box-shadow: var(--ar-shadow);
}

.ar-archive-header__description {
	max-width: 760px;
	margin: 0;
	font-size: 1rem;
	line-height: 1.7;
}

.ar-archive-filters {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	align-items: end;
	margin: 24px 0;
	padding: 18px;
	background: var(--ar-surface);
	border: 1px solid var(--ar-border);
	border-radius: var(--ar-radius);
	box-shadow: 0 10px 28px rgba(17, 24, 39, 0.05);
}

.ar-archive-filters__field {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.ar-archive-filters label {
	color: var(--ar-muted);
	font-size: 0.82rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.ar-archive-filters select {
	width: 100%;
	min-height: 44px;
	padding: 9px 12px;
	background: #fff;
	border: 1px solid var(--ar-border);
	border-radius: 12px;
	color: var(--ar-text);
	font-size: 0.94rem;
}

.ar-archive-filters select:focus {
	border-color: var(--ar-accent);
	box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.14);
	outline: none;
}

.ar-archive-filters__submit {
	min-height: 44px;
	padding: 10px 18px;
	border: 0;
	background: var(--ar-accent);
	color: #fff;
	cursor: pointer;
}

.ar-archive-grid {
	margin-top: 24px;
}

.ar-pagination {
	margin: 36px 0 12px;
	text-align: center;
}

.ar-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 9px;
}

.ar-pagination .page-numbers {
	min-width: 42px;
	min-height: 42px;
	padding: 8px 12px;
	background: var(--ar-surface);
	border: 1px solid var(--ar-border);
	color: var(--ar-text);
}

.ar-pagination .page-numbers.current,
.ar-pagination .page-numbers:hover {
	background: var(--ar-accent);
	border-color: var(--ar-accent);
	color: #fff;
}

/* Magazine homepage. */
.ar-home-hero {
	margin-block: clamp(24px, 4vw, 42px) clamp(28px, 4vw, 48px);
}

.ar-section__header--home {
	align-items: center;
}

.ar-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
	gap: 18px;
}

.ar-hero-grid__main,
.ar-hero-grid__side {
	min-width: 0;
}

.ar-hero-grid__main .ar-card--hero-main {
	aspect-ratio: 16 / 9;
	min-height: 0;
}

.ar-hero-grid__side {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.ar-hero-grid__side .ar-card--hero-small {
	aspect-ratio: 16 / 9;
	min-height: 0;
}

.ar-home-section {
	position: relative;
}

.ar-editor-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.ar-home-section--picks,
.ar-home-section--donghua {
	padding: 22px;
	background: linear-gradient(135deg, #fff, #f8fafc);
	border: 1px solid var(--ar-border);
	border-radius: calc(var(--ar-radius) + 6px);
	box-shadow: 0 12px 36px rgba(17, 24, 39, 0.06);
}

.ar-home-section--top-rated .ar-grid--top-rated {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ar-home-section--blog .ar-card--post .ar-card__title {
	font-size: 1.05rem;
}

/* Archive magazine redesign. */
.ar-archive--magazine {
	padding-bottom: clamp(28px, 5vw, 64px);
}

.ar-layout--archive-magazine {
	margin-top: clamp(22px, 3vw, 36px);
}

.ar-archive-header--magazine {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 20px;
	align-items: end;
	margin: 0 0 20px;
	padding: clamp(22px, 4vw, 34px);
	background:
		radial-gradient(circle at top right, rgba(124, 58, 237, 0.14), transparent 34%),
		linear-gradient(135deg, #fff, #f8fafc);
	border: 1px solid var(--ar-border);
	border-radius: calc(var(--ar-radius) + 8px);
	box-shadow: 0 18px 48px rgba(17, 24, 39, 0.08);
}

.ar-archive-header__eyebrow,
.ar-archive-filter-panel__eyebrow {
	margin: 0 0 8px;
	color: var(--ar-accent);
	font-size: 0.75rem;
	font-weight: 900;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.ar-archive-header--magazine .ar-archive-header__title {
	margin: 0;
	font-size: clamp(2rem, 4vw, 3.45rem);
	line-height: 1.02;
	letter-spacing: -0.045em;
}

.ar-archive-header--magazine .ar-archive-header__description {
	max-width: 720px;
	margin-top: 14px;
	color: var(--ar-muted);
	font-size: 1.02rem;
	line-height: 1.75;
}

.ar-archive-header__meta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 118px;
	padding: 12px 16px;
	background: #111827;
	border-radius: 999px;
	color: #fff;
	font-size: 0.86rem;
	font-weight: 850;
	white-space: nowrap;
}

.ar-archive-filter-panel {
	margin: 0 0 24px;
	padding: 18px;
	background: rgba(255, 255, 255, 0.86);
	border: 1px solid var(--ar-border);
	border-radius: calc(var(--ar-radius) + 4px);
	box-shadow: 0 12px 34px rgba(17, 24, 39, 0.06);
	backdrop-filter: blur(10px);
}

.ar-archive-filter-panel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}

.ar-archive-filter-panel__title {
	margin: 0;
	font-size: 1.08rem;
	line-height: 1.25;
}

.ar-archive-filter-panel__reset {
	color: var(--ar-muted);
	font-size: 0.86rem;
	font-weight: 800;
	text-decoration: none;
}

.ar-archive-filter-panel__reset:hover {
	color: var(--ar-accent);
}

.ar-archive-filter-panel .ar-archive-filters {
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.ar-archive-results {
	margin-top: 24px;
}

.ar-archive-results__header {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--ar-border);
}

.ar-archive-results__title {
	position: relative;
	margin: 0;
	font-size: clamp(1.28rem, 2vw, 1.8rem);
	line-height: 1.2;
	letter-spacing: -0.025em;
}

.ar-archive-results__title::after {
	content: "";
	display: block;
	width: 42px;
	height: 3px;
	margin-top: 10px;
	border-radius: 999px;
	background: var(--ar-accent);
}

.ar-archive-grid--magazine {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(18px, 2.4vw, 26px);
}

.ar-archive-grid--magazine .ar-card--archive-feature {
	grid-column: 1 / -1;
}

.ar-card--archive-feature {
	display: grid;
	grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
	min-height: 300px;
}

.ar-card--archive-feature .ar-card__media,
.ar-card--archive-feature .ar-post-thumbnail {
	height: 100%;
	aspect-ratio: 16 / 10;
}

.ar-card--archive-feature .ar-card__body {
	justify-content: center;
	min-height: auto;
	padding: clamp(20px, 3vw, 34px);
	gap: 14px;
}

.ar-card--archive-feature .ar-card__title {
	font-size: clamp(1.45rem, 2.8vw, 2.35rem);
	line-height: 1.08;
	letter-spacing: -0.035em;
}

.ar-card--archive-feature .ar-card__excerpt {
	font-size: 1rem;
	line-height: 1.72;
}

.ar-card--archive-card .ar-card__body {
	min-height: 210px;
}

.ar-card--archive-card .ar-card__title {
	font-size: 1.08rem;
}

.ar-card--archive-card .ar-card__button {
	display: none;
}

.ar-card--archive-card .ar-card__text-link {
	margin-top: auto;
}

.ar-archive--post .ar-archive-grid--magazine,
.ar-search .ar-archive-grid--magazine {
	grid-template-columns: 1fr;
}

.ar-archive--post .ar-card--archive-card,
.ar-search .ar-card--archive-card {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	min-height: 178px;
}

.ar-archive--post .ar-card--archive-card .ar-card__media,
.ar-search .ar-card--archive-card .ar-card__media {
	height: 100%;
	aspect-ratio: auto;
}

.ar-archive--post .ar-card--archive-card .ar-card__body,
.ar-search .ar-card--archive-card .ar-card__body {
	min-height: auto;
	padding: 20px;
}

.ar-empty-state--archive {
	padding: clamp(24px, 5vw, 48px);
}

/* Option-driven archive layout variants. */
.ar-archive-grid--list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
}

.ar-archive-grid--list .ar-card--horizontal,
.ar-archive-grid--list .ar-card--archive-card {
	display: grid;
	grid-template-columns: minmax(170px, 260px) minmax(0, 1fr);
}

.ar-archive-grid--list .ar-card__media,
.ar-archive-grid--list .ar-card .ar-post-thumbnail--ar-card,
.ar-archive-grid--list .ar-post-thumbnail--medium_large {
	height: 100%;
	aspect-ratio: 4 / 3;
}

.ar-archive-grid--grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: var(--ar-gap);
}

.ar-archive-results--list .ar-card__body {
	min-height: auto;
}

/* Final homepage/archive polish. */
.ar-home-hero {
	margin-block: clamp(20px, 3.4vw, 36px) clamp(28px, 4vw, 46px);
}

.ar-hero-grid {
	gap: clamp(14px, 2vw, 20px);
}

.ar-hero-grid__main .ar-card--hero-main {
	min-height: clamp(320px, 34vw, 460px);
}

.ar-hero-grid__side .ar-card--hero-small {
	min-height: clamp(168px, 17vw, 218px);
}

.ar-card--hero-main .ar-card__body,
.ar-card--hero-small .ar-card__body {
	background: linear-gradient(180deg, transparent 0%, rgba(17, 24, 39, 0.18) 34%, rgba(17, 24, 39, 0.82) 100%);
}

.ar-card--hero-main .ar-card__title a,
.ar-card--hero-small .ar-card__title a {
	-webkit-line-clamp: 3;
}

.ar-card--hero-main .ar-card__excerpt {
	max-width: 760px;
	-webkit-line-clamp: 2;
}

.ar-home-section--picks,
.ar-home-section--donghua,
.ar-archive-filter-panel,
.ar-archive-header--magazine {
	box-shadow: 0 12px 34px rgba(17, 24, 39, 0.06);
}

.ar-editor-grid {
	gap: clamp(14px, 1.7vw, 18px);
}

.ar-grid--home,
.ar-home-section--top-rated .ar-grid--top-rated,
.ar-archive-grid--grid {
	gap: clamp(16px, 2vw, 22px);
}

.ar-card--horizontal {
	border-radius: calc(var(--ar-radius) - 2px);
}

.ar-card--horizontal .ar-card__title a {
	-webkit-line-clamp: 2;
}

.ar-card--horizontal .ar-card__excerpt {
	-webkit-line-clamp: 2;
}

.ar-archive-header--magazine .ar-archive-header__title {
	max-width: 880px;
	text-wrap: balance;
}

.ar-archive-header--magazine .ar-archive-header__description {
	font-size: clamp(0.95rem, 1.15vw, 1.04rem);
}

.ar-archive-grid--magazine .ar-card__title a {
	-webkit-line-clamp: 2;
}

.ar-archive-grid--magazine .ar-card__excerpt {
	-webkit-line-clamp: 2;
}

.ar-card--archive-feature .ar-card__title a {
	-webkit-line-clamp: 3;
}

.ar-pagination .page-numbers {
	transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.ar-pagination .page-numbers:hover {
	transform: translateY(-1px);
}

/* Commercial homepage polish v2. */
.ar-home-hero {
	margin-block: clamp(18px, 3vw, 32px) clamp(28px, 4vw, 44px);
}

.ar-hero-grid {
	grid-template-columns: minmax(0, 1.42fr) minmax(300px, 0.9fr);
	gap: 18px;
}

.ar-hero-grid__main .ar-card--hero-main {
	min-height: 0;
	aspect-ratio: 16 / 9;
}

.ar-hero-grid__side .ar-card--hero-small {
	min-height: 0;
	aspect-ratio: 16 / 10;
}

.ar-card--hero-main .ar-card__media::after,
.ar-card--hero-small .ar-card__media::after {
	background:
		linear-gradient(180deg, rgba(15, 23, 42, 0.02) 0%, rgba(15, 23, 42, 0.22) 38%, rgba(15, 23, 42, 0.92) 100%),
		linear-gradient(90deg, rgba(15, 23, 42, 0.32) 0%, rgba(15, 23, 42, 0) 56%);
}

.ar-card--hero-main .ar-card__body,
.ar-card--hero-small .ar-card__body {
	padding: clamp(16px, 2.3vw, 26px);
}

.ar-card--hero-main .ar-card__title {
	font-size: clamp(1.55rem, 2.9vw, 2.35rem);
	line-height: 1.08;
}

.ar-card--hero-main .ar-card__title a {
	-webkit-line-clamp: 3;
}

.ar-card--hero-small .ar-card__title {
	font-size: clamp(0.98rem, 1.15vw, 1.13rem);
}

.ar-card--hero-small .ar-card__title a {
	-webkit-line-clamp: 2;
}

.ar-card--hero-small .ar-card__meta,
.ar-card--hero-small .ar-card__excerpt,
.ar-card--hero-small .ar-card__text-link {
	display: none;
}

.ar-home-section--picks,
.ar-home-section--donghua {
	padding: clamp(18px, 2.4vw, 24px);
	background: var(--ar-surface);
	border: 1px solid var(--ar-border);
	box-shadow: var(--ar-shadow-soft);
}

.ar-editor-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.ar-home-section--picks .ar-card--horizontal {
	background: var(--ar-surface);
	border-color: color-mix(in srgb, var(--ar-border) 88%, transparent);
}

.ar-home-section--blog .ar-grid--posts {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ar-home-section--blog .ar-card--post .ar-card__media,
.ar-home-section--blog .ar-card--post .ar-post-thumbnail--ar-card {
	aspect-ratio: 16 / 9;
}

.ar-home-section--latest .ar-grid--anime {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.ar-home-section--top-rated .ar-grid--top-rated {
	grid-template-columns: 1fr;
	gap: 14px;
}

.ar-home-section--top-rated .ar-card--compact {
	max-width: none;
}

.ar-home-section--top-rated .ar-card--compact .ar-card__media,
.ar-home-section--top-rated .ar-card--compact .ar-post-thumbnail--ar-card {
	aspect-ratio: 1 / 1;
}

.ar-home-section--top-rated .ar-card--compact .ar-card__topline {
	min-height: 0;
}

/* Final homepage/archive ratio overrides. */
.ar-hero-grid__main .ar-card--hero-main,
.ar-hero-grid__side .ar-card--hero-small {
	aspect-ratio: 16 / 9;
	min-height: 0;
}

body.ar-card-style-portrait .ar-hero-grid__side .ar-card--hero-small {
	aspect-ratio: 4 / 5;
}

body.ar-card-style-landscape .ar-hero-grid__main .ar-card--hero-main,
body.ar-card-style-landscape .ar-hero-grid__side .ar-card--hero-small,
body.ar-card-style-landscape .ar-home-section--blog .ar-card--post .ar-card__media,
body.ar-card-style-landscape .ar-home-section--blog .ar-card--post .ar-post-thumbnail--ar-card,
body.ar-card-style-landscape .ar-home-section--blog .ar-card--post .ar-post-thumbnail--ar-card-landscape,
body.ar-card-style-landscape .ar-home-section--blog .ar-card--post .ar-post-thumbnail--ar-card-portrait {
	aspect-ratio: 16 / 9;
	min-height: 0;
}

body.ar-card-style-portrait .ar-home-section--blog .ar-card--post .ar-card__media,
body.ar-card-style-portrait .ar-home-section--blog .ar-card--post .ar-post-thumbnail--ar-card,
body.ar-card-style-portrait .ar-home-section--blog .ar-card--post .ar-post-thumbnail--ar-card-landscape,
body.ar-card-style-portrait .ar-home-section--blog .ar-card--post .ar-post-thumbnail--ar-card-portrait {
	aspect-ratio: 2 / 3;
}

body.ar-card-style-landscape .ar-home-section--picks .ar-card--horizontal .ar-card__media,
body.ar-card-style-landscape .ar-home-section--picks .ar-card--horizontal .ar-post-thumbnail,
body.ar-card-style-landscape .ar-home-section--donghua .ar-card--horizontal .ar-card__media,
body.ar-card-style-landscape .ar-home-section--donghua .ar-card--horizontal .ar-post-thumbnail {
	aspect-ratio: 16 / 9;
}

body.ar-card-style-portrait .ar-home-section--picks .ar-card--horizontal .ar-card__media,
body.ar-card-style-portrait .ar-home-section--picks .ar-card--horizontal .ar-post-thumbnail,
body.ar-card-style-portrait .ar-home-section--donghua .ar-card--horizontal .ar-card__media,
body.ar-card-style-portrait .ar-home-section--donghua .ar-card--horizontal .ar-post-thumbnail {
	aspect-ratio: 4 / 5;
}

/* Final homepage hero ratio guard. Keep after older homepage sizing rules. */
body.ar-card-style-landscape .ar-hero-grid__main .ar-card--hero-main,
body.ar-card-style-landscape .ar-hero-grid__side .ar-card--hero-small {
	aspect-ratio: 16 / 9;
	min-height: 0;
}

body.ar-card-style-portrait .ar-hero-grid__main .ar-card--hero-main {
	aspect-ratio: 16 / 9;
	min-height: 0;
}

body.ar-card-style-portrait .ar-hero-grid__side .ar-card--hero-small {
	aspect-ratio: 4 / 5;
	min-height: 0;
}


/* Final commercial homepage layout polish. */
.ar-hero-grid__main .ar-card--hero-main,
.ar-hero-grid__side .ar-card--hero-small,
.ar-hero-grid__main .ar-card--hero-main .ar-card__media,
.ar-hero-grid__side .ar-card--hero-small .ar-card__media,
.ar-hero-grid__main .ar-card--hero-main .ar-post-thumbnail,
.ar-hero-grid__side .ar-card--hero-small .ar-post-thumbnail {
	aspect-ratio: 16 / 9;
	min-height: 0;
}

.ar-editor-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.ar-home-section--picks .ar-card--horizontal,
.ar-home-section--donghua .ar-card--horizontal {
	grid-template-columns: 140px minmax(0, 1fr);
	min-height: 116px;
}

.ar-home-section--picks .ar-card--horizontal .ar-card__media,
.ar-home-section--picks .ar-card--horizontal .ar-post-thumbnail,
.ar-home-section--donghua .ar-card--horizontal .ar-card__media,
.ar-home-section--donghua .ar-card--horizontal .ar-post-thumbnail {
	aspect-ratio: 16 / 10;
	height: 100%;
}

.ar-home-section--blog .ar-card--post .ar-card__media,
.ar-home-section--blog .ar-card--post .ar-post-thumbnail {
	aspect-ratio: 16 / 9;
}

.ar-home-section--top-rated:not(.ar-home-section--top-rated-compact) .ar-grid--top-rated {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.ar-home-section--top-rated-compact .ar-top-rated-strip {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

/* Final header-safe Featured News layout guard. */
.ar-home-hero,
.ar-hero-grid,
.ar-hero-grid__main,
.ar-hero-grid__side {
	box-sizing: border-box;
	max-width: 100%;
}

.ar-hero-grid {
	grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.95fr);
	gap: 16px;
	overflow: visible;
}

.ar-hero-grid__main,
.ar-hero-grid__side {
	min-width: 0;
}

.ar-hero-grid__side {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ar-hero-grid__main .ar-card--hero-main,
.ar-hero-grid__side .ar-card--hero-small,
.ar-hero-grid__main .ar-card--hero-main .ar-card__media,
.ar-hero-grid__side .ar-card--hero-small .ar-card__media,
.ar-hero-grid__main .ar-card--hero-main .ar-post-thumbnail,
.ar-hero-grid__side .ar-card--hero-small .ar-post-thumbnail {
	aspect-ratio: 16 / 9;
	min-height: 0;
	max-width: 100%;
}

.ar-card--hero-main .ar-card__body {
	padding: clamp(18px, 2.2vw, 28px);
}

.ar-card--hero-small .ar-card__body {
	padding: 16px;
}

/* Landscape-only homepage row card fix: keep image left and text right without overlap. */
body.ar-card-style-landscape .ar-home-section--picks .ar-card--horizontal,
body.ar-card-style-landscape .ar-home-section--donghua .ar-card--horizontal {
	display: grid;
	grid-template-columns: minmax(180px, 34%) minmax(0, 1fr);
	align-items: stretch;
	min-height: 132px;
	overflow: hidden;
}

body.ar-card-style-landscape .ar-home-section--picks .ar-card--horizontal .ar-card__media,
body.ar-card-style-landscape .ar-home-section--picks .ar-card--horizontal .ar-post-thumbnail,
body.ar-card-style-landscape .ar-home-section--donghua .ar-card--horizontal .ar-card__media,
body.ar-card-style-landscape .ar-home-section--donghua .ar-card--horizontal .ar-post-thumbnail {
	grid-column: 1;
	width: 100%;
	max-width: 100%;
	height: 100%;
	min-width: 0;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

body.ar-card-style-landscape .ar-home-section--picks .ar-card--horizontal .ar-post-thumbnail__image,
body.ar-card-style-landscape .ar-home-section--donghua .ar-card--horizontal .ar-post-thumbnail__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

body.ar-card-style-landscape .ar-home-section--picks .ar-card--horizontal .ar-card__body,
body.ar-card-style-landscape .ar-home-section--donghua .ar-card--horizontal .ar-card__body {
	grid-column: 2;
	min-width: 0;
	min-height: 0;
	position: static;
	z-index: auto;
	padding: 16px 18px;
	background: transparent;
}

body.ar-card-style-landscape .ar-home-section--picks .ar-card--horizontal .ar-card__title,
body.ar-card-style-landscape .ar-home-section--donghua .ar-card--horizontal .ar-card__title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

body.ar-card-style-landscape .ar-home-section--picks .ar-card--horizontal .ar-card__excerpt,
body.ar-card-style-landscape .ar-home-section--donghua .ar-card--horizontal .ar-card__excerpt {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

body.ar-card-style-landscape .ar-home-section--top-rated-compact .ar-card--compact {
	display: grid;
	grid-template-columns: minmax(170px, 24%) minmax(0, 1fr);
	align-items: stretch;
	min-height: 150px;
	overflow: hidden;
}

body.ar-card-style-landscape .ar-home-section--top-rated-compact .ar-card--compact .ar-card__media,
body.ar-card-style-landscape .ar-home-section--top-rated-compact .ar-card--compact .ar-post-thumbnail {
	grid-column: 1;
	width: 100%;
	max-width: 100%;
	height: 100%;
	min-width: 0;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

body.ar-card-style-landscape .ar-home-section--top-rated-compact .ar-card--compact .ar-post-thumbnail__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

body.ar-card-style-landscape .ar-home-section--top-rated-compact .ar-card--compact .ar-card__body {
	grid-column: 2;
	min-width: 0;
	min-height: 0;
	position: static;
	z-index: auto;
	padding: 16px 18px;
	background: transparent;
}

/* Front-page top alignment: keep the first content section flush with the sidebar. */
.ar-layout--front > .ar-layout__primary > .ar-section:first-child,
.ar-layout--front > .ar-layout__primary > .ar-home-section:first-child {
	margin-top: 0;
}

/* News page magazine template. */
.ar-news-page {
	padding-block: clamp(22px, 3vw, 42px) clamp(42px, 5vw, 72px);
}

.ar-news-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: clamp(18px, 3vw, 34px);
	align-items: end;
	margin-bottom: clamp(24px, 4vw, 40px);
	padding: clamp(24px, 4vw, 40px);
	background:
		radial-gradient(circle at top right, rgba(239, 68, 68, 0.12), transparent 34%),
		linear-gradient(135deg, var(--ar-surface), rgba(255, 255, 255, 0.82));
	border: 1px solid var(--ar-border);
	border-radius: calc(var(--ar-radius) + 10px);
	box-shadow: var(--ar-shadow-soft, 0 14px 34px rgba(15, 23, 42, 0.08));
}

html.ar-theme-dark .ar-news-hero {
	background:
		radial-gradient(circle at top right, rgba(249, 115, 22, 0.16), transparent 34%),
		linear-gradient(135deg, var(--ar-surface), rgba(23, 26, 35, 0.9));
}

.ar-news-hero__eyebrow {
	margin: 0 0 10px;
	color: var(--ar-accent);
	font-size: 0.76rem;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.ar-news-hero__title {
	margin: 0;
	font-size: clamp(2.25rem, 5vw, 4.15rem);
	line-height: 0.95;
	letter-spacing: -0.06em;
}

.ar-news-hero__description {
	max-width: 720px;
	margin: 14px 0 0;
	color: var(--ar-muted);
	font-size: clamp(0.98rem, 1.6vw, 1.12rem);
	line-height: 1.75;
}

.ar-news-hero__meta {
	display: inline-grid;
	place-items: center;
	min-width: 132px;
	padding: 16px 18px;
	background: var(--ar-text);
	border-radius: 999px;
	color: var(--ar-surface);
	font-size: 0.8rem;
	font-weight: 900;
	line-height: 1.15;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	white-space: nowrap;
}

.ar-news-hero__count {
	font-size: 1.35rem;
	letter-spacing: -0.02em;
}

.ar-news-intro {
	margin: 0 0 clamp(22px, 4vw, 38px);
	padding: 22px 26px;
	background: var(--ar-surface);
	border: 1px solid var(--ar-border);
	border-radius: var(--ar-radius);
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.ar-layout--news {
	align-items: start;
	grid-template-columns: minmax(0, 1fr) minmax(292px, 320px);
	gap: clamp(24px, 3vw, 36px);
}

.ar-news-page__primary,
.ar-news-page__sidebar {
	min-width: 0;
}

.ar-news-listing {
	margin-top: 0;
}

.ar-news-listing__header {
	margin-bottom: 22px;
}

.ar-news-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(18px, 2vw, 24px);
}

.ar-news-grid .ar-card--news-featured {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
	align-items: stretch;
	overflow: hidden;
	background: var(--ar-surface);
	border: 1px solid var(--ar-border);
	border-radius: calc(var(--ar-radius) + 8px);
	box-shadow: var(--ar-shadow-soft, 0 14px 34px rgba(15, 23, 42, 0.08));
}

.ar-news-grid .ar-card--news-featured .ar-card__media {
	min-height: 320px;
	aspect-ratio: 16 / 9;
}

.ar-news-grid .ar-card--news-featured .ar-card__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(24px, 3vw, 36px);
}

.ar-news-grid .ar-card--news-featured .ar-card__title {
	font-size: clamp(1.65rem, 3vw, 2.65rem);
	line-height: 1.04;
	letter-spacing: -0.045em;
}

.ar-news-grid .ar-card--news-featured .ar-card__excerpt {
	font-size: 1rem;
	line-height: 1.75;
	-webkit-line-clamp: 3;
}

.ar-news-grid .ar-card--news-card {
	min-height: 100%;
}

.ar-news-grid .ar-card--news-card .ar-card__media {
	aspect-ratio: 16 / 9;
}

.ar-news-grid .ar-card--news-card .ar-card__title {
	font-size: 1.08rem;
	line-height: 1.35;
}

.ar-news-grid .ar-card--news-card .ar-card__excerpt {
	-webkit-line-clamp: 2;
}

.ar-news-pagination .page-numbers {
	border-radius: 999px;
}

/* News page refinement: keep the sidebar independent from the Latest News heading. */
.ar-news-page .ar-layout--news {
	align-items: start;
}

.ar-news-page .ar-news-hero {
	display: block;
	margin-bottom: clamp(26px, 4vw, 44px);
	padding: 0 0 clamp(22px, 3vw, 34px);
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--ar-border);
	border-radius: 0;
	box-shadow: none;
}

html.ar-theme-dark .ar-news-page .ar-news-hero {
	background: transparent;
}

.ar-news-page .ar-news-hero__title {
	font-size: clamp(2.15rem, 4.8vw, 4.2rem);
	line-height: 0.98;
	letter-spacing: -0.055em;
}

.ar-news-page .ar-news-hero__description {
	max-width: 760px;
	margin-top: 14px;
	font-size: clamp(0.98rem, 1.3vw, 1.1rem);
	line-height: 1.7;
}

.ar-news-page .ar-news-listing {
	margin-top: 0;
}

.ar-news-page .ar-news-listing__header {
	margin-bottom: 22px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--ar-border);
}

.ar-news-page .ar-news-page__sidebar {
	padding-top: 6px;
}

/* Professional page-number UI for the News template. */
.ar-news-pagination {
	display: flex;
	justify-content: center;
	margin: clamp(34px, 5vw, 56px) 0 0;
}

.ar-news-pagination ul.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: var(--ar-surface);
	border: 1px solid var(--ar-border);
	border-radius: 999px;
	box-shadow: var(--ar-shadow-soft, 0 14px 34px rgba(15, 23, 42, 0.08));
}

.ar-news-pagination ul.page-numbers,
.ar-news-pagination ul.page-numbers:hover {
	min-width: 0;
	min-height: 0;
	color: inherit;
	transform: none;
}

.ar-news-pagination ul.page-numbers > li {
	margin: 0;
	padding: 0;
	line-height: 1;
}

.ar-news-pagination ul.page-numbers > li > .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 14px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--ar-muted);
	font-size: 0.9rem;
	font-weight: 900;
	text-decoration: none;
	transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.ar-news-pagination ul.page-numbers > li > .page-numbers.current,
.ar-news-pagination ul.page-numbers > li > a.page-numbers:hover,
.ar-news-pagination ul.page-numbers > li > a.page-numbers:focus {
	background: var(--ar-accent);
	color: #fff;
	transform: translateY(-1px);
}

.ar-news-pagination ul.page-numbers > li > .prev,
.ar-news-pagination ul.page-numbers > li > .next {
	padding-inline: 18px;
}

/* Final News page header and pagination polish. */
.ar-news-page .ar-news-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: clamp(18px, 3vw, 32px);
	margin: 0 0 clamp(26px, 4vw, 44px);
	padding: clamp(26px, 4vw, 42px) clamp(24px, 4vw, 38px);
	background:
		radial-gradient(circle at top right, rgba(124, 58, 237, 0.18), transparent 36%),
		linear-gradient(135deg, var(--ar-surface), rgba(255, 255, 255, 0.86));
	border: 1px solid var(--ar-border);
	border-bottom: 1px solid var(--ar-border);
	border-radius: calc(var(--ar-radius) + 10px);
	box-shadow: var(--ar-shadow-soft, 0 14px 34px rgba(15, 23, 42, 0.08));
}

html.ar-theme-dark .ar-news-page .ar-news-hero {
	background:
		radial-gradient(circle at top right, rgba(167, 139, 250, 0.18), transparent 36%),
		linear-gradient(135deg, var(--ar-surface), rgba(23, 26, 35, 0.92));
}

.ar-news-page .ar-news-hero__eyebrow {
	display: block;
	margin: 0 0 12px;
	color: var(--ar-accent);
	font-size: 0.78rem;
	font-weight: 900;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.ar-news-page .ar-news-hero__title {
	margin: 0;
	font-size: clamp(2.65rem, 5vw, 4.6rem);
	line-height: 0.94;
	letter-spacing: -0.065em;
}

.ar-news-page .ar-news-hero__meta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 122px;
	min-height: 52px;
	padding: 0 24px;
	border-radius: 999px;
	background: var(--ar-text);
	color: var(--ar-surface);
	font-size: 0.88rem;
	font-weight: 900;
	letter-spacing: 0.02em;
	text-transform: none;
	white-space: nowrap;
}

.ar-news-page .ar-news-listing {
	margin-top: 0;
}

.ar-news-pagination {
	justify-content: flex-start;
	margin-top: clamp(30px, 4vw, 48px);
}

.ar-news-pagination ul.page-numbers {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.ar-news-pagination ul.page-numbers > li > .page-numbers {
	min-width: 42px;
	height: 38px;
	padding: 0 14px;
	border: 1px solid var(--ar-border);
	border-radius: 8px;
	background: var(--ar-surface);
	color: var(--ar-text);
	font-size: 0.94rem;
	font-weight: 800;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.ar-news-pagination ul.page-numbers > li > .page-numbers.current,
.ar-news-pagination ul.page-numbers > li > a.page-numbers:hover,
.ar-news-pagination ul.page-numbers > li > a.page-numbers:focus {
	border-color: #13a8e8;
	background: #13a8e8;
	color: #fff;
	transform: none;
}

.ar-news-pagination ul.page-numbers > li > .prev,
.ar-news-pagination ul.page-numbers > li > .next {
	min-width: auto;
	padding-inline: 16px;
}

.ar-news-pagination ul.page-numbers > li > .dots {
	background: var(--ar-surface);
	color: var(--ar-muted);
}

/* News + Anime archive first-card correction: keep the first item from using the broken horizontal overlap layout. */
@media (min-width: 769px) {
	.ar-news-page .ar-news-grid > .ar-card--news-featured,
	.ar-archive--anime .ar-archive-grid--magazine > .ar-card--archive-feature {
		display: block !important;
		grid-column: 1 / -1;
		max-width: 100%;
		min-height: 0 !important;
		overflow: hidden;
		background: var(--ar-surface);
		border: 1px solid var(--ar-border);
		border-radius: calc(var(--ar-radius) + 8px);
		box-shadow: var(--ar-shadow-soft, 0 14px 34px rgba(15, 23, 42, 0.08));
	}

	.ar-news-page .ar-news-grid > .ar-card--news-featured .ar-card__media,
	.ar-news-page .ar-news-grid > .ar-card--news-featured .ar-post-thumbnail,
	.ar-archive--anime .ar-archive-grid--magazine > .ar-card--archive-feature .ar-card__media,
	.ar-archive--anime .ar-archive-grid--magazine > .ar-card--archive-feature .ar-post-thumbnail {
		display: block;
		width: 100%;
		height: auto !important;
		min-height: 0 !important;
		aspect-ratio: 16 / 9;
		overflow: hidden;
	}

	.ar-news-page .ar-news-grid > .ar-card--news-featured .ar-card__body,
	.ar-archive--anime .ar-archive-grid--magazine > .ar-card--archive-feature .ar-card__body {
		display: flex;
		position: static !important;
		inset: auto !important;
		width: auto;
		min-height: 0 !important;
		padding: clamp(20px, 2.4vw, 30px);
		background: var(--ar-surface);
		color: var(--ar-text);
		gap: 12px;
		justify-content: flex-start;
	}

	.ar-news-page .ar-news-grid > .ar-card--news-featured .ar-card__title,
	.ar-archive--anime .ar-archive-grid--magazine > .ar-card--archive-feature .ar-card__title {
		max-width: 760px;
		font-size: clamp(1.45rem, 2.2vw, 2.1rem);
		line-height: 1.12;
		letter-spacing: -0.035em;
	}

	.ar-news-page .ar-news-grid > .ar-card--news-featured .ar-card__excerpt,
	.ar-archive--anime .ar-archive-grid--magazine > .ar-card--archive-feature .ar-card__excerpt {
		max-width: 780px;
		font-size: 1rem;
		line-height: 1.65;
		-webkit-line-clamp: 2;
	}
}

/* Commercial page templates: Donghua, Top Rated, Genres, and Privacy Policy. */
.ar-special-page {
    padding-block: clamp(34px, 5vw, 74px);
}

.ar-special-page .ar-layout--page {
    align-items: start;
}

.ar-page-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(18px, 3vw, 36px);
    align-items: center;
    padding: clamp(26px, 4vw, 44px);
    border: 1px solid var(--ar-border);
    border-radius: calc(var(--ar-radius) + 8px);
    background:
        radial-gradient(circle at 92% 15%, rgba(167, 139, 250, .22), transparent 34%),
        linear-gradient(135deg, var(--ar-surface), rgba(255,255,255,.88));
    box-shadow: var(--ar-shadow-soft);
    overflow: hidden;
    margin-bottom: clamp(24px, 4vw, 42px);
}

.ar-page-hero__eyebrow,
.ar-section__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--ar-accent);
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.ar-page-hero__title {
    margin: 0;
    color: var(--ar-text);
    font-size: clamp(2.6rem, 5.4vw, 5rem);
    line-height: .92;
    letter-spacing: -.06em;
    text-wrap: balance;
}

.ar-page-hero__description {
    max-width: 680px;
    margin: 16px 0 0;
    color: var(--ar-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.ar-page-hero__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    min-height: 48px;
    padding: 10px 22px;
    border-radius: 999px;
    background: var(--ar-text);
    color: var(--ar-surface);
    font-weight: 900;
    white-space: nowrap;
}

.ar-special-listing__header {
    margin-bottom: 18px;
}

.ar-special-grid > .ar-card--archive-feature {
    display: block !important;
    grid-column: 1 / -1;
    overflow: hidden;
}

.ar-special-grid > .ar-card--archive-feature .ar-card__media {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.ar-special-grid > .ar-card--archive-feature .ar-card__body {
    position: static !important;
    background: var(--ar-surface);
    color: var(--ar-text);
}

.ar-ranking-list {
    display: grid;
    gap: 14px;
}

.ar-ranking-list__item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
}

.ar-ranking-list__rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-top: 14px;
    border-radius: 50%;
    background: var(--ar-accent);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(239, 68, 68, .22);
}

.ar-ranking-list .ar-card--horizontal {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    min-height: 150px;
    border: 1px solid var(--ar-border);
    border-radius: calc(var(--ar-radius) + 2px);
    box-shadow: var(--ar-shadow-soft);
    overflow: hidden;
}

.ar-ranking-list .ar-card--horizontal .ar-card__media {
    height: 100%;
    aspect-ratio: 16 / 10;
}

.ar-genre-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ar-genre-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 76px;
    padding: 18px 20px;
    border: 1px solid var(--ar-border);
    border-radius: calc(var(--ar-radius) + 2px);
    background: var(--ar-surface);
    color: var(--ar-text);
    text-decoration: none;
    box-shadow: var(--ar-shadow-soft);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ar-genre-card:hover,
.ar-genre-card:focus {
    transform: translateY(-2px);
    border-color: rgba(239, 68, 68, .35);
    box-shadow: var(--ar-shadow-hover);
    color: var(--ar-text);
}

.ar-genre-card__name {
    font-weight: 900;
    line-height: 1.3;
}

.ar-genre-card__count {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(239, 68, 68, .09);
    color: var(--ar-accent);
    font-size: .78rem;
    font-weight: 800;
}

.ar-policy-content {
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid var(--ar-border);
    border-radius: calc(var(--ar-radius) + 4px);
    background: var(--ar-surface);
    box-shadow: var(--ar-shadow-soft);
}

.ar-policy-content > *:first-child {
    margin-top: 0;
}

.ar-policy-content h2,
.ar-policy-content h3 {
    margin-top: 1.8em;
    color: var(--ar-text);
    letter-spacing: -.02em;
}

.ar-policy-content p,
.ar-policy-content li {
    color: var(--ar-muted);
    line-height: 1.75;
}

.ar-policy-card .ar-policy-links {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ar-policy-card .ar-policy-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid var(--ar-border);
    color: var(--ar-text);
    font-weight: 800;
    text-decoration: none;
}

.ar-policy-card .ar-policy-links a:hover,
.ar-policy-card .ar-policy-links a:focus {
    color: var(--ar-accent);
}

/* Unified compact archive headers: News, Donghua, Top Rated, and Genres. */
.ar-news-page .ar-news-hero,
.ar-donghua-page .ar-page-hero,
.ar-top-rated-page .ar-page-hero,
.ar-genres-page .ar-page-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: clamp(18px, 3vw, 34px);
	min-height: clamp(150px, 16vw, 172px);
	margin: 0 0 clamp(26px, 4vw, 44px);
	padding: clamp(26px, 3.4vw, 38px) clamp(28px, 4.2vw, 42px);
	border: 1px solid var(--ar-border);
	border-radius: calc(var(--ar-radius) + 10px);
	background:
		radial-gradient(circle at 95% 18%, rgba(167, 139, 250, 0.22), transparent 34%),
		linear-gradient(135deg, var(--ar-surface), rgba(255, 255, 255, 0.9));
	box-shadow: 0 18px 48px rgba(17, 24, 39, 0.06);
	overflow: hidden;
}

html.ar-theme-dark .ar-news-page .ar-news-hero,
html.ar-theme-dark .ar-donghua-page .ar-page-hero,
html.ar-theme-dark .ar-top-rated-page .ar-page-hero,
html.ar-theme-dark .ar-genres-page .ar-page-hero {
	background:
		radial-gradient(circle at 95% 18%, rgba(167, 139, 250, 0.2), transparent 34%),
		linear-gradient(135deg, var(--ar-surface), rgba(23, 26, 35, 0.92));
}

.ar-news-page .ar-news-hero__content,
.ar-donghua-page .ar-page-hero__content,
.ar-top-rated-page .ar-page-hero__content,
.ar-genres-page .ar-page-hero__content {
	min-width: 0;
}

.ar-news-page .ar-news-hero__eyebrow,
.ar-donghua-page .ar-page-hero__eyebrow,
.ar-top-rated-page .ar-page-hero__eyebrow,
.ar-genres-page .ar-page-hero__eyebrow {
	display: block;
	margin: 0 0 10px;
	color: var(--ar-accent);
	font-size: 0.78rem;
	font-weight: 900;
	letter-spacing: 0.14em;
	line-height: 1.2;
	text-transform: uppercase;
}

.ar-news-page .ar-news-hero__title,
.ar-donghua-page .ar-page-hero__title,
.ar-top-rated-page .ar-page-hero__title,
.ar-genres-page .ar-page-hero__title {
	max-width: 820px;
	margin: 0;
	color: var(--ar-text);
	font-size: clamp(3.1rem, 5.6vw, 4.7rem);
	font-weight: 900;
	line-height: 0.92;
	letter-spacing: -0.065em;
	text-wrap: balance;
}

.ar-donghua-page .ar-page-hero__description,
.ar-top-rated-page .ar-page-hero__description,
.ar-genres-page .ar-page-hero__description {
	display: none;
}

.ar-news-page .ar-news-hero__meta,
.ar-donghua-page .ar-page-hero__badge,
.ar-top-rated-page .ar-page-hero__badge,
.ar-genres-page .ar-page-hero__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	justify-self: end;
	min-width: 120px;
	min-height: 50px;
	padding: 0 24px;
	border-radius: 999px;
	background: var(--ar-text);
	color: var(--ar-surface);
	font-size: 0.92rem;
	font-weight: 900;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap;
}

/* Privacy Policy page: keep the no-sidebar content aligned with the site header width. */
.ar-policy-page .ar-layout--no-sidebar .ar-layout__primary {
	width: 100%;
	max-width: none;
	margin-inline: 0;
}

.ar-policy-page .ar-page-hero--policy,
.ar-policy-page .ar-policy-content {
	width: 100%;
}

/* Top Rated page ranking card layout: image/rank/score left, title/text right. */
.ar-top-rated-page .ar-ranking-list {
    gap: 16px;
}

.ar-top-rated-page .ar-ranking-card {
    display: grid;
    grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
    align-items: stretch;
    min-height: 184px;
    overflow: hidden;
    border: 1px solid var(--ar-border);
    border-radius: calc(var(--ar-radius) + 2px);
    background: var(--ar-surface);
    box-shadow: var(--ar-shadow-soft);
}

.ar-top-rated-page .ar-ranking-card a {
    color: inherit;
    text-decoration: none;
}

.ar-top-rated-page .ar-ranking-card__media {
    position: relative;
    display: block;
    min-height: 184px;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg, #111827, #312e81);
}

.ar-top-rated-page .ar-ranking-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(15, 23, 42, .42), rgba(15, 23, 42, 0) 48%, rgba(15, 23, 42, .18));
}

.ar-top-rated-page .ar-ranking-card__media .ar-post-thumbnail,
.ar-top-rated-page .ar-ranking-card__media .ar-post-thumbnail--ar-editor-landscape {
    width: 100%;
    height: 100%;
    min-height: inherit;
    margin: 0;
    aspect-ratio: auto;
}

.ar-top-rated-page .ar-ranking-card__media .ar-post-thumbnail__image,
.ar-top-rated-page .ar-ranking-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ar-top-rated-page .ar-ranking-card__rank,
.ar-top-rated-page .ar-ranking-card__score {
    position: absolute;
    top: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .24);
}

.ar-top-rated-page .ar-ranking-card__rank {
    left: 12px;
    min-width: 48px;
    padding: 0 13px;
    background: var(--ar-accent);
    font-size: .98rem;
}

.ar-top-rated-page .ar-ranking-card__score {
    left: 72px;
    gap: 5px;
    padding: 0 11px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    font-size: .86rem;
}

.ar-top-rated-page .ar-ranking-card__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    padding: clamp(18px, 2.4vw, 28px);
}

.ar-top-rated-page .ar-ranking-card__title {
    margin: 0;
    color: var(--ar-text);
    font-size: clamp(1.08rem, 1.45vw, 1.45rem);
    font-weight: 900;
    line-height: 1.24;
    letter-spacing: -0.02em;
}

.ar-top-rated-page .ar-ranking-card__title a:hover,
.ar-top-rated-page .ar-ranking-card__title a:focus {
    color: var(--ar-accent);
}

.ar-top-rated-page .ar-ranking-card__excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--ar-muted);
    font-size: .96rem;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

html.ar-theme-dark .ar-top-rated-page .ar-ranking-card {
    background: rgba(17, 24, 39, .88);
    border-color: rgba(148, 163, 184, .2);
}

html.ar-theme-dark .ar-top-rated-page .ar-ranking-card__title {
    color: #f8fafc;
}

html.ar-theme-dark .ar-top-rated-page .ar-ranking-card__excerpt {
    color: rgba(226, 232, 240, .76);
}

@media (max-width: 1024px) {
    .ar-top-rated-page .ar-ranking-card {
        grid-template-columns: minmax(200px, 36%) minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .ar-top-rated-page .ar-ranking-card {
        grid-template-columns: minmax(150px, 38%) minmax(0, 1fr);
        min-height: 150px;
    }

    .ar-top-rated-page .ar-ranking-card__media {
        min-height: 150px;
    }

    .ar-top-rated-page .ar-ranking-card__content {
        padding: 16px;
    }

    .ar-top-rated-page .ar-ranking-card__title {
        font-size: 1rem;
    }

    .ar-top-rated-page .ar-ranking-card__excerpt {
        font-size: .88rem;
        line-height: 1.55;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 560px) {
    .ar-top-rated-page .ar-ranking-card {
        grid-template-columns: 1fr;
    }

    .ar-top-rated-page .ar-ranking-card__media {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .ar-top-rated-page .ar-ranking-card__media .ar-post-thumbnail,
    .ar-top-rated-page .ar-ranking-card__media .ar-post-thumbnail--ar-editor-landscape {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }
}
