/**
 * ApiShop Drama Importer — episode player styles.
 * Same look as the Video Series Player plugin (dark, vertical player, action rail,
 * episode tiles), ported to the asdi- namespace so both plugins can run side by side.
 * Scoped entirely under .asdi-app so it does not fight the theme.
 *
 * Theme it by overriding the custom properties below, e.g.
 *   .asdi-app { --asdi-accent: #00c2ff; --asdi-accent-2: #7a5cff; }
 */

.asdi-app {
	--asdi-bg: #0c0c11;
	--asdi-panel: rgba(255, 255, 255, 0.035);
	--asdi-panel-2: rgba(255, 255, 255, 0.06);
	--asdi-line: rgba(255, 255, 255, 0.08);
	--asdi-text: #f3f3f7;
	--asdi-muted: #9898aa;
	--asdi-accent: #ff2d55;
	--asdi-accent-2: #ff7a18;
	--asdi-glow: rgba(255, 45, 85, 0.5);
	--asdi-gold: #f6c343;
	--asdi-grad: linear-gradient(135deg, var(--asdi-accent) 0%, var(--asdi-accent-2) 100%);
	--asdi-radius: 18px;
	--asdi-player-h: min(80vh, 760px);
	--asdi-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	position: relative;
	isolation: isolate;
	overflow: hidden;
	overflow: clip;
	container-type: inline-size;
	box-sizing: border-box;
	margin: 0 0 32px;
	padding: 22px;
	border-radius: 24px;
	background: var(--asdi-bg);
	color: var(--asdi-text);
	font-family: var(--asdi-font);
	font-size: 15px;
	line-height: 1.5;
	text-align: left;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Ambient poster glow behind the whole app */
.asdi-app::before {
	content: "";
	position: absolute;
	top: -100px;
	left: -100px;
	right: -100px;
	height: 620px;
	z-index: -1;
	background: var(--asdi-poster, black);
	filter: blur(70px) saturate(150%);
	opacity: 0.42;
	-webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.6) 45%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.6) 45%, transparent 100%);
	pointer-events: none;
}

.asdi-app::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background:
		radial-gradient(800px 380px at 100% -5%, rgba(255, 45, 85, 0.16), transparent 60%),
		radial-gradient(640px 340px at -5% 0%, rgba(255, 122, 24, 0.09), transparent 60%);
	pointer-events: none;
}

.asdi-app *,
.asdi-app *::before,
.asdi-app *::after {
	box-sizing: border-box;
}

.asdi-app img {
	max-width: 100%;
}

.asdi-app button,
.asdi-app a {
	-webkit-tap-highlight-color: transparent;
}

.asdi-app button {
	font-family: inherit;
	cursor: pointer;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	min-height: 0;
	min-width: 0;
}

.asdi-app [hidden] {
	display: none !important;
}

.asdi-app button:focus-visible,
.asdi-app a:focus-visible,
.asdi-app input:focus-visible {
	outline: 2px solid var(--asdi-accent);
	outline-offset: 2px;
}

/* ----------------------------------------------------------------- grid */

.asdi-app .asdi-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 22px;
	align-items: start;
}

.asdi-app .asdi-main {
	position: relative;
	min-width: 0;
}

.asdi-app .asdi-info {
	min-width: 0;
}

/* ---------------------------------------------------------------- stage */

.asdi-app .asdi-stage {
	position: relative;
	width: 100%;
	aspect-ratio: 9 / 16;
	max-height: 82vh;
	max-height: 82svh;
	margin: 0 auto;
	border-radius: var(--asdi-radius);
	overflow: hidden;
	background: #000;
	isolation: isolate;
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.07),
		0 30px 70px -24px rgba(0, 0, 0, 0.85);
}

.asdi-app .asdi-frame {
	position: absolute;
	inset: 0;
	background: #000;
	overflow: hidden;
}

/* Top vignette so the overlay title stays readable */
.asdi-app .asdi-frame::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 22%;
	z-index: 2;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
	pointer-events: none;
}

.asdi-app .asdi-video {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	border: 0;
	object-fit: contain;
	background: #000;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.asdi-app.asdi-playing .asdi-video {
	opacity: 1;
}

.asdi-app .asdi-poster {
	position: absolute;
	inset: 0;
	z-index: 2;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	object-fit: cover;
	transition: opacity 0.3s ease;
}

.asdi-app.asdi-playing .asdi-poster {
	opacity: 0;
	pointer-events: none;
}

/* Overlay: series + episode in the top-left of the video */
.asdi-app .asdi-ov-top {
	position: absolute;
	top: 14px;
	left: 14px;
	right: 14px;
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.asdi-app .asdi-ov-series {
	max-width: 100%;
	overflow: hidden;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.asdi-app .asdi-ov-ep {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--asdi-grad);
	color: #fff;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.02em;
	box-shadow: 0 4px 14px -4px var(--asdi-glow);
}

.asdi-app .asdi-ov-ep:empty {
	display: none;
}

/* Big centre play button */
.asdi-app .asdi-play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 78px;
	height: 78px;
	padding: 0;
	margin: -39px 0 0 -39px;
	border: 0;
	border-radius: 50%;
	background: var(--asdi-grad);
	color: #fff;
	box-shadow: 0 14px 40px -6px var(--asdi-glow);
	transition: transform 0.2s ease;
}

.asdi-app .asdi-play::before {
	content: "";
	position: absolute;
	inset: -9px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	animation: asdi-pulse 2s ease-out infinite;
	pointer-events: none;
}

.asdi-app .asdi-play svg {
	width: 32px;
	height: 32px;
	margin-left: 4px;
	fill: currentColor;
}

.asdi-app .asdi-play:hover {
	transform: scale(1.07);
	background: var(--asdi-grad);
}

.asdi-app.asdi-playing:not(.asdi-paused) .asdi-play,
.asdi-app.asdi-loading .asdi-play {
	display: none;
}

/* Centre play/pause flash */
.asdi-app .asdi-flash {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 4;
	display: grid;
	place-items: center;
	width: 66px;
	height: 66px;
	margin: -33px 0 0 -33px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.5);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: #fff;
	opacity: 0;
	transform: scale(0.8);
	transition: opacity 0.18s ease, transform 0.18s ease;
	pointer-events: none;
}

.asdi-app .asdi-flash.is-on {
	opacity: 1;
	transform: scale(1);
}

.asdi-app .asdi-flash svg {
	width: 26px;
	height: 26px;
	fill: currentColor;
}

.asdi-app .asdi-flash .asdi-f-pause {
	display: none;
}

.asdi-app .asdi-flash.is-playing .asdi-f-play {
	display: none;
}

.asdi-app .asdi-flash.is-playing .asdi-f-pause {
	display: block;
}

/* Spinner */
.asdi-app .asdi-spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 4;
	display: none;
	width: 48px;
	height: 48px;
	margin: -24px 0 0 -24px;
	border: 3px solid rgba(255, 255, 255, 0.15);
	border-top-color: var(--asdi-accent);
	border-right-color: var(--asdi-accent-2);
	border-radius: 50%;
	animation: asdi-spin 0.8s linear infinite;
}

.asdi-app.asdi-loading .asdi-spinner,
.asdi-app.asdi-buffering .asdi-spinner {
	display: block;
}

