.an-tabs {
	display: flex;
	gap: 6px;
	padding: 0 28px;
	margin: 4px 0 18px;
	overflow-x: auto;
}

.an-tab {
	flex-shrink: 0;
	padding: 8px 14px;
	font-family: inherit;
	font-size: 0.82rem;
	font-weight: 500;
	color: var(--text-dim);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 99px;
	cursor: pointer;
	transition: all var(--ease);
}

.an-tab:hover {
	color: var(--text);
}

.an-tab.active {
	color: #ffe8f1;
	background: #b23a6b;
	border-color: #b23a6b;
}

.an-shell {
	position: relative;
	height: 100%;
	overflow-y: auto;
	background: var(--bg-deep);
}

.an-back {
	position: absolute;
	top: 16px;
	left: 20px;
	z-index: 5;
	padding: 5px 10px;
	background: rgba(0, 0, 0, 0.4);
	border-radius: 99px;
}

.an-topbar {
	position: relative;
	z-index: 4;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
	justify-content: space-between;
	padding: 16px 28px;
}

.an-topbar .page-title {
	margin: 0;
	font-family: var(--font-script);
	font-size: 1.7rem;
	font-weight: 700;
}

.an-topbar .page-sub {
	display: none;
}

.an-search {
	width: min(320px, 60vw);
}

.an-hero {
	position: relative;
	height: 42vh;
	min-height: 240px;
	margin-top: -8px;
	overflow: hidden;
}

.an-hero-backdrop {
	position: absolute;
	inset: 0;
	background-position: center 20%;
	background-size: cover;
}

.an-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, var(--bg-deep) 4%, transparent 55%), linear-gradient(90deg, rgba(0, 0, 0, 0.7), transparent 60%);
}

.an-hero-info {
	position: absolute;
	left: 28px;
	bottom: 26px;
	z-index: 2;
	max-width: 580px;
}

.an-hero-title {
	font-size: 1.8rem;
	font-weight: 700;
	color: #fff;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.an-hero-overview {
	display: -webkit-box;
	margin-top: 8px;
	overflow: hidden;
	font-size: 0.86rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.85);
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.an-hero-actions {
	margin-top: 14px;
}

.an-hero-btn {
	background: #b23a6b;
}

.an-hero-btn:hover {
	background: #c9497d;
}

.an-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 16px;
	padding: 20px 28px 40px;
}

.an-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 0;
	text-align: left;
	background: none;
	border: none;
	cursor: pointer;
	overflow: hidden;
	border-radius: var(--radius-sm);
}

.an-card-cover {
	width: 100%;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.an-card:hover .an-card-cover {
	border-color: #b23a6b;
	transform: translateY(-4px) scale(1.02);
	box-shadow: 0 8px 24px rgba(178, 58, 107, 0.3);
}

.an-card-meta {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 2px 0;
}

.an-card-title {
	overflow: hidden;
	font-size: 0.82rem;
	font-weight: 500;
	color: var(--text);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.an-card-score {
	font-size: 0.74rem;
	color: #e08bab;
}

.an-empty {
	grid-column: 1 / -1;
	padding: 40px 0;
	font-size: 0.86rem;
	color: var(--text-faint);
	text-align: center;
}

.an-detail-modal {
	max-width: 640px;
}

.an-detail-panel {
	overflow: hidden;
	padding: 0;
}

.an-detail-banner {
	height: 140px;
	background-position: center;
	background-size: cover;
	border-radius: var(--radius) var(--radius) 0 0;
}

.an-detail-head {
	display: flex;
	gap: 16px;
	padding: 18px 20px 0;
}

.an-detail-cover {
	flex-shrink: 0;
	width: 92px;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	margin-top: -46px;
	background: var(--surface-2);
	border: 2px solid var(--surface);
	border-radius: var(--radius-sm);
}

.an-detail-head h3 {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--text);
}

.an-detail-metarow {
	margin-top: 4px;
	font-size: 0.78rem;
	color: var(--text-faint);
}

.an-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-top: 8px;
}

.an-chip {
	padding: 3px 9px;
	font-size: 0.7rem;
	color: #e08bab;
	background: rgba(178, 58, 107, 0.14);
	border-radius: 99px;
}

.an-detail-desc {
	margin: 16px 20px 0;
	font-size: 0.84rem;
	line-height: 1.6;
	color: var(--text-dim);
}

.an-episode-head {
	margin: 18px 20px 0;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--text);
}

.an-episode-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
	gap: 6px;
	padding: 10px 20px 20px;
	max-height: 220px;
	overflow-y: auto;
}

.an-episode-btn {
	padding: 8px 0;
	font-family: inherit;
	font-size: 0.78rem;
	color: var(--text-dim);
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: var(--radius-xs);
	cursor: pointer;
	transition: all var(--ease);
}

.an-episode-btn:hover {
	color: #ffe8f1;
	background: #b23a6b;
	border-color: #b23a6b;
}

.an-player-wrap {
	padding: 0 20px 20px;
}

.an-player {
	width: 100%;
	max-height: 360px;
	background: #000;
	border-radius: var(--radius-sm);
}

