.ast-az-section {
	padding-top: 28px;
	padding-bottom: 44px;
}

.ast-az-shell {
	--ast-az-surface: linear-gradient(180deg, rgba(16, 24, 39, 0.96) 0%, rgba(13, 19, 32, 0.98) 100%);
	--ast-az-panel: linear-gradient(180deg, rgba(26, 34, 50, 0.94) 0%, rgba(20, 28, 43, 0.98) 100%);
	--ast-az-border: rgba(148, 163, 184, 0.18);
	--ast-az-text: #ecf2ff;
	--ast-az-muted: #94a3b8;
	--ast-az-accent: #2ea8ff;
	--ast-az-accent-strong: #ff6b3d;
	--ast-az-skeleton-base: rgba(255, 255, 255, 0.08);
	--ast-az-skeleton-highlight: rgba(255, 255, 255, 0.2);
	--ast-az-skeleton-overlay: rgba(11, 17, 28, 0.4);
}

.ast-az-header {
	margin-bottom: 18px;
}

.ast-az-title {
	margin-bottom: 8px;
}

.ast-az-subtitle {
	margin: 0;
	color: var(--ast-az-muted);
	font-size: 15px;
}

.ast-az-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 22px;
	padding: 16px;
	border-radius: 18px;
	background: var(--ast-az-surface);
	border: 1px solid var(--ast-az-border);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.ast-az-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: rgba(255,255,255,.04);
	border: 1px solid rgba(255,255,255,.06);
	color: var(--ast-az-text);
	font-size: 15px;
	font-weight: 800;
	text-decoration: none;
	transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.ast-az-link:hover,
.ast-az-link:focus-visible {
	transform: translateY(-1px);
	border-color: color-mix(in srgb, var(--ast-az-accent) 70%, transparent);
	color: #ffffff;
	box-shadow: 0 10px 22px rgba(46, 168, 255, 0.15);
}

.ast-az-link.is-active {
	background: linear-gradient(180deg, color-mix(in srgb, var(--ast-az-accent) 82%, #ffffff 18%) 0%, color-mix(in srgb, var(--ast-az-accent-strong) 78%, var(--ast-az-accent) 22%) 100%);
	border-color: transparent;
	color: #ffffff;
	box-shadow: 0 14px 26px rgba(35, 119, 226, 0.22);
}

.ast-az-board {
	padding: 22px;
	border-radius: 22px;
	background: var(--ast-az-panel);
	border: 1px solid var(--ast-az-border);
	box-shadow: 0 20px 46px rgba(0, 0, 0, 0.18);
}

.ast-az-results {
	position: relative;
	min-height: 0;
}

.ast-az-results.is-loading {
	min-height: var(--ast-az-loading-height, auto);
}

.ast-az-results.is-loading .ast-az-board,
.ast-az-results.is-loading .ast-az-pagination {
	opacity: .18;
	filter: blur(1.5px) saturate(.9);
	transition: opacity .18s ease, filter .18s ease;
}

.ast-az-loading-layer {
	position: absolute;
	inset: 0;
	z-index: 3;
	padding: 0;
	pointer-events: none;
}

.ast-az-loading-layer::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 22px;
	background: var(--ast-az-skeleton-overlay);
	backdrop-filter: blur(2px);
}

.ast-az-skeleton-stage {
	position: relative;
	z-index: 1;
}

.ast-az-skeleton-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 178px), 178px));
	justify-content: flex-start;
	gap: 22px;
	padding: 22px;
	border-radius: 22px;
	background: var(--ast-az-panel);
	border: 1px solid var(--ast-az-border);
	box-shadow: 0 20px 46px rgba(0, 0, 0, 0.18);
}

.ast-az-skeleton-card {
	position: relative;
	aspect-ratio: 0.72;
	border-radius: 18px;
	overflow: hidden;
	background:
		radial-gradient(circle at 18% 18%, rgba(255,255,255,.1) 0%, rgba(255,255,255,0) 26%),
		linear-gradient(145deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.02) 46%, rgba(255,255,255,.08) 100%);
	box-shadow: 0 18px 32px rgba(0, 0, 0, 0.18);
}