/* Stalled / failed playback */
.asdi-app .asdi-fallback {
	position: absolute;
	inset: 0;
	z-index: 6;
	display: grid;
	place-content: center;
	justify-items: center;
	gap: 14px;
	padding: 24px;
	background: rgba(6, 6, 10, 0.8);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	color: #fff;
	text-align: center;
}

.asdi-app .asdi-fallback-text {
	max-width: 240px;
	margin: 0;
	color: #fff;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.45;
}

.asdi-app .asdi-fallback-btn {
	padding: 10px 22px;
	border: 0;
	border-radius: 999px;
	background: var(--asdi-grad);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	box-shadow: 0 8px 24px -8px var(--asdi-glow);
}

.asdi-app .asdi-fallback-btn:hover {
	filter: brightness(1.08);
}

@keyframes asdi-spin {
	to { transform: rotate(360deg); }
}

@keyframes asdi-pulse {
	0% { transform: scale(0.92); opacity: 0.9; }
	100% { transform: scale(1.35); opacity: 0; }
}

/* ------------------------------------------------------------- controls */

.asdi-app .asdi-controls {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 5;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px 4px;
	padding: 56px 10px 8px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.5) 55%, transparent 100%);
	transition: opacity 0.3s ease;
}

/* Controls appear once playback has started */
.asdi-app:not(.asdi-playing) .asdi-controls {
	opacity: 0;
	pointer-events: none;
}

.asdi-app .asdi-ctl {
	position: relative;
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	transition: background 0.15s ease;
}

.asdi-app .asdi-ctl:hover {
	background: rgba(255, 255, 255, 0.14);
}

.asdi-app .asdi-ctl svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.asdi-app .asdi-ctl-skip svg {
	width: 26px;
	height: 26px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.asdi-app .asdi-ctl-fwd svg {
	transform: scaleX(-1);
}

.asdi-app .asdi-ctl-skip span {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -46%);
	font-size: 8.5px;
	font-weight: 800;
	line-height: 1;
	pointer-events: none;
}

.asdi-app .asdi-ctl .asdi-i-pause {
	display: none;
}

.asdi-app .asdi-ctl.is-playing .asdi-i-play {
	display: none;
}

.asdi-app .asdi-ctl.is-playing .asdi-i-pause {
	display: block;
}

.asdi-app .asdi-time {
	flex: 0 0 auto;
	margin-left: 2px;
	padding-right: 4px;
	color: rgba(255, 255, 255, 0.9);
	font-size: 12px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

/* Thin progress bar with a filled portion */
.asdi-app .asdi-seek {
	--asdi-seek-h: 5px;
	-webkit-appearance: none;
	appearance: none;
	order: -1;
	flex: 1 1 100%;
	width: 100%;
	min-width: 0;
	height: var(--asdi-seek-h);
	margin: 0 0 8px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.24);
	box-shadow: none;
	overflow: hidden;
	outline: none;
	cursor: pointer;
	transition: height 0.15s ease;
}

.asdi-app .asdi-seek:hover,
.asdi-app .asdi-seek:active,
.asdi-app .asdi-seek:focus-visible {
	--asdi-seek-h: 8px;
}

.asdi-app .asdi-seek::-webkit-slider-runnable-track {
	height: var(--asdi-seek-h);
	background: transparent;
	border: 0;
}

.asdi-app .asdi-seek::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 4px;
	height: var(--asdi-seek-h);
	margin: 0;
	border: 0;
	border-radius: 0;
	background: #fff;
	box-shadow: -2000px 0 0 2000px var(--asdi-accent);
}

.asdi-app .asdi-seek::-moz-range-track {
	height: var(--asdi-seek-h);
	background: transparent;
	border: 0;
}

.asdi-app .asdi-seek::-moz-range-progress {
	height: var(--asdi-seek-h);
	background: var(--asdi-grad);
}

.asdi-app .asdi-seek::-moz-range-thumb {
	width: 4px;
	height: var(--asdi-seek-h);
	border: 0;
	border-radius: 0;
	background: #fff;
}

/* Desktop: fade overlays while playing, bring them back on hover */
@media (hover: hover) {
	.asdi-app.asdi-playing:not(.asdi-paused) .asdi-frame:not(:hover):not(:focus-within) .asdi-controls,
	.asdi-app.asdi-playing:not(.asdi-paused) .asdi-frame:not(:hover):not(:focus-within) .asdi-ov-top {
		opacity: 0;
	}
}

/* ---------------------------------------------------- action rail */

.asdi-app .asdi-rail {
	position: absolute;
	right: 10px;
	bottom: 104px;
	z-index: 8;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}

.asdi-app .asdi-act {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	width: 62px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	box-shadow: none;
}

.asdi-app .asdi-act:hover,
.asdi-app .asdi-act:focus {
	background: none;
	color: #fff;
	text-decoration: none;
}

