/* Списки просмотра (светлый блок) + график серий */

.alist-poster-btn {
	margin-top: 10px;
	width: 100%;
	max-width: 358px;
	box-sizing: border-box;
}

.watchlist_parent {
	position: relative;
	display: block;
	width: 100%;
}

.super__watchlist-select {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	box-sizing: border-box;
	min-height: 40px;
	padding: 9px 14px;
	border-radius: 8px;
	background: #fff;
	border: 1px solid #e2e2e2;
	color: #333;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	user-select: none;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.super__watchlist-select::after {
	content: "";
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid #888;
	flex: 0 0 auto;
}

.super__watchlist-select.watchlist_btn_success {
	background: #fff5f5;
	border-color: #f0b4b8;
	color: #c62828;
}

.super__watchlist-select.watchlist_btn_success::after {
	border-top-color: #c62828;
}

.watchlist_parent .dropdown-content {
	display: none;
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 6px);
	z-index: 50;
	margin: 0;
	padding: 6px 0;
	list-style: none;
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.watchlist_parent .dropdown-content.show_it {
	display: block;
}

.page__add-to-list-option {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: left;
}

.page__add-to-list-option a,
.page__add-to-list-option .watchlist_btn {
	display: block;
	padding: 10px 14px;
	color: #333 !important;
	text-decoration: none !important;
	font-size: 13px;
}

.page__add-to-list-option a:hover {
	background: #f5f5f5;
	color: #111 !important;
}

.page__add-to-list-option.delete-watchlist a {
	color: #d32f2f !important;
}

.page__add-to-list-option.d-none,
.delete-watchlist.d-none {
	display: none !important;
}

/* Светлая статистика как на референсе */
.alist-stats {
	margin: 12px 0 14px;
	padding: 0;
	background: transparent;
	border: 0;
	clear: both;
}

.alist-stats__title {
	margin: 0 0 10px;
	color: #6b6b6b;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
}

.alist-stats__title b,
.alist-stats__title [data-list-total] {
	color: #6b6b6b;
	font-weight: 400;
}

.alist-stats__segments {
	display: flex;
	align-items: stretch;
	gap: 3px;
	height: 12px;
	margin-bottom: 12px;
	width: 100%;
	box-sizing: border-box;
	border-radius: 6px;
	background: transparent;
	overflow: hidden;
}

.alist-stats.is-empty .alist-stats__segments,
.alist-stats.is-loading .alist-stats__segments {
	background: transparent;
}

.alist-stats__seg {
	min-width: 0;
	height: 100%;
	border-radius: 6px;
	flex: 0 0 auto;
	width: 0;
	transition: width .25s ease;
}

.alist-stats__seg.is-empty {
	display: none;
}

.alist-stats__seg[data-list-status="watching"] { background: #5dbb88; }
.alist-stats__seg[data-list-status="planned"] { background: #f9906b; }
.alist-stats__seg[data-list-status="completed"] { background: #afd385; }
.alist-stats__seg[data-list-status="on_hold"] { background: #f9ae45; }
.alist-stats__seg[data-list-status="dropped"] { background: #f7d344; }

.alist-stats__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	align-items: center;
}

.alist-stats__item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #777;
	font-size: 13px;
	line-height: 1.2;
	white-space: nowrap;
}

.alist-stats__item i {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 3px;
	flex: 0 0 auto;
}

.alist-stats__item[data-list-status="watching"] i { background: #5dbb88; }
.alist-stats__item[data-list-status="planned"] i { background: #f9906b; }
.alist-stats__item[data-list-status="completed"] i { background: #afd385; }
.alist-stats__item[data-list-status="on_hold"] i { background: #f9ae45; }
.alist-stats__item[data-list-status="dropped"] i { background: #f7d344; }

.alist-stats__item b {
	color: #222;
	font-weight: 700;
}

/* График серий — светлее */
.asch {
	margin: 14px 0 18px;
	padding: 14px;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
}

.asch__title {
	margin: 0 0 10px;
	color: #222;
	font-size: 16px;
	font-weight: 600;
}

.asch-loading,
.asch-empty {
	color: #888;
	font-size: 13px;
	padding: 8px 0;
}

.asch-broadcast,
.asch-period,
.asch-meta {
	color: #555;
	font-size: 13px;
	margin-bottom: 8px;
}

.asch-chart {
	display: flex;
	align-items: flex-end;
	gap: 4px;
	height: 110px;
	margin: 12px 0 14px;
	padding: 8px 4px 0;
	border-bottom: 1px solid #eee;
	overflow-x: auto;
}

.asch-chart__col {
	flex: 0 0 28px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	height: 100%;
}

.asch-chart__bar {
	width: 14px;
	min-height: 4px;
	background: linear-gradient(180deg, #f9906b, #c83e15);
	border-radius: 3px 3px 0 0;
}

.asch-chart__col span {
	margin-top: 4px;
	font-size: 9px;
	color: #999;
	white-space: nowrap;
}

.asch-table-wrap {
	max-height: 260px;
	overflow: auto;
	border: 1px solid #eee;
	border-radius: 4px;
}

.asch-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.asch-table th,
.asch-table td {
	padding: 8px 10px;
	border-bottom: 1px solid #f0f0f0;
	text-align: left;
	color: #444;
}

.asch-table th {
	position: sticky;
	top: 0;
	background: #f7f7f7;
	color: #222;
	font-weight: 600;
}

.asch-table tr:hover td {
	background: #fafafa;
}

@media (max-width: 640px) {
	.alist-stats__legend {
		gap: 8px 14px;
	}
	.alist-stats__item {
		font-size: 12px;
	}
}