.ast-az-skeleton-poster {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(255,255,255,.02) 0%, rgba(255,255,255,.02) 44%, rgba(8, 12, 20, .42) 66%, rgba(8, 12, 20, .95) 100%),
		linear-gradient(135deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 30%, rgba(255,255,255,.06) 60%, rgba(255,255,255,0) 100%);
}

.ast-az-skeleton-card::after,
.ast-az-skeleton-poster::after,
.ast-az-skeleton-pill::after,
.ast-az-skeleton-line::after,
.ast-az-skeleton-page::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, transparent 0%, var(--ast-az-skeleton-highlight) 50%, transparent 100%);
	transform: translateX(-100%);
	animation: astAzSkeletonShimmer 1.15s ease-in-out infinite;
}

.ast-az-skeleton-pill,
.ast-az-skeleton-line,
.ast-az-skeleton-page {
	position: relative;
	overflow: hidden;
	background: var(--ast-az-skeleton-base);
}

.ast-az-skeleton-pill {
	position: absolute;
	z-index: 1;
	height: 24px;
	border-radius: 8px;
}

.ast-az-skeleton-pill-episode {
	top: 10px;
	left: 10px;
	width: 74px;
}

.ast-az-skeleton-pill-status {
	top: 12px;
	right: -34px;
	width: 122px;
	border-radius: 0;
	transform: rotate(38deg);
	transform-origin: center;
}

.ast-az-skeleton-title {
	position: absolute;
	right: 14px;
	bottom: 14px;
	left: 14px;
	z-index: 1;
	display: grid;
	gap: 8px;
}

.ast-az-skeleton-line {
	width: 92%;
	height: 13px;
	border-radius: 999px;
}

.ast-az-skeleton-line-long {
	width: 88%;
}

.ast-az-skeleton-line-medium {
	width: 82%;
}

.ast-az-skeleton-line-short {
	width: 76%;
}

.ast-az-skeleton-line-tiny {
	width: 54%;
}

.ast-az-skeleton-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 22px;
}

.ast-az-skeleton-page {
	width: 46px;
	height: 40px;
	border-radius: 12px;
}

.ast-az-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 178px), 178px));
	justify-content: flex-start;
	gap: 22px;
}

.ast-az-card {
	min-width: 0;
}

.ast-az-card-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.ast-az-card-media {
	position: relative;
	aspect-ratio: 0.72;
	border-radius: 18px;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	box-shadow: 0 18px 32px rgba(0, 0, 0, 0.26);
	transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.ast-az-card-media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(8, 12, 20, 0.08) 0%, rgba(8, 12, 20, 0.18) 28%, rgba(8, 12, 20, 0.58) 62%, rgba(8, 12, 20, 0.96) 100%);
}

.ast-az-card-link:hover .ast-az-card-media,
.ast-az-card-link:focus-visible .ast-az-card-media {
	transform: translateY(-2px);
	box-shadow: 0 22px 40px rgba(0, 0, 0, 0.28);
	filter: saturate(1.04);
}

.ast-az-card-badge {
	position: absolute;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 24px;
	padding: 0 8px;
	border-radius: 8px;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
}