.asdi-app .asdi-act-ico {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.42);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.asdi-app .asdi-act-ico svg {
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.asdi-app .asdi-act-txt {
	font-size: 13px;
	font-weight: 900;
	letter-spacing: -0.01em;
}

.asdi-app .asdi-act-lbl {
	color: #fff;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
	white-space: nowrap;
}

.asdi-app .asdi-act:hover .asdi-act-ico {
	transform: scale(1.08);
	border-color: transparent;
	background: var(--asdi-grad);
}

.asdi-app .asdi-act-primary .asdi-act-ico {
	border-color: transparent;
	background: var(--asdi-grad);
	box-shadow: 0 8px 22px -8px var(--asdi-glow);
}

.asdi-app .asdi-act-4k .asdi-act-ico {
	border-color: transparent;
	background: linear-gradient(135deg, #ffe28a 0%, var(--asdi-gold) 55%, #e09b12 100%);
	color: #2a1a00;
}

.asdi-app .asdi-act-4k:hover .asdi-act-ico {
	background: linear-gradient(135deg, #fff0b8 0%, #ffd35c 100%);
}

/* ----------------------------------------------------------------- head */

.asdi-app .asdi-head {
	margin: 0 0 6px;
}

.asdi-app .asdi-title {
	margin: 0;
	padding: 0;
	border: 0;
	color: #fff;
	font-family: inherit;
	font-size: 28px;
	font-size: clamp(22px, 5cqi, 32px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
	text-transform: none;
}

.asdi-app .asdi-title::before,
.asdi-app .asdi-title::after {
	display: none;
}

.asdi-app .asdi-title-main {
	display: block;
}

.asdi-app .asdi-title-sep {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.asdi-app .asdi-title-sub {
	display: flex;
	width: fit-content;
	align-items: center;
	gap: 9px;
	margin: 10px 0 14px;
	color: #ffd1da;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0;
}

.asdi-app .asdi-title-sub::before {
	content: "";
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--asdi-grad);
	box-shadow: 0 0 0 4px rgba(255, 45, 85, 0.2);
}

.asdi-app .asdi-title-sub:empty {
	display: none;
}

.asdi-app .asdi-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.asdi-app .asdi-chip {
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	border: 1px solid var(--asdi-line);
	border-radius: 999px;
	background: var(--asdi-panel-2);
	color: #dcdce6;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}

.asdi-app .asdi-chip:empty {
	display: none;
}

.asdi-app .asdi-chip-accent {
	border-color: transparent;
	background: var(--asdi-grad);
	color: #fff;
	font-weight: 800;
	letter-spacing: 0.04em;
}

.asdi-app .asdi-chip-cat {
	border-color: rgba(255, 255, 255, 0.22);
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-weight: 700;
}

.asdi-app .asdi-chip-genre {
	border-color: transparent;
	background: rgba(255, 45, 85, 0.12);
	color: #ffb3c2;
}

.asdi-app .asdi-platforms {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
}

.asdi-app .asdi-platforms-label {
	margin-right: 2px;
	color: var(--asdi-muted);
	font-size: 12px;
	font-weight: 600;
}

.asdi-app .asdi-chip-platform {
	gap: 6px;
	border-color: rgba(246, 195, 67, 0.35);
	background: rgba(246, 195, 67, 0.1);
	color: #ffe29a;
	font-weight: 700;
}

.asdi-app .asdi-chip-platform::before {
	content: "";
	width: 0;
	height: 0;
	border-top: 4px solid transparent;
	border-bottom: 4px solid transparent;
	border-left: 6px solid currentColor;
}

/* --------------------------------------------------------------- panels */

.asdi-app .asdi-panel {
	margin-top: 18px;
	padding: 16px;
	border: 1px solid var(--asdi-line);
	border-radius: 16px;
	background: var(--asdi-panel);
}

.asdi-app .asdi-panel-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 14px;
}

.asdi-app .asdi-panel-title {
	display: flex;
	align-items: center;
	gap: 7px;
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.2;
}

.asdi-app .asdi-panel-title::before {
	content: "";
	flex: 0 0 auto;
	width: 4px;
	height: 16px;
	margin-right: 3px;
	border-radius: 2px;
	background: var(--asdi-grad);
}

.asdi-app .asdi-side-dash {
	color: var(--asdi-muted);
	font-weight: 400;
}

.asdi-app .asdi-pager {
	display: flex;
	gap: 6px;
}

.asdi-app .asdi-pg {
	padding: 7px 12px;
	margin: 0;
	border: 1px solid var(--asdi-line);
	border-radius: 999px;
	background: var(--asdi-panel-2);
	color: #e6e6ee;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.asdi-app .asdi-pg:hover {
	border-color: transparent;
	background: var(--asdi-grad);
	color: #fff;
}

/* --------------------------------------------------------- episode tiles */

.asdi-app .asdi-epgrid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 8px;
}

.asdi-app .asdi-ep {
	position: relative;
	display: grid;
	place-items: center;
	height: 48px;
	padding: 0;
	margin: 0;
	border: 1px solid var(--asdi-line);
	border-radius: 12px;
	background: var(--asdi-panel-2);
	color: #d8d8e4;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.asdi-app .asdi-ep:hover {
	border-color: rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.11);
	color: #fff;
	transform: translateY(-1px);
}

.asdi-app .asdi-ep.is-active {
	border-color: transparent;
	background: var(--asdi-grad);
	color: #fff;
	box-shadow: 0 8px 22px -8px var(--asdi-glow);
}

.asdi-app .asdi-ep.is-empty {
	border-style: dashed;
	opacity: 0.35;
}

/* Little equaliser on the episode that is playing */
.asdi-app.asdi-playing:not(.asdi-paused) .asdi-ep.is-active::after {
	content: "";
	position: absolute;
	top: 6px;
	right: 7px;
	width: 10px;
	height: 9px;
	background:
		linear-gradient(#fff, #fff) 0 100% / 2px 40% no-repeat,
		linear-gradient(#fff, #fff) 4px 100% / 2px 100% no-repeat,
		linear-gradient(#fff, #fff) 8px 100% / 2px 60% no-repeat;
	animation: asdi-eq 0.9s ease-in-out infinite alternate;
}

@keyframes asdi-eq {
	0% { background-size: 2px 40%, 2px 100%, 2px 60%; }
	50% { background-size: 2px 100%, 2px 35%, 2px 90%; }
	100% { background-size: 2px 55%, 2px 75%, 2px 30%; }
}

/* Locked episode tiles */
.asdi-app .asdi-ep.is-locked {
	color: rgba(255, 255, 255, 0.55);
}

.asdi-app .asdi-ep.is-locked::before {
	content: "";
	position: absolute;
	top: 5px;
	right: 6px;
	width: 13px;
	height: 13px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a5 5 0 0 0-5 5v3H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2h-1V7a5 5 0 0 0-5-5zm-3 8V7a3 3 0 0 1 6 0v3H9z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a5 5 0 0 0-5 5v3H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2h-1V7a5 5 0 0 0-5-5zm-3 8V7a3 3 0 0 1 6 0v3H9z'/%3E%3C/svg%3E") center / contain no-repeat;
	color: var(--asdi-gold);
}

.asdi-app .asdi-ep.is-locked.is-active {
	color: #fff;
}

.asdi-app .asdi-ep.is-locked.is-active::before {
	color: #fff;
}

/* Lock screen over the player */
.asdi-app .asdi-lock {
	position: absolute;
	inset: 0;
	z-index: 6;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 28px 24px;
	background:
		radial-gradient(120% 70% at 50% 100%, rgba(255, 45, 85, 0.35), transparent 60%),
		rgba(6, 6, 10, 0.62);
	-webkit-backdrop-filter: blur(14px) saturate(130%);
	backdrop-filter: blur(14px) saturate(130%);
	color: #fff;
	text-align: center;
}

.asdi-app .asdi-lock-ico {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin-bottom: 4px;
	border-radius: 50%;
	background: linear-gradient(135deg, #ffe28a 0%, var(--asdi-gold) 55%, #e09b12 100%);
	color: #2a1a00;
	box-shadow: 0 12px 34px -8px rgba(246, 195, 67, 0.6);
}

.asdi-app .asdi-lock-ico svg,
.asdi-app .asdi-lock-btn svg {
	width: 28px;
	height: 28px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.asdi-app .asdi-lock-title {
	margin: 0;
	color: #fff;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.25;
}

.asdi-app .asdi-lock-text {
	max-width: 260px;
	margin: 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: 13.5px;
	line-height: 1.5;
}

.asdi-app .asdi-lock-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 8px 0 0;
	padding: 13px 24px;
	border: 0;
	border-radius: 999px;
	background: var(--asdi-grad);
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	line-height: 1;
	box-shadow: 0 12px 30px -8px var(--asdi-glow);
	transition: transform 0.18s ease;
}

.asdi-app .asdi-lock-btn svg {
	width: 17px;
	height: 17px;
}

.asdi-app .asdi-lock-btn:hover {
	transform: scale(1.04);
	background: var(--asdi-grad);
	color: #fff;
}

.asdi-app.asdi-locked .asdi-play,
.asdi-app.asdi-locked .asdi-controls {
	display: none;
}

/* -------------------------------------------------------------- seasons */

.asdi-app .asdi-seasons {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.asdi-app .asdi-season {
	border: 1px solid var(--asdi-line);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.025);
	overflow: hidden;
	transition: border-color 0.15s ease;
}

.asdi-app .asdi-season.is-open {
	border-color: rgba(255, 45, 85, 0.45);
}

.asdi-app .asdi-season-btn {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 12px 14px;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--asdi-text);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	text-align: left;
}

.asdi-app .asdi-season-btn:hover {
	background: rgba(255, 255, 255, 0.04);
	color: #fff;
}

.asdi-app .asdi-season-btn .asdi-caret {
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	opacity: 0.7;
	transform: rotate(-45deg);
	transition: transform 0.18s ease;
}

.asdi-app .asdi-season.is-open .asdi-caret {
	transform: rotate(45deg);
}

.asdi-app .asdi-season-count {
	margin-left: auto;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--asdi-panel-2);
	color: var(--asdi-muted);
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
}

.asdi-app .asdi-season-body {
	display: none;
	max-height: 320px;
	padding: 0 8px 8px;
	overflow-y: auto;
}

.asdi-app .asdi-season.is-open .asdi-season-body {
	display: block;
}

.asdi-app .asdi-season-ep {
	display: flex;
	align-items: center;
	border-radius: 8px;
}

.asdi-app .asdi-season-ep button {
	display: block;
	width: 100%;
	padding: 9px 10px;
	margin: 0;
	border: 0;
	border-radius: 8px;
	background: none;
	color: #c9c9d6;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
	text-align: left;
}

.asdi-app .asdi-season-ep button:hover {
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
}

.asdi-app .asdi-season-ep.is-locked button::after {
	content: " \1F512";
	font-size: 11px;
	opacity: 0.8;
}

.asdi-app .asdi-season-ep.is-active button {
	background: rgba(255, 45, 85, 0.14);
	color: #ff8aa0;
	font-weight: 700;
}

/* -------------------------------------------------------------- details */

.asdi-app .asdi-details-title {
	margin: 0;
	padding: 0;
	border: 0;
	color: var(--asdi-muted);
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
}

.asdi-app .asdi-details-title::before,
.asdi-app .asdi-details-title::after {
	display: none;
}

.asdi-app .asdi-desc {
	color: #b8b8c8;
	font-size: 14.5px;
	line-height: 1.7;
}

.asdi-app .asdi-desc p {
	margin: 0 0 12px;
	color: inherit;
}

.asdi-app .asdi-desc p:last-child {
	margin-bottom: 0;
}

.asdi-app .asdi-desc a {
	color: #ff8aa0;
}

.asdi-app .asdi-desc img {
	border-radius: 12px;
}

/* ---------------------------------------------------------------- toast */

.asdi-app .asdi-toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	z-index: 99999;
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: calc(100vw - 32px);
	padding: 12px 20px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 999px;
	background: rgba(20, 20, 28, 0.94);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: #fff;
	font-size: 13.5px;
	font-weight: 600;
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
	transform: translate(-50%, 14px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.asdi-app .asdi-toast::before {
	content: "";
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--asdi-grad);
}

.asdi-app .asdi-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* ---------------------------------------------------------------- misc */

.asdi-app.asdi-error {
	padding: 18px 20px;
	border: 1px dashed rgba(255, 255, 255, 0.18);
	border-radius: 16px;
	color: #c9c9d6;
}

.asdi-preview-body {
	margin: 0;
	padding: 28px 20px;
	background: #07070a;
}

.asdi-preview-shell {
	max-width: 1180px;
	margin: 0 auto;
}

/* ---------------------------------------------------------- unlock sheet */
/* Moved to <body> by the script, so it is not scoped under .asdi-app. */

.asdi-sheet {
	--asdi-accent: #ff2d55;
	--asdi-accent-2: #ff7a18;
	--asdi-grad: linear-gradient(135deg, var(--asdi-accent) 0%, var(--asdi-accent-2) 100%);
	--asdi-gold: #f6c343;

	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	text-align: left;
	-webkit-font-smoothing: antialiased;
}

.asdi-sheet[hidden] {
	display: none;
}

.asdi-sheet *,
.asdi-sheet *::before,
.asdi-sheet *::after {
	box-sizing: border-box;
}

.asdi-sheet .asdi-sheet-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.66);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.asdi-sheet .asdi-sheet-card {
	position: relative;
	width: 100%;
	max-width: 420px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 30px 24px 24px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 24px;
	background:
		radial-gradient(120% 60% at 50% 0%, rgba(255, 45, 85, 0.22), transparent 60%),
		#13131a;
	color: #f3f3f7;
	text-align: center;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
	opacity: 0;
	transform: translateY(18px) scale(0.98);
	transition: opacity 0.2s ease, transform 0.22s ease;
}

.asdi-sheet.is-open .asdi-sheet-backdrop,
.asdi-sheet.is-open .asdi-sheet-card {
	opacity: 1;
}

.asdi-sheet.is-open .asdi-sheet-card {
	transform: none;
}

.asdi-sheet .asdi-sheet-x {
	position: absolute;
	top: 12px;
	right: 12px;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.asdi-sheet .asdi-sheet-x:hover {
	background: rgba(255, 255, 255, 0.16);
}

.asdi-sheet .asdi-sheet-ico {
	display: inline-grid;
	place-items: center;
	width: 60px;
	height: 60px;
	margin-bottom: 12px;
	border-radius: 50%;
	background: linear-gradient(135deg, #ffe28a 0%, var(--asdi-gold) 55%, #e09b12 100%);
	color: #2a1a00;
	box-shadow: 0 12px 30px -8px rgba(246, 195, 67, 0.55);
}

.asdi-sheet .asdi-sheet-ico svg {
	width: 26px;
	height: 26px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.asdi-sheet .asdi-sheet-title {
	margin: 0 0 6px;
	padding: 0;
	border: 0;
	color: #fff;
	font-family: inherit;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.01em;
	text-transform: none;
}

.asdi-sheet .asdi-sheet-text {
	margin: 0 auto 18px;
	max-width: 320px;
	color: #b8b8c8;
	font-size: 14px;
}

.asdi-sheet .asdi-steps {
	display: grid;
	gap: 10px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
	text-align: left;
}

.asdi-sheet .asdi-step {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 12px 12px 12px 14px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.04);
	transition: border-color 0.2s ease, background 0.2s ease;
}

.asdi-sheet .asdi-step-num {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	font-size: 13px;
	font-weight: 800;
}

.asdi-sheet .asdi-step-label {
	flex: 1 1 auto;
	min-width: 0;
	color: #f3f3f7;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
}

.asdi-sheet .asdi-step-btn {
	flex: 0 0 auto;
	padding: 9px 16px;
	margin: 0;
	border: 0;
	border-radius: 999px;
	background: var(--asdi-grad);
	color: #fff;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: none;
}

.asdi-sheet .asdi-step-btn:hover,
.asdi-sheet .asdi-step-btn:focus {
	color: #fff;
	text-decoration: none;
	filter: brightness(1.08);
}

.asdi-sheet .asdi-step.is-done {
	border-color: rgba(52, 211, 153, 0.45);
	background: rgba(52, 211, 153, 0.08);
}

.asdi-sheet .asdi-step.is-done .asdi-step-num {
	background: #34d399;
	color: #062b1d;
}

.asdi-sheet .asdi-step.is-done .asdi-step-num span {
	display: none;
}

.asdi-sheet .asdi-step.is-done .asdi-step-num::after {
	content: "\2713";
	font-size: 15px;
}

.asdi-sheet .asdi-step.is-done .asdi-step-btn {
	background: rgba(255, 255, 255, 0.1);
}

.asdi-sheet .asdi-code-row {
	margin: 0 0 12px;
}

.asdi-sheet .asdi-code {
	width: 100%;
	height: 50px;
	padding: 0 16px;
	margin: 0;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	font-family: inherit;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-align: center;
	text-transform: uppercase;
	box-shadow: none;
	outline: none;
}

.asdi-sheet .asdi-code::placeholder {
	color: rgba(255, 255, 255, 0.4);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
}

.asdi-sheet .asdi-code:focus {
	border-color: var(--asdi-accent);
	box-shadow: 0 0 0 3px rgba(255, 45, 85, 0.25);
}

.asdi-sheet .asdi-unlock-btn {
	display: block;
	width: 100%;
	height: 52px;
	padding: 0 20px;
	margin: 0;
	border: 0;
	border-radius: 999px;
	background: var(--asdi-grad);
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 14px 34px -10px rgba(255, 45, 85, 0.6);
	transition: filter 0.15s ease, opacity 0.15s ease;
}

.asdi-sheet .asdi-unlock-btn:hover:not([disabled]) {
	filter: brightness(1.08);
}

.asdi-sheet .asdi-unlock-btn[disabled] {
	background: rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.55);
	box-shadow: none;
	cursor: not-allowed;
}

.asdi-sheet .asdi-unlock-btn.is-waiting {
	color: #fff;
	background:
		linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0.08) 100%) 0 0 / 200% 100%;
	animation: asdi-shimmer 1.4s linear infinite;
}

@keyframes asdi-shimmer {
	to { background-position: -200% 0; }
}

.asdi-sheet .asdi-sheet-msg {
	margin: 12px 0 0;
	color: #ff8aa0;
	font-size: 13px;
	font-weight: 600;
}

.asdi-sheet .asdi-sheet-msg.is-good {
	color: #34d399;
}

.asdi-sheet .asdi-sheet-msg[hidden] {
	display: none;
}

html.asdi-sheet-lock,
html.asdi-sheet-lock body {
	overflow: hidden;
}

@media (max-width: 600px) {
	.asdi-sheet {
		align-items: flex-end;
		padding: 0;
	}

	.asdi-sheet .asdi-sheet-card {
		max-width: none;
		max-height: 88vh;
		padding: 28px 18px calc(22px + env(safe-area-inset-bottom, 0px));
		border-radius: 24px 24px 0 0;
		transform: translateY(100%);
	}
}

/* ----------------------------------------------------------- responsive */

/* Tablet / medium width: centred vertical player with the rail beside it */
@container (min-width: 600px) {
	.asdi-app .asdi-main {
		display: grid;
		grid-template-columns: auto auto;
		grid-template-rows: 1fr auto;
		justify-content: center;
		align-items: end;
		column-gap: 16px;
		row-gap: 16px;
	}

	.asdi-app .asdi-stage {
		grid-column: 1;
		grid-row: 1 / span 2;
		width: calc(min(74vh, 700px) * 9 / 16);
		max-width: 100%;
		max-height: none;
		margin: 0;
	}

	.asdi-app .asdi-rail {
		position: static;
		grid-column: 2;
		grid-row: 1;
		align-self: end;
		gap: 16px;
	}

	.asdi-app .asdi-act {
		color: #e6e6ee;
	}

	.asdi-app .asdi-act-ico {
		width: 50px;
		height: 50px;
		border-color: var(--asdi-line);
		background: var(--asdi-panel-2);
	}

	.asdi-app .asdi-act-lbl {
		color: #c9c9d6;
		text-shadow: none;
	}

	.asdi-app .asdi-act:hover .asdi-act-lbl {
		color: #fff;
	}

	.asdi-app .asdi-epgrid {
		grid-template-columns: repeat(10, minmax(0, 1fr));
	}
}

/* Wide: player on the left, details and episodes on the right */
@container (min-width: 860px) {
	.asdi-app .asdi-grid {
		grid-template-columns: auto minmax(0, 1fr);
		gap: 30px;
	}

	.asdi-app .asdi-main {
		position: sticky;
		top: 24px;
		justify-content: flex-start;
	}

	.asdi-app .asdi-stage {
		width: calc(var(--asdi-player-h) * 9 / 16);
	}

	.asdi-app .asdi-info {
		padding-top: 4px;
	}

	.asdi-app .asdi-epgrid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

@container (min-width: 1080px) {
	.asdi-app .asdi-epgrid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 10px;
	}

	.asdi-app .asdi-ep {
		height: 54px;
		font-size: 16px;
	}
}

@media (max-width: 600px) {
	.asdi-app {
		padding: 14px;
		border-radius: 18px;
	}

	.asdi-app .asdi-stage {
		border-radius: 14px;
	}

	.asdi-app .asdi-play {
		width: 68px;
		height: 68px;
		margin: -34px 0 0 -34px;
	}

	.asdi-app .asdi-panel {
		padding: 14px;
	}

	.asdi-app .asdi-ep {
		height: 44px;
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.asdi-app .asdi-play::before,
	.asdi-app.asdi-playing:not(.asdi-paused) .asdi-ep.is-active::after {
		animation: none;
	}
}

/* =============================================================== v1.4 */

/* Loading message under the spinner (after 5 s) */
.asdi-app .asdi-loadmsg {
	position: absolute;
	top: calc(50% + 40px);
	left: 50%;
	z-index: 4;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: max-content;
	max-width: 82%;
	padding: 10px 16px;
	border-radius: 14px;
	background: rgba(0, 0, 0, 0.55);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.45;
	text-align: center;
	transform: translateX(-50%);
	animation: asdi-fadein 0.4s ease;
	pointer-events: none;
}

.asdi-app .asdi-loadmsg[hidden] {
	display: none;
}

.asdi-app .asdi-loadmsg-dots {
	display: inline-flex;
	gap: 5px;
}

.asdi-app .asdi-loadmsg-dots i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--asdi-accent-2);
	animation: asdi-dot 1.2s ease-in-out infinite;
}

.asdi-app .asdi-loadmsg-dots i:nth-child(2) {
	animation-delay: 0.15s;
}

.asdi-app .asdi-loadmsg-dots i:nth-child(3) {
	animation-delay: 0.3s;
}

@keyframes asdi-dot {
	0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
	40% { opacity: 1; transform: translateY(-3px); }
}

@keyframes asdi-fadein {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* Social rail: like / add to list / share / episodes */
.asdi-app .asdi-act-like.is-on .asdi-act-ico {
	color: #ff3b6b;
}

.asdi-app .asdi-act-like .asdi-act-ico svg,
.asdi-sheet .asdi-eps-action[data-asdi-like] svg {
	stroke-width: 1.8;
}

.asdi-app .asdi-act-like.is-on .asdi-act-ico svg,
.asdi-sheet .asdi-eps-action[data-asdi-like].is-on svg {
	fill: currentColor;
}

.asdi-app .asdi-i-added,
.asdi-sheet .asdi-i-added {
	display: none;
}

.asdi-app [data-asdi-mylist].is-on .asdi-i-add,
.asdi-sheet [data-asdi-mylist].is-on .asdi-i-add {
	display: none;
}

.asdi-app [data-asdi-mylist].is-on .asdi-i-added,
.asdi-sheet [data-asdi-mylist].is-on .asdi-i-added {
	display: inline-flex;
}

.asdi-app .asdi-i-add,
.asdi-app .asdi-i-added {
	align-items: center;
	justify-content: center;
}

.asdi-app .asdi-i-add {
	display: inline-flex;
}

.asdi-app .asdi-act-list.is-on .asdi-act-ico {
	color: #34d399;
}

/* Tools row (download, copy, 4K, HD): below the video on phones */
.asdi-app .asdi-tools {
	display: flex;
	gap: 8px;
	margin-top: 12px;
	overflow-x: auto;
	scrollbar-width: none;
}

.asdi-app .asdi-tools::-webkit-scrollbar {
	display: none;
}

.asdi-app .asdi-tool {
	flex: 1 0 auto;
	flex-direction: row;
	justify-content: center;
	gap: 8px;
	width: auto;
	padding: 6px 12px 6px 6px;
	border: 1px solid var(--asdi-line);
	border-radius: 999px;
	background: var(--asdi-panel-2);
}

.asdi-app .asdi-tool .asdi-act-ico {
	width: 32px;
	height: 32px;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.asdi-app .asdi-tool .asdi-act-ico svg {
	width: 16px;
	height: 16px;
}

.asdi-app .asdi-tool .asdi-act-txt {
	font-size: 11px;
}

.asdi-app .asdi-tool .asdi-act-lbl {
	color: #e6e6ee;
	font-size: 12.5px;
	text-shadow: none;
}

/* Phones: the in-page episode grid is replaced by the Episodes sheet */
.asdi-app .asdi-eps,
.asdi-app .asdi-seasons-panel {
	display: none;
}

.asdi-app .asdi-epsbar {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	margin: 18px 0 0;
	padding: 12px 14px;
	border: 1px solid var(--asdi-line);
	border-radius: 16px;
	background: var(--asdi-panel);
	color: #fff;
	text-align: left;
}

.asdi-app .asdi-epsbar:hover {
	background: var(--asdi-panel-2);
	color: #fff;
}

.asdi-app .asdi-epsbar-ico {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	border-radius: 12px;
	background: var(--asdi-grad);
}

.asdi-app .asdi-epsbar-ico svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: #fff;
	stroke-width: 2;
}

.asdi-app .asdi-epsbar-text {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-width: 0;
	line-height: 1.3;
}

.asdi-app .asdi-epsbar-text strong {
	font-size: 15px;
	font-weight: 800;
}

.asdi-app .asdi-epsbar-text span {
	color: var(--asdi-muted);
	font-size: 12.5px;
}

.asdi-app .asdi-epsbar-arrow {
	color: var(--asdi-muted);
	font-size: 26px;
	line-height: 1;
}

/* Extra controls: mute, speed, fullscreen */
.asdi-app .asdi-ctl-vol svg,
.asdi-app .asdi-ctl-full svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.asdi-app .asdi-ctl-vol .asdi-i-vol > path:first-child {
	fill: currentColor;
	stroke-width: 1.2;
}

.asdi-app .asdi-i-x {
	display: none;
}

.asdi-app.asdi-muted .asdi-i-x {
	display: inline;
}

.asdi-app.asdi-muted .asdi-i-wave {
	display: none;
}

.asdi-app .asdi-ctl-speed {
	width: auto;
	min-width: 38px;
	margin-left: auto;
	padding: 0 8px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 800;
}

/* Fullscreen */
.asdi-app .asdi-stage:fullscreen {
	width: 100vw;
	height: 100vh;
	max-height: none;
	border-radius: 0;
	aspect-ratio: auto;
	background: #000;
}

.asdi-app .asdi-stage:-webkit-full-screen {
	width: 100vw;
	height: 100vh;
	max-height: none;
	border-radius: 0;
	aspect-ratio: auto;
	background: #000;
}

.asdi-app .asdi-stage:fullscreen .asdi-poster {
	object-fit: contain;
}

/* ------------------------------------------------------- episodes sheet */

.asdi-sheet.asdi-eps-sheet .asdi-eps-card {
	max-width: 460px;
	max-height: min(86vh, 760px);
	padding: 0 18px 20px;
	text-align: left;
}

.asdi-sheet .asdi-eps-head {
	position: sticky;
	top: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 -18px 14px;
	padding: 16px 18px 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	background: #15151c;
}

.asdi-sheet .asdi-eps-title {
	margin: 0;
	padding: 0;
	border: 0;
	color: #fff;
	font-family: inherit;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.2;
	text-transform: none;
}

.asdi-sheet .asdi-eps-x {
	position: static;
}

.asdi-sheet .asdi-eps-series {
	display: flex;
	gap: 14px;
	margin-bottom: 14px;
}

.asdi-sheet .asdi-eps-poster {
	flex: 0 0 auto;
	width: 72px;
	height: 98px;
	border-radius: 10px;
	object-fit: cover;
	box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.8);
}

.asdi-sheet .asdi-eps-meta {
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-width: 0;
}

.asdi-sheet .asdi-eps-name {
	color: #fff;
	font-size: 15.5px;
	font-weight: 800;
	line-height: 1.3;
}

.asdi-sheet .asdi-eps-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.asdi-sheet .asdi-eps-badge {
	padding: 3px 8px;
	border-radius: 6px;
	background: rgba(246, 195, 67, 0.16);
	color: #f6c343;
	font-size: 11.5px;
	font-weight: 800;
}

.asdi-sheet .asdi-eps-count {
	color: #8f8fa3;
	font-size: 12.5px;
}

.asdi-sheet .asdi-eps-actions {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	margin-bottom: 16px;
}

.asdi-sheet .asdi-eps-action {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 11px 6px;
	margin: 0;
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.05);
	color: #d4d4de;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}

.asdi-sheet .asdi-eps-action:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.asdi-sheet .asdi-eps-action svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.asdi-sheet .asdi-eps-action[data-asdi-like].is-on {
	color: #ff3b6b;
}

.asdi-sheet .asdi-eps-action[data-asdi-mylist].is-on {
	color: #34d399;
}

.asdi-sheet .asdi-i-add {
	display: inline-flex;
}

.asdi-sheet .asdi-eps-seasons,
.asdi-sheet .asdi-eps-ranges {
	display: flex;
	gap: 8px;
	margin-bottom: 12px;
	overflow-x: auto;
	scrollbar-width: none;
}

.asdi-sheet .asdi-eps-seasons[hidden],
.asdi-sheet .asdi-eps-ranges[hidden] {
	display: none;
}

.asdi-sheet .asdi-eps-chip {
	flex: 0 0 auto;
	padding: 8px 14px;
	margin: 0;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.05);
	color: #b8b8c8;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.asdi-sheet .asdi-eps-chip.is-active {
	border-color: transparent;
	background: var(--asdi-grad);
	color: #fff;
}

.asdi-sheet .asdi-eps-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 9px;
}

.asdi-sheet .asdi-eps-cell {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 1 / 0.9;
	padding: 0;
	margin: 0;
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.06);
	color: #e6e6ee;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease;
}

.asdi-sheet .asdi-eps-cell:hover {
	background: rgba(255, 255, 255, 0.12);
}

.asdi-sheet .asdi-eps-cell.is-active {
	border-color: transparent;
	background: var(--asdi-grad);
	color: #fff;
	box-shadow: 0 8px 22px -8px rgba(255, 45, 85, 0.6);
}

.asdi-sheet .asdi-eps-cell.is-empty {
	border-style: dashed;
	opacity: 0.4;
}

.asdi-sheet .asdi-eps-cell.is-locked {
	color: rgba(255, 255, 255, 0.55);
}

.asdi-sheet .asdi-eps-cell.is-locked::before {
	content: "";
	position: absolute;
	top: 5px;
	right: 6px;
	width: 12px;
	height: 12px;
	background: #f6c343;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a5 5 0 0 0-5 5v3H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2h-1V7a5 5 0 0 0-5-5zm-3 8V7a3 3 0 0 1 6 0v3H9z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a5 5 0 0 0-5 5v3H6a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8a2 2 0 0 0-2-2h-1V7a5 5 0 0 0-5-5zm-3 8V7a3 3 0 0 1 6 0v3H9z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.asdi-sheet .asdi-eps-cell.is-locked.is-active::before {
	background: #fff;
}