.ast-az-card-badge-episode {
	top: 10px;
	left: 10px;
	background: linear-gradient(180deg, #ff8d47 0%, #ff5c22 100%);
	color: #fff;
}

.ast-az-card-badge-status {
	top: 12px;
	right: -34px;
	min-width: 120px;
	padding: 0 28px;
	border-radius: 0;
	transform: rotate(38deg);
	transform-origin: center;
	box-shadow: 0 10px 18px rgba(0, 0, 0, 0.24);
	text-transform: uppercase;
	letter-spacing: .04em;
	font-size: 10px;
}

.ast-az-card-badge-status-completed {
	background: linear-gradient(180deg, #ff6b6b 0%, #e11d48 100%);
	color: #fff5f7;
}

.ast-az-card-badge-status-ongoing {
	background: linear-gradient(180deg, #29b8ff 0%, #1475ff 100%);
	color: #f2fbff;
}

.ast-az-card-badge-status-upcoming {
	background: linear-gradient(180deg, #ffd44e 0%, #ff9d16 100%);
	color: #311900;
}

.ast-az-card-badge-status-hiatus {
	background: linear-gradient(180deg, #9b8cff 0%, #6754e8 100%);
	color: #f6f3ff;
}

.ast-az-card-overlay {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	padding: 54px 14px 14px;
}

.ast-az-card-title {
	margin: 0;
	font-size: 16px;
	line-height: 1.25;
	color: #ffffff;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.42);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: calc(1.25em * 2);
}

.ast-az-card-link:hover .ast-az-card-title,
.ast-az-card-link:focus-visible .ast-az-card-title {
	color: color-mix(in srgb, var(--ast-az-accent) 78%, white 22%);
}

.ast-az-empty {
	margin: 0;
	padding: 18px;
	text-align: center;
	border-radius: 14px;
	background: rgba(255,255,255,.04);
}

.ast-az-pagination {
	justify-content: center;
	margin-top: 22px;
}

.ast-az-pagination .ast-pagination-item > a,
.ast-az-pagination .ast-pagination-item > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	min-height: 40px;
	padding: 8px 14px;
	border-radius: 12px;
	border: 1px solid var(--ast-az-border);
	background: rgba(255,255,255,.04);
	color: var(--ast-az-text);
	font-weight: 700;
	text-decoration: none;
	transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.ast-az-pagination .ast-pagination-item > a:hover,
.ast-az-pagination .ast-pagination-item > a:focus-visible {
	transform: translateY(-1px);
	border-color: color-mix(in srgb, var(--ast-az-accent) 70%, transparent);
	color: #ffffff;
	box-shadow: 0 10px 22px rgba(46, 168, 255, 0.15);
}

.ast-az-pagination .ast-pagination-item > .current {
	background: linear-gradient(180deg, color-mix(in srgb, var(--ast-az-accent) 82%, #ffffff 18%) 0%, color-mix(in srgb, var(--ast-az-accent-strong) 78%, var(--ast-az-accent) 22%) 100%);
	border-color: transparent;
	color: #ffffff;
	box-shadow: 0 14px 26px rgba(35, 119, 226, 0.22);
}

html[data-theme='light'] .ast-az-shell {
	--ast-az-surface: linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%);
	--ast-az-panel: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
	--ast-az-border: rgba(148, 163, 184, 0.2);
	--ast-az-text: #20314d;
	--ast-az-muted: #64748b;
	--ast-az-skeleton-base: rgba(148, 163, 184, 0.16);
	--ast-az-skeleton-highlight: rgba(255, 255, 255, 0.85);
	--ast-az-skeleton-overlay: rgba(246, 249, 253, 0.64);
}

html[data-theme='light'] .ast-az-nav,
html[data-theme='light'] .ast-az-board {
	box-shadow: 0 18px 42px rgba(42, 65, 108, 0.08);
}

html[data-theme='light'] .ast-az-link {
	background: linear-gradient(180deg, #f4f7fb 0%, #edf2f8 100%);
	border-color: #d9e2ef;
	color: #223452;
}

html[data-theme='light'] .ast-az-link:hover,
html[data-theme='light'] .ast-az-link:focus-visible {
	color: #10233d;
	box-shadow: 0 10px 22px rgba(64, 141, 255, 0.12);
}

html[data-theme='light'] .ast-az-link.is-active {
	background: linear-gradient(180deg, #3b8eff 0%, #2478e8 100%);
	color: #ffffff;
	box-shadow: 0 14px 28px rgba(59, 142, 255, 0.22);
}

html[data-theme='light'] .ast-az-pagination .ast-pagination-item > a,
html[data-theme='light'] .ast-az-pagination .ast-pagination-item > span {
	background: linear-gradient(180deg, #f4f7fb 0%, #edf2f8 100%);
	border-color: #d9e2ef;
	color: #223452;
}

html[data-theme='light'] .ast-az-pagination .ast-pagination-item > a:hover,
html[data-theme='light'] .ast-az-pagination .ast-pagination-item > a:focus-visible {
	color: #10233d;
	box-shadow: 0 10px 22px rgba(64, 141, 255, 0.12);
}

html[data-theme='light'] .ast-az-pagination .ast-pagination-item > .current {
	background: linear-gradient(180deg, #3b8eff 0%, #2478e8 100%);
	color: #ffffff;
	box-shadow: 0 14px 28px rgba(59, 142, 255, 0.22);
}

html[data-theme='light'] .ast-az-card-media {
	box-shadow: 0 18px 32px rgba(42, 65, 108, 0.12);
}

html[data-theme='light'] .ast-az-card-media::after {
	background: linear-gradient(180deg, rgba(14, 25, 42, 0.04) 0%, rgba(14, 25, 42, 0.12) 28%, rgba(14, 25, 42, 0.42) 62%, rgba(14, 25, 42, 0.9) 100%);
}

html[data-theme='light'] .ast-az-skeleton-card {
	background:
		radial-gradient(circle at 18% 18%, rgba(255,255,255,.8) 0%, rgba(255,255,255,0) 26%),
		linear-gradient(180deg, rgba(216, 226, 239, 0.6) 0%, rgba(203, 216, 232, 0.78) 100%);
	box-shadow: 0 18px 32px rgba(42, 65, 108, 0.08);
}

html[data-theme='light'] .ast-az-skeleton-poster {
	background:
		linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.04) 44%, rgba(14, 25, 42, .26) 66%, rgba(14, 25, 42, .88) 100%),
		linear-gradient(135deg, rgba(255,255,255,.6) 0%, rgba(255,255,255,0) 30%, rgba(255,255,255,.3) 60%, rgba(255,255,255,0) 100%);
}

@media (max-width: 767px) {
	.ast-az-section {
		padding-top: 18px;
		padding-bottom: 28px;
	}

	.ast-az-nav {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding: 12px;
		border-radius: 16px;
		gap: 12px;
	}

	.ast-az-link {
		flex: 0 0 46px;
		width: 46px;
		height: 46px;
		font-size: 15px;
	}

	.ast-az-board {
		padding: 16px;
		border-radius: 18px;
	}

	.ast-az-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}

	.ast-az-skeleton-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
		padding: 16px;
		border-radius: 18px;
	}

	.ast-az-card-badge-status {
		right: -40px;
		min-width: 126px;
	}

	.ast-az-loading-layer::before {
		border-radius: 18px;
	}
}

@media (max-width: 480px) {
	.ast-az-link {
		flex-basis: 44px;
		width: 44px;
		height: 44px;
		border-radius: 12px;
		font-size: 15px;
	}

	.ast-az-grid {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}

	.ast-az-skeleton-grid {
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}

	.ast-az-card-badge {
		min-height: 22px;
		padding: 0 7px;
		font-size: 10px;
	}

	.ast-az-card-badge-status {
		right: -42px;
		min-width: 122px;
		padding: 0 22px;
	}

	.ast-az-card-title {
		font-size: 14px;
	}

	.ast-az-card-overlay {
		padding: 46px 12px 12px;
	}

	.ast-az-skeleton-pill {
		height: 22px;
	}

	.ast-az-skeleton-pill-status {
		right: -42px;
		width: 122px;
	}

	.ast-az-skeleton-title {
		right: 12px;
		bottom: 12px;
		left: 12px;
	}

	.ast-az-skeleton-line {
		height: 12px;
	}

	.ast-az-skeleton-pagination {
		gap: 8px;
	}

	.ast-az-skeleton-page {
		width: 42px;
		height: 38px;
		border-radius: 11px;
	}
}

@keyframes astAzSkeletonShimmer {
	100% {
		transform: translateX(100%);
	}
}