@media (max-width: 600px) {
	.asdi-sheet.asdi-eps-sheet .asdi-eps-card {
		max-width: none;
		max-height: 82vh;
		padding: 0 16px calc(20px + env(safe-area-inset-bottom, 0px));
	}

	.asdi-sheet .asdi-eps-head {
		margin: 0 -16px 14px;
		padding: 16px 16px 14px;
		border-radius: 24px 24px 0 0;
	}
}

/* Tablet / desktop overrides for the v1.4 parts (must come last) */
@container (min-width: 600px) {
	.asdi-app .asdi-tools {
		grid-column: 2;
		grid-row: 2;
		flex-direction: column;
		align-items: center;
		gap: 16px;
		margin: 0;
		padding: 16px 0 6px;
		border-top: 1px solid var(--asdi-line);
		overflow: visible;
	}

	.asdi-app .asdi-tool {
		flex-direction: column;
		width: 62px;
		padding: 0;
		border: 0;
		background: none;
	}

	.asdi-app .asdi-tool .asdi-act-ico {
		width: 50px;
		height: 50px;
	}

	.asdi-app .asdi-tool .asdi-act-ico svg {
		width: 21px;
		height: 21px;
	}

	.asdi-app .asdi-act-eps,
	.asdi-app .asdi-epsbar {
		display: none;
	}

	.asdi-app .asdi-eps,
	.asdi-app .asdi-seasons-panel {
		display: block;
	}

	.asdi-app .asdi-tool .asdi-act-txt {
		font-size: 13px;
	}

	.asdi-app .asdi-tool .asdi-act-lbl {
		color: #c9c9d6;
		font-size: 11px;
	}

	.asdi-app .asdi-tool .asdi-act-ico {
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
	}
}

/* ---------------------------------------------- phone layout fixes (1.4) */

/* Video + its side buttons share one box, so the buttons are measured from the video */
.asdi-app .asdi-player {
	position: relative;
}

.asdi-app .asdi-rail {
	bottom: 96px;
}

/* One-line control bar on narrow players */
.asdi-app .asdi-controls {
	flex-wrap: wrap;
	gap: 0 2px;
}

.asdi-app .asdi-controls > .asdi-ctl {
	width: 34px;
	height: 36px;
}

.asdi-app .asdi-controls > .asdi-ctl svg {
	width: 20px;
	height: 20px;
}

.asdi-app .asdi-controls > .asdi-ctl-skip svg {
	width: 24px;
	height: 24px;
}

.asdi-app .asdi-controls > .asdi-ctl-speed {
	width: auto;
	min-width: 34px;
	padding: 0 6px;
}

.asdi-app .asdi-time {
	font-size: 11.5px;
}

/* Tools under the video: four equal tiles */
.asdi-app .asdi-tools {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 8px;
	overflow: visible;
}

.asdi-app .asdi-tool {
	flex-direction: column;
	gap: 5px;
	padding: 9px 4px 8px;
	border-radius: 14px;
}

.asdi-app .asdi-tool .asdi-act-ico {
	width: 30px;
	height: 30px;
}

.asdi-app .asdi-tool .asdi-act-lbl {
	font-size: 11px;
	white-space: nowrap;
}

/* Wider screens: the wrapper steps aside so the video and rail sit in the grid */
@container (min-width: 600px) {
	.asdi-app .asdi-player {
		display: contents;
	}

	.asdi-app .asdi-controls > .asdi-ctl {
		width: 38px;
		height: 38px;
	}

	.asdi-app .asdi-controls > .asdi-ctl svg {
		width: 22px;
		height: 22px;
	}

	.asdi-app .asdi-controls > .asdi-ctl-skip svg {
		width: 26px;
		height: 26px;
	}

	.asdi-app .asdi-tools {
		display: flex;
		grid-auto-flow: row;
	}

	.asdi-app .asdi-tool {
		padding: 0;
		border-radius: 0;
	}

	.asdi-app .asdi-tool .asdi-act-ico {
		width: 50px;
		height: 50px;
	}
}

/* Phones: keep the loading message clear of the side buttons */
.asdi-app .asdi-loadmsg {
	left: calc(50% - 34px);
	max-width: calc(100% - 150px);
	font-size: 12.5px;
	background: rgba(20, 20, 28, 0.82);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

@container (min-width: 600px) {
	.asdi-app .asdi-loadmsg {
		left: 50%;
		max-width: 80%;
		font-size: 13px;
	}
}

/* Phones: spinner lines up with the loading message */
.asdi-app .asdi-spinner {
	left: calc(50% - 34px);
}

@container (min-width: 600px) {
	.asdi-app .asdi-spinner {
		left: 50%;
	}
}


/* --------------------------------------------- episode counter + nav */

.asdi-ep-count {
	display: inline-flex;
	align-items: center;
	margin-left: 10px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.14);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.asdi-epnav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 14px;
}

.asdi-epnav-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px 18px;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	background: rgba(255, 255, 255, 0.07);
	color: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.asdi-epnav-btn:hover:not(:disabled) {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.3);
}

.asdi-epnav-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

@media (max-width: 520px) {
	.asdi-epnav {
		grid-template-columns: 1fr;
	}
}


/* =============================================================== ASDI */

/* Quality button sits next to the speed button */
.asdi-app .asdi-controls > .asdi-ctl-q {
	margin-left: 0;
}

.asdi-app .asdi-ctl-q[hidden] {
	display: none;
}

/* Lock screen button is a login link here */
.asdi-app a.asdi-lock-btn,
.asdi-app a.asdi-lock-btn:hover,
.asdi-app a.asdi-lock-btn:focus {
	text-decoration: none;
}

/* Language chip */
.asdi-app .asdi-chip-lang {
	text-transform: none;
}

/* Plain linked list from [asdi_episodes] / {episode_list} */
.asdi-episode-list {
	columns: 2;
}

/* Episode table from {episode_list} / [asdi_episodes] */
.asdi-ep-table-wrap {
	margin: 16px 0 24px;
	overflow-x: auto;
}

table.asdi-ep-table {
	width: 100%;
	margin: 0;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 14px;
	overflow: hidden;
	table-layout: fixed;
	background: #121218;
	font-size: 14px;
	line-height: 1.2;
}

table.asdi-ep-table td {
	padding: 0;
	border: 0;
	border-right: 1px solid rgba(255, 255, 255, 0.08);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	background: transparent;
	text-align: center;
	vertical-align: middle;
}

table.asdi-ep-table tr td:last-child {
	border-right: 0;
}

table.asdi-ep-table tr:last-child td {
	border-bottom: 0;
}

table.asdi-ep-table tr:nth-child(even) td {
	background: rgba(255, 255, 255, 0.025);
}

table.asdi-ep-table a,
table.asdi-ep-table a:visited {
	display: block;
	padding: 13px 6px;
	color: #e9e9f1;
	font-weight: 700;
	text-decoration: none;
	box-shadow: none;
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease;
}

table.asdi-ep-table a:hover,
table.asdi-ep-table a:focus-visible {
	background: linear-gradient(135deg, #ff2d55 0%, #ff7a18 100%);
	color: #fff;
	text-decoration: none;
}

/* Phones: just the number, so 5 columns still fit */
@media (max-width: 520px) {
	table.asdi-ep-table .asdi-ep-word {
		display: none;
	}

	table.asdi-ep-table a {
		padding: 12px 4px;
	}
}

/* Featured image placed by {{IMAGE}} */
.asdi-post-image {
	display: block;
	margin: 24px auto;
	max-width: 100%;
	height: auto;
}

/* -------------------------------------------------- pre-roll video ads */

.asdi-app .asdi-ad,
.asdi-app .asdi-ima {
	position: absolute;
	inset: 0;
	z-index: 20;
	background: #000;
}

.asdi-app .asdi-ad-video {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	background: #000;
	cursor: pointer;
}

.asdi-app .asdi-ad-top {
	position: absolute;
	top: 10px;
	left: 10px;
	right: 10px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	pointer-events: none;
}

.asdi-app .asdi-ad-badge {
	background: #f5c518;
	color: #111;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	padding: 2px 8px;
	border-radius: 4px;
}

.asdi-app .asdi-ad-note {
	color: #eee;
	font-size: 12px;
	line-height: 1.4;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.asdi-app .asdi-ad-btn {
	position: absolute;
	margin: 0;
	width: auto;
	min-height: 0;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	color: #fff;
	background: rgba(0, 0, 0, 0.7);
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 999px;
	padding: 8px 14px;
	box-shadow: none;
	cursor: pointer;
}

.asdi-app .asdi-ad-btn:hover {
	background: rgba(0, 0, 0, 0.85);
	border-color: #fff;
}

.asdi-app .asdi-ad-visit {
	left: 10px;
	bottom: 18px;
}

.asdi-app .asdi-ad-skip {
	right: 0;
	bottom: 18px;
	border-right: 0;
	border-radius: 999px 0 0 999px;
	padding: 10px 16px;
	font-size: 14px;
}

.asdi-app .asdi-ad-skip[disabled] {
	cursor: default;
	opacity: 0.85;
}

.asdi-app .asdi-ad-unmute {
	left: 10px;
	top: 44px;
}

.asdi-app .asdi-ad-resume {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 68px;
	height: 68px;
	border-radius: 50%;
	padding: 0 0 0 4px;
	font-size: 26px;
}

.asdi-app .asdi-ad-bar {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 4px;
	background: rgba(255, 255, 255, 0.25);
}

.asdi-app .asdi-ad-bar i {
	display: block;
	height: 100%;
	width: 0;
	background: #f5c518;
	transition: width 0.25s linear;
}

.asdi-app [hidden].asdi-ad-btn {
	display: none !important;
}

/* While an ad runs, the player's own chrome stays out of the way */
.asdi-app.is-ad .asdi-controls,
.asdi-app.is-ad .asdi-play,
.asdi-app.is-ad .asdi-ov-top,
.asdi-app.is-ad .asdi-spinner,
.asdi-app.is-ad .asdi-loadmsg,
.asdi-app.is-ad .asdi-flash,
.asdi-app.is-ad .asdi-poster,
.asdi-app.is-ad .asdi-fallback {
	display: none !important;
}


/* ---------------------------------------------------- end-of-episode popup */

.asdi-app .asdi-endcard {
	position: absolute;
	inset: 0;
	z-index: 9;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 28px 24px;
	background:
		radial-gradient(120% 70% at 50% 100%, rgba(255, 45, 85, 0.3), transparent 60%),
		rgba(6, 6, 10, 0.7);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: #fff;
	text-align: center;
	animation: asdi-endcard-in 0.25s ease;
}

.asdi-app .asdi-endcard[hidden] {
	display: none;
}

@keyframes asdi-endcard-in {
	from { opacity: 0; transform: scale(0.97); }
	to { opacity: 1; transform: none; }
}

.asdi-app .asdi-endcard-kicker {
	margin: 0;
	color: rgba(255, 255, 255, 0.7);
	font-size: 13px;
	font-weight: 600;
}

.asdi-app .asdi-endcard-title {
	margin: 0 0 6px;
	color: #fff;
	font-size: 19px;
	font-weight: 800;
	line-height: 1.25;
}

.asdi-app .asdi-endcard-next {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 4px 0 0;
	padding: 14px 28px;
	border: 0;
	border-radius: 999px;
	background: var(--asdi-grad);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 14px 34px -8px var(--asdi-glow);
	transition: transform 0.15s ease;
}

.asdi-app .asdi-endcard-next:hover,
.asdi-app .asdi-endcard-next:focus-visible {
	transform: scale(1.04);
}

.asdi-app .asdi-endcard-next[hidden] {
	display: none;
}

.asdi-app .asdi-endcard-next svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.asdi-app .asdi-endcard-replay {
	margin: 6px 0 0;
	padding: 8px 18px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	background: transparent;
	color: rgba(255, 255, 255, 0.85);
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.asdi-app .asdi-endcard-replay:hover {
	background: rgba(255, 255, 255, 0.08);
}

/* Hide the big play button and controls while the popup is up. */
.asdi-app.asdi-ended .asdi-play,
.asdi-app.asdi-ended .asdi-controls {
	visibility: hidden;
}


/* ---------------------------------------------------- linked chips (category / tag archives) */

.asdi-app a.asdi-chip,
.asdi-app a.asdi-chip:visited {
	text-decoration: none;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.asdi-app a.asdi-chip-genre,
.asdi-app a.asdi-chip-genre:visited {
	color: #ffb3c2;
}

.asdi-app a.asdi-chip-platform,
.asdi-app a.asdi-chip-platform:visited {
	color: #ffe29a;
}

.asdi-app a.asdi-chip:hover,
.asdi-app a.asdi-chip:focus-visible {
	text-decoration: none;
	transform: translateY(-1px);
}

.asdi-app a.asdi-chip-genre:hover,
.asdi-app a.asdi-chip-genre:focus-visible {
	background: rgba(255, 45, 85, 0.24);
	color: #fff;
}

.asdi-app a.asdi-chip-platform:hover,
.asdi-app a.asdi-chip-platform:focus-visible {
	border-color: rgba(246, 195, 67, 0.7);
	background: rgba(246, 195, 67, 0.2);
	color: #fff3cf;
}


/* ---------------------------------------------------- Download button (rail) */

.asdi-app .asdi-rail-sep {
	display: block;
	width: 44px;
	height: 1px;
	background: rgba(255, 255, 255, 0.16);
}

.asdi-app a.asdi-act-download,
.asdi-app a.asdi-act-download:visited,
.asdi-app a.asdi-act-download:hover {
	color: #fff;
	text-decoration: none;
	box-shadow: none;
}

.asdi-app .asdi-act-download .asdi-act-ico,
.asdi-app .asdi-act-download:hover .asdi-act-ico {
	border-color: transparent;
	background: var(--asdi-grad);
	color: #fff;
	box-shadow: 0 10px 26px -8px var(--asdi-glow);
}
