/* Scoped to Discover page only — see .afterpoddy-discover */

body.afterpoddy-discover-screen,
body.afterpoddy-discover-screen #page,
body.afterpoddy-discover-screen #content,
body.afterpoddy-discover-screen .site-content,
body.afterpoddy-discover-screen .elementor-location-single {
	background-color: var(--ap-disc-bg, #121212) !important;
}

/* Theme grid uses a -10px gutter on both sides. With the desktop sidebar inset, that spills 10px past the viewport. */
@media (min-width: 851px) {
	body.afterpoddy-discover-screen .bb-grid.site-content-grid {
		width: calc(100% + 10px);
		margin-right: 0;
	}
}

.afterpoddy-discover {
	--ap-disc-bg: #121212;
	--ap-disc-surface: #1c1c1c;
	--ap-disc-surface2: #202020;
	--ap-disc-text: #f6f6f6;
	--ap-disc-muted: #b3b3b3;
	--ap-disc-faint: #797e7b;
	--ap-disc-line: rgba(255, 255, 255, 0.08);
	--ap-disc-green: #1ed760;
	--ap-disc-green-deep: #0d2114;
	--ap-disc-save-icon: #7a8d80;
	--ap-disc-radius: 18px;
	color: var(--ap-disc-text);
	max-width: 100%;
}

/* One flat surface per field: container + control share --ap-disc-surface2 (theme input resets). */
body.afterpoddy-discover-screen .afterpoddy-discover :where(
	input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
	textarea
) {
	margin: 0;
	background-color: var(--ap-disc-surface2) !important;
	color: var(--ap-disc-text) !important;
	border: 0;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
	border-radius: 0;
}

body.afterpoddy-discover-screen .afterpoddy-discover :where(
	input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"])
) {
	background-image: none !important;
}

body.afterpoddy-discover-screen .afterpoddy-discover :where(
	input[type="search"]
)::-webkit-search-decoration,
body.afterpoddy-discover-screen .afterpoddy-discover :where(
	input[type="search"]
)::-webkit-search-cancel-button,
body.afterpoddy-discover-screen .afterpoddy-discover :where(
	input[type="search"]
)::-webkit-search-results-button,
body.afterpoddy-discover-screen .afterpoddy-discover :where(
	input[type="search"]
)::-webkit-search-results-decoration {
	-webkit-appearance: none;
	appearance: none;
	display: none;
}

body.afterpoddy-discover-screen .afterpoddy-discover :where(
	input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
	select,
	textarea
):focus,
body.afterpoddy-discover-screen .afterpoddy-discover :where(
	input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
	select,
	textarea
):focus-visible,
body.afterpoddy-discover-screen .afterpoddy-discover :where(
	input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
	select,
	textarea
):active {
	background-color: var(--ap-disc-surface2) !important;
	outline: none;
	box-shadow: none !important;
}

body.afterpoddy-discover-screen .afterpoddy-discover :where(input):-webkit-autofill,
body.afterpoddy-discover-screen .afterpoddy-discover :where(input):-webkit-autofill:hover,
body.afterpoddy-discover-screen .afterpoddy-discover :where(input):-webkit-autofill:focus {
	-webkit-text-fill-color: var(--ap-disc-text);
	-webkit-box-shadow: 0 0 0 1000px var(--ap-disc-surface2) inset;
	box-shadow: 0 0 0 1000px var(--ap-disc-surface2) inset;
	caret-color: var(--ap-disc-text);
	transition: background-color 99999s ease-out 0s;
}

body.afterpoddy-discover-screen .afterpoddy-discover :where(input, textarea)::placeholder {
	color: var(--ap-disc-faint);
	opacity: 1;
}

.afterpoddy-discover__field {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	min-height: 40px;
	border: 1px solid var(--ap-disc-line);
	border-radius: 10px;
	background-color: var(--ap-disc-surface2);
	overflow: hidden;
}

.afterpoddy-discover__field--select {
	padding: 0;
	overflow: visible;
}

body.afterpoddy-discover-screen .afterpoddy-discover .afterpoddy-discover__field--select select {
	display: block;
	width: 100%;
	min-height: 44px;
	padding: 8px 32px 8px 12px;
	font-size: 16px;
	line-height: 1.3;
	cursor: pointer;
	touch-action: manipulation;
	border: 0 !important;
	border-radius: 0;
	outline: none;
	box-shadow: none !important;
	background-color: var(--ap-disc-surface2) !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23b3b3b3' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 12px center !important;
	-webkit-appearance: menulist;
	appearance: auto;
}

body.afterpoddy-discover-screen .ap-sheet__field {
	border-color: var(--ap-disc-line);
	background-color: var(--ap-disc-surface2);
}

body.afterpoddy-discover-screen .ap-sheet__input {
	background-color: var(--ap-disc-surface2) !important;
}

body.afterpoddy-discover-screen .ap-sheet__input:-webkit-autofill,
body.afterpoddy-discover-screen .ap-sheet__input:-webkit-autofill:hover,
body.afterpoddy-discover-screen .ap-sheet__input:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0 1000px var(--ap-disc-surface2) inset;
	box-shadow: 0 0 0 1000px var(--ap-disc-surface2) inset;
}

.afterpoddy-discover__intro {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 18px;
}

.afterpoddy-discover__eyebrow {
	margin: 0 0 8px;
	font-size: var(--ap-text-2xs, 10px);
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: var(--ap-disc-faint);
}

.afterpoddy-discover__h1 {
	margin: 0;
	font-size: var(--ap-heading-page, 22px);
	font-weight: 800;
	line-height: var(--ap-leading-display, 1.2);
	letter-spacing: -0.04em;
}

.afterpoddy-discover__h1 span {
	color: #8f9f93;
}

.afterpoddy-discover__lede {
	margin: 8px 0 0;
	font-size: var(--ap-text-base, 14px);
	color: var(--ap-disc-muted);
}

.afterpoddy-discover__search {
	display: flex;
	align-items: stretch;
	gap: 8px;
	width: 100%;
	max-width: 360px;
	min-height: 46px;
	padding: 0 14px;
	border-radius: 11px;
	border: 1px solid var(--ap-disc-line);
	background-color: var(--ap-disc-surface2);
}

body.afterpoddy-discover-screen .afterpoddy-discover .afterpoddy-discover__search input[type="search"] {
	flex: 1;
	align-self: center;
	min-width: 0;
	width: 100%;
	height: 44px;
	padding: 0;
	font-size: var(--ap-text-base, 14px);
	line-height: 1.4;
}

.afterpoddy-discover__clear {
	font-size: var(--ap-meta-size, 12px);
	color: var(--ap-disc-green);
	text-decoration: none;
	white-space: nowrap;
}

.afterpoddy-discover__clear[hidden] {
	display: none;
}

.afterpoddy-discover [data-discover-live].is-loading {
	opacity: 0.55;
}

.afterpoddy-discover__filters-wrap {
	display: grid;
	grid-template-columns: 1fr;
	align-items: center;
	gap: 0;
	margin: 0 0 16px;
}

.afterpoddy-discover__filters-wrap.has-overflow {
	grid-template-columns: auto 1fr auto;
	gap: 6px;
}

.afterpoddy-discover__filters {
	display: flex;
	gap: 8px;
	min-width: 0;
	overflow-x: auto;
	padding: 4px 0;
	scroll-snap-type: x proximity;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.afterpoddy-discover__filters::-webkit-scrollbar {
	display: none;
}

.afterpoddy-discover__filters-nav {
	display: none;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 999px;
	border: 1px solid var(--ap-disc-line);
	background: var(--ap-disc-surface);
	color: var(--ap-disc-text);
	font-size: var(--ap-heading-page, 22px);
	line-height: 1;
	cursor: pointer;
	transition: background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.afterpoddy-discover__filters-wrap.has-overflow .afterpoddy-discover__filters-nav:not([hidden]) {
	display: inline-flex;
}

@media (hover: hover) and (pointer: fine) {
	.afterpoddy-discover__filters-wrap.has-overflow .afterpoddy-discover__filters-nav:not([hidden]) {
		display: inline-flex;
	}
}

@media (hover: none), (pointer: coarse) {
	.afterpoddy-discover__filters-wrap.has-overflow .afterpoddy-discover__filters-nav {
		display: none !important;
	}
}

.afterpoddy-discover__filters-nav:hover:not(:disabled) {
	background: var(--ap-disc-surface2);
	border-color: var(--ap-disc-muted);
}

.afterpoddy-discover__filters-nav:focus-visible {
	outline: 2px solid var(--ap-disc-green);
	outline-offset: 3px;
}

.afterpoddy-discover__filters-nav:disabled {
	opacity: 0.35;
	cursor: default;
}

.afterpoddy-discover-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	scroll-snap-align: start;
	min-height: 40px;
	padding: 0 16px;
	border-radius: 999px;
	border: 1px solid var(--ap-disc-line);
	background: var(--ap-disc-surface);
	color: var(--ap-disc-text);
	font-size: var(--ap-tab-size, 11px);
	font-weight: var(--ap-tab-weight, 600);
	text-decoration: none;
	transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.afterpoddy-discover-chip.is-active,
.afterpoddy-discover-chip.is-active:visited {
	background: var(--ap-disc-green-deep);
	border-color: var(--ap-disc-green);
	color: var(--ap-disc-green);
}

.afterpoddy-discover-chip:focus-visible {
	outline: 2px solid var(--ap-disc-green);
	outline-offset: 3px;
}

.afterpoddy-discover__results {
	font-size: var(--ap-text-sm, 13px);
	color: var(--ap-disc-muted);
	margin: 0 0 20px;
}

.afterpoddy-discover-text-link {
	font-size: var(--ap-text-sm, 13px);
	font-weight: 600;
	color: var(--ap-disc-green);
	text-decoration: none;
}

.afterpoddy-discover-text-link:hover,
.afterpoddy-discover-text-link:focus-visible {
	text-decoration: underline;
}

.afterpoddy-discover__hero {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 16px;
	margin-bottom: 28px;
}

.afterpoddy-discover-feature {
	position: relative;
	min-height: 290px;
	border-radius: var(--ap-disc-radius);
	overflow: hidden;
	background: #17382e;
	isolation: isolate;
}

.afterpoddy-discover-feature__art-wrap {
	position: absolute;
	z-index: 0;
	top: 0;
	right: 0;
	height: 100%;
	width: auto;
	aspect-ratio: 1;
	max-width: min(52%, 100%);
	pointer-events: none;
}

.afterpoddy-discover-feature__art-wrap::after {
	content: "";
	position: absolute;
	z-index: 1;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(
		90deg,
		rgba(13, 16, 15, 0.94) 0%,
		rgba(13, 16, 15, 0.72) 32%,
		rgba(13, 16, 15, 0.28) 58%,
		transparent 78%
	);
}

body.afterpoddy-discover-screen .afterpoddy-discover .afterpoddy-discover-feature__art {
	display: block;
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	object-fit: cover;
	object-position: center;
	opacity: 1;
	filter: saturate(0.92);
	border-radius: 0;
}

.afterpoddy-discover-feature::after {
	content: "";
	position: absolute;
	z-index: 1;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(90deg, #0d100f 0%, #0d100f 34%, rgba(13, 16, 15, 0.94) 44%, rgba(13, 16, 15, 0.62) 56%, rgba(13, 16, 15, 0.22) 70%, transparent 86%),
		linear-gradient(0deg, rgba(11, 27, 19, 0.82) 0%, rgba(11, 27, 19, 0.35) 38%, transparent 62%);
}

.afterpoddy-discover-feature__overlay {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 290px;
	padding: 22px 24px;
}

.afterpoddy-discover-feature__overlay::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	background: linear-gradient(
		105deg,
		rgba(13, 16, 15, 0.98) 0%,
		rgba(13, 16, 15, 0.92) 42%,
		rgba(13, 16, 15, 0.55) 62%,
		transparent 100%
	);
}

.afterpoddy-discover-feature__eyebrow {
	margin: 0 0 10px;
	font-size: var(--ap-text-3xs, 9px);
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: var(--ap-disc-green);
}

.afterpoddy-discover-feature__title {
	margin: 0;
	font-size: var(--ap-heading-section, 18px);
	font-weight: 800;
	line-height: var(--ap-leading-snug, 1.35);
	max-width: 22ch;
}

.afterpoddy-discover-feature__title a,
.afterpoddy-discover-feature__title a:visited {
	color: #f6f6f6;
	text-decoration: none;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.afterpoddy-discover-feature__context {
	margin: 10px 0 0;
	font-size: var(--ap-meta-size, 12px);
	color: #d8d8d8;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.afterpoddy-discover-feature__context span {
	color: #ececec;
}

.afterpoddy-discover-feature__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 16px;
}

.afterpoddy-discover-feature__replies {
	font-size: var(--ap-meta-size, 12px);
	color: #c8c8c8;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.afterpoddy-discover-editorial {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 22px;
	border-radius: var(--ap-disc-radius);
	border: 1px solid var(--ap-disc-line);
	background: var(--ap-disc-surface);
	min-height: 280px;
}

.afterpoddy-discover-editorial__eyebrow {
	margin: 0 0 8px;
	font-size: var(--ap-text-3xs, 9px);
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--ap-disc-faint);
}

.afterpoddy-discover-editorial__title {
	margin: 0;
	font-size: var(--ap-heading-display, 24px);
	font-weight: 800;
	line-height: 1.15;
}

.afterpoddy-discover-editorial__desc {
	margin: 10px 0 16px;
	font-size: var(--ap-text-sm, 13px);
	color: var(--ap-disc-muted);
}

.afterpoddy-discover-section {
	margin-bottom: 32px;
}

.afterpoddy-discover-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.afterpoddy-discover-section__title {
	margin: 0;
	font-size: var(--ap-heading-section, 18px);
	font-weight: 700;
}

.afterpoddy-discover-section__sub {
	margin: 4px 0 0;
	font-size: var(--ap-text-sm, 13px);
	color: var(--ap-disc-muted);
}

.afterpoddy-discover-podcast-list {
	display: flex;
	gap: 14px;
	overflow-x: auto;
	padding-bottom: 6px;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	margin: 0;
}

.afterpoddy-discover-podcast-list::-webkit-scrollbar {
	display: none;
}

.afterpoddy-discover-podcast-list.is-expanded {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	overflow: visible;
}

.afterpoddy-discover-podcast {
	flex: 0 0 calc((100% - 28px) / 2.2);
	max-width: 180px;
	scroll-snap-align: start;
}

.afterpoddy-discover-podcast-list.is-expanded .afterpoddy-discover-podcast {
	flex: none;
	max-width: none;
}

.afterpoddy-discover-podcast__image {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 1;
	background: var(--ap-disc-surface2);
}

.afterpoddy-discover-podcast__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.afterpoddy-discover-podcast__follow {
	position: absolute;
	right: 8px;
	bottom: 8px;
	z-index: 2;
}

body.afterpoddy-discover-screen a.afterpoddy-pill.afterpoddy-pill--discover-cover,
body.afterpoddy-discover-screen a.afterpoddy-pill.afterpoddy-pill--discover-cover:visited,
body.afterpoddy-discover-screen button.afterpoddy-pill.afterpoddy-pill--discover-cover,
body.afterpoddy-discover-screen span.afterpoddy-pill.afterpoddy-pill--discover-cover {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	min-width: 40px;
	height: 40px;
	min-height: 40px;
	padding: 0;
	border-radius: 999px;
	background-image: none !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
	cursor: pointer;
	touch-action: manipulation;
	font-family: inherit;
	line-height: 1;
}

.afterpoddy-discover-follow__glyph,
.afterpoddy-discover-follow svg,
.afterpoddy-discover-follow i {
	pointer-events: none;
}

.afterpoddy-discover-follow__glyph {
	font-size: 18px;
	line-height: 1;
	width: 1em;
	height: 1em;
}

.afterpoddy-pill--discover-cover.afterpoddy-pill--following [data-ap-icon="off"],
.afterpoddy-pill--discover-cover.afterpoddy-pill--following .fa-microphone-circle-plus,
.afterpoddy-pill--discover-cover:not(.afterpoddy-pill--following) [data-ap-icon="on"],
.afterpoddy-pill--discover-cover:not(.afterpoddy-pill--following) .fa-microphone-circle-xmark {
	display: none !important;
}

.afterpoddy-pill--discover-cover.afterpoddy-pill--following [data-ap-icon="on"],
.afterpoddy-pill--discover-cover.afterpoddy-pill--following .fa-microphone-circle-xmark,
.afterpoddy-pill--discover-cover:not(.afterpoddy-pill--following) [data-ap-icon="off"],
.afterpoddy-pill--discover-cover:not(.afterpoddy-pill--following) .fa-microphone-circle-plus {
	display: inline-block !important;
}

body.afterpoddy-discover-screen a.afterpoddy-pill.afterpoddy-pill--discover-cover:not(.afterpoddy-pill--following),
body.afterpoddy-discover-screen a.afterpoddy-pill.afterpoddy-pill--discover-cover:not(.afterpoddy-pill--following):visited,
body.afterpoddy-discover-screen button.afterpoddy-pill.afterpoddy-pill--discover-cover:not(.afterpoddy-pill--following) {
	background: rgba(30, 215, 96, 0.78) !important;
	background-color: rgba(30, 215, 96, 0.78) !important;
	border: 0 !important;
	color: var(--ap-disc-green-deep) !important;
}

body.afterpoddy-discover-screen a.afterpoddy-pill.afterpoddy-pill--discover-cover:not(.afterpoddy-pill--following):hover,
body.afterpoddy-discover-screen a.afterpoddy-pill.afterpoddy-pill--discover-cover:not(.afterpoddy-pill--following):focus-visible,
body.afterpoddy-discover-screen button.afterpoddy-pill.afterpoddy-pill--discover-cover:not(.afterpoddy-pill--following):hover,
body.afterpoddy-discover-screen button.afterpoddy-pill.afterpoddy-pill--discover-cover:not(.afterpoddy-pill--following):focus-visible {
	background: rgba(59, 228, 119, 0.9) !important;
	background-color: rgba(59, 228, 119, 0.9) !important;
	border: 0 !important;
	color: var(--ap-disc-green-deep) !important;
}

body.afterpoddy-discover-screen span.afterpoddy-pill.afterpoddy-pill--discover-cover.afterpoddy-pill--following,
body.afterpoddy-discover-screen a.afterpoddy-pill.afterpoddy-pill--discover-cover.afterpoddy-pill--following,
body.afterpoddy-discover-screen button.afterpoddy-pill.afterpoddy-pill--discover-cover.afterpoddy-pill--following {
	background: rgba(30, 215, 96, 0.78) !important;
	background-color: rgba(30, 215, 96, 0.78) !important;
	border: 0 !important;
	color: var(--ap-disc-green-deep) !important;
}

body.afterpoddy-discover-screen a.afterpoddy-pill.afterpoddy-pill--discover-cover.afterpoddy-pill--following:hover,
body.afterpoddy-discover-screen a.afterpoddy-pill.afterpoddy-pill--discover-cover.afterpoddy-pill--following:focus-visible,
body.afterpoddy-discover-screen button.afterpoddy-pill.afterpoddy-pill--discover-cover.afterpoddy-pill--following:hover,
body.afterpoddy-discover-screen button.afterpoddy-pill.afterpoddy-pill--discover-cover.afterpoddy-pill--following:focus-visible {
	background: rgba(59, 228, 119, 0.9) !important;
	background-color: rgba(59, 228, 119, 0.9) !important;
	border: 0 !important;
	color: var(--ap-disc-green-deep) !important;
}

.afterpoddy-discover-podcast__title {
	display: block;
	margin: 10px 0 0;
	font-size: var(--ap-text-sm, 13px);
	font-weight: 700;
	line-height: 1.25;
	color: var(--ap-disc-text);
	text-decoration: none;
}

.afterpoddy-discover-podcast__meta {
	margin: 4px 0 0;
	font-size: var(--ap-text-xs, 11px);
	color: var(--ap-disc-muted);
	display: flex;
	align-items: center;
	gap: 6px;
}

.afterpoddy-discover-podcast__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ap-disc-green);
}

.afterpoddy-discover__feed-layout {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 24px;
	align-items: start;
}

.afterpoddy-discover__feed-layout.is-search-only {
	grid-template-columns: 1fr;
}

.afterpoddy-discover-thread-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.afterpoddy-discover-thread {
	display: grid;
	grid-template-columns: 40px 1fr auto;
	gap: 12px;
	padding: 14px;
	border-radius: 14px;
	border: 1px solid var(--ap-disc-line);
	background: var(--ap-disc-surface);
}

.afterpoddy-discover-thread__cover img {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	object-fit: cover;
	display: block;
}

.afterpoddy-discover-thread__show {
	margin: 0;
	font-size: var(--ap-text-xs, 11px);
	line-height: 1.35;
	color: var(--ap-disc-faint);
}

.afterpoddy-discover-thread__episode {
	margin: 2px 0 0;
	font-size: var(--ap-text-xs, 11px);
	line-height: 1.35;
	color: var(--ap-disc-muted);
}

body.afterpoddy-discover-screen .afterpoddy-discover .afterpoddy-discover-thread__episode {
	margin: 2px 0 0 !important;
	line-height: 1.35 !important;
}

.afterpoddy-discover-thread__title {
	margin: 6px 0 0;
	font-size: var(--ap-text-md, 15px);
	font-weight: 700;
	line-height: 1.3;
}

.afterpoddy-discover-thread__title a,
.afterpoddy-discover-thread__title a:visited {
	color: var(--ap-disc-text);
	text-decoration: none;
}

.afterpoddy-discover-thread__excerpt {
	margin: 6px 0 0;
	font-size: var(--ap-meta-size, 12px);
	color: var(--ap-disc-muted);
	line-height: 1.45;
}

.afterpoddy-discover-thread__meta {
	margin: 8px 0 0;
	font-size: var(--ap-text-xs, 11px);
	color: var(--ap-disc-faint);
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.afterpoddy-discover-tag {
	display: inline-block;
	margin: 6px 6px 0 0;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: var(--ap-text-2xs, 10px);
	background: var(--ap-disc-surface2);
	color: var(--ap-disc-muted);
}

/* Thread save — mockup .icon-btn.save-btn; icon via Elementor FA (font or e-font-icon-svg). */
body.afterpoddy-discover-screen .afterpoddy-discover a.afterpoddy-discover-save,
body.afterpoddy-discover-screen .afterpoddy-discover a.afterpoddy-discover-save:visited {
	color: var(--ap-disc-save-icon);
	text-decoration: none;
}

body.afterpoddy-discover-screen .afterpoddy-discover a.afterpoddy-discover-save:hover,
body.afterpoddy-discover-screen .afterpoddy-discover button.afterpoddy-discover-save:hover,
body.afterpoddy-discover-screen .afterpoddy-discover button.afterpoddy-discover-save:focus-visible {
	background: transparent !important;
	color: var(--ap-disc-muted);
}

body.afterpoddy-discover-screen .afterpoddy-discover a.afterpoddy-discover-save.is-saved,
body.afterpoddy-discover-screen .afterpoddy-discover a.afterpoddy-discover-save.is-saved:visited,
body.afterpoddy-discover-screen .afterpoddy-discover a.afterpoddy-discover-save[aria-pressed="true"] {
	color: var(--ap-disc-green);
}

.afterpoddy-discover-save,
button.afterpoddy-discover-save {
	position: relative;
	align-self: start;
	flex-shrink: 0;
	width: 34px;
	min-width: 34px;
	height: 44px;
	margin-top: -5px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	padding: 0;
	background: transparent;
	color: inherit;
	border-radius: 50%;
	line-height: 1;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: color 0.18s ease, transform 0.18s ease;
}

button.afterpoddy-discover-save.is-busy,
button.afterpoddy-discover-save:disabled {
	opacity: 0.65;
	cursor: wait;
}

.afterpoddy-discover-save:active {
	transform: scale(0.97);
}

.afterpoddy-discover-save:focus:not(:focus-visible) {
	outline: none;
}

.afterpoddy-discover-save:focus-visible {
	outline: 2px solid var(--ap-disc-green);
	outline-offset: 4px;
}

/* Elementor kit paints all <button> hovers green — icon toggles stay clear. */
body.elementor-kit-6.afterpoddy-discover-screen .afterpoddy-discover button.afterpoddy-discover-save,
body.elementor-kit-6.afterpoddy-discover-screen .afterpoddy-discover button.afterpoddy-discover-save:hover,
body.elementor-kit-6.afterpoddy-discover-screen .afterpoddy-discover button.afterpoddy-discover-save:focus,
body.elementor-kit-6.afterpoddy-discover-screen .afterpoddy-discover button.afterpoddy-discover-save:focus-visible,
body.elementor-kit-6.afterpoddy-discover-screen .afterpoddy-discover button.afterpoddy-discover-save:active {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	border: 0 !important;
}

.afterpoddy-discover-save__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	color: inherit;
	pointer-events: none;
}

.afterpoddy-discover-save__glyph,
.afterpoddy-discover-save__icon i,
.afterpoddy-discover-save__icon svg {
	display: block;
	width: 18px;
	height: 18px;
	font-size: var(--ap-text-xl, 18px);
	line-height: 1;
	color: inherit;
}

.afterpoddy-discover-save__icon svg,
.afterpoddy-discover-save__icon svg path {
	fill: currentColor;
}

.afterpoddy-discover-save.is-saved .afterpoddy-discover-save__icon svg.e-font-icon-svg,
.afterpoddy-discover-save[aria-pressed="true"] .afterpoddy-discover-save__icon svg.e-font-icon-svg {
	fill: rgba(30, 215, 96, 0.13);
}

.afterpoddy-discover-save.is-saved .afterpoddy-discover-save__icon svg path,
.afterpoddy-discover-save[aria-pressed="true"] .afterpoddy-discover-save__icon svg path {
	fill: currentColor;
}

.afterpoddy-discover-side__title {
	margin: 0 0 6px;
	font-size: var(--ap-text-xl, 18px);
	font-weight: 700;
}

.afterpoddy-discover-side__sub {
	margin: 0 0 14px;
	font-size: var(--ap-text-sm, 13px);
	color: var(--ap-disc-muted);
}

.afterpoddy-discover-topic-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 12px 14px;
	margin-bottom: 8px;
	border-radius: 12px;
	border: 1px solid var(--ap-disc-line);
	background: var(--ap-disc-surface);
	color: var(--ap-disc-text);
	text-decoration: none;
	transition: background 0.18s ease;
}

.afterpoddy-discover-topic-row b {
	display: block;
	font-size: var(--ap-text-base, 14px);
}

.afterpoddy-discover-topic-row small {
	display: block;
	margin-top: 2px;
	font-size: var(--ap-text-xs, 11px);
	color: var(--ap-disc-muted);
	font-weight: 400;
}

.afterpoddy-discover-topic-row__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
	color: var(--ap-disc-muted);
	font-size: 18px;
	line-height: 1;
}

.afterpoddy-discover-topic-row__icon.svg-inline--fa,
.afterpoddy-discover-topic-row svg.afterpoddy-discover-topic-row__icon {
	width: 22px;
	height: 22px;
}

.afterpoddy-discover-topic-row:hover .afterpoddy-discover-topic-row__icon {
	color: var(--ap-disc-text);
}

.afterpoddy-discover-topic-row__label {
	flex: 1;
	min-width: 0;
}

.afterpoddy-discover-topic-row__arrow {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	margin-left: auto;
	color: var(--ap-disc-faint);
}

.afterpoddy-discover-topic-row__glyph,
.afterpoddy-discover-topic-row__arrow svg,
.afterpoddy-discover-topic-row__arrow i {
	display: block;
	width: 16px;
	height: 16px;
	font-size: var(--ap-meta-size, 12px);
	line-height: 1;
	color: inherit;
}

.afterpoddy-discover-topic-row__arrow svg,
.afterpoddy-discover-topic-row__arrow svg path {
	fill: currentColor;
}

.afterpoddy-discover-topic-row:hover .afterpoddy-discover-topic-row__arrow {
	color: var(--ap-disc-muted);
}

.afterpoddy-discover-start {
	margin-top: 20px;
	padding: 20px;
	border-radius: var(--ap-disc-radius);
	border: 1px solid var(--ap-disc-line);
	background: var(--ap-disc-surface2);
}

.afterpoddy-discover-start__title {
	margin: 0 0 8px;
	font-size: var(--ap-text-xl, 18px);
	font-weight: 800;
	line-height: 1.2;
}

.afterpoddy-discover-start__sub {
	margin: 0 0 14px;
	font-size: var(--ap-text-sm, 13px);
	color: var(--ap-disc-muted);
}

.afterpoddy-discover-empty {
	font-size: var(--ap-text-base, 14px);
	color: var(--ap-disc-muted);
	margin: 0;
}

/* Tablet: keep the two-column discover layout, tighten type, show more show cards. */
@media (max-width: 1150px) {
	.afterpoddy-discover__h1 {
		font-size: var(--ap-heading-page, 22px);
	}

	.afterpoddy-discover__hero {
		grid-template-columns: 1.5fr 1fr;
		gap: 15px;
	}

	.afterpoddy-discover-feature {
		min-height: 290px;
	}

	.afterpoddy-discover-feature__title {
		font-size: var(--ap-heading-section, 18px);
	}

	.afterpoddy-discover__feed-layout {
		grid-template-columns: 1.4fr 1fr;
		gap: 20px;
	}

	.afterpoddy-discover-podcast {
		flex: 0 0 calc((100% - 60px) / 4.5);
		max-width: none;
	}

	.afterpoddy-discover-podcast-list.is-expanded {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* Small tablet: sidebar is gone, content is full width, columns stay side by side. */
@media (max-width: 850px) {
	.afterpoddy-discover__hero {
		grid-template-columns: 1.5fr 1fr;
	}

	.afterpoddy-discover__feed-layout {
		grid-template-columns: 1.35fr 1fr;
	}
}

@media (max-width: 600px) {
	.afterpoddy-discover__feed-layout {
		grid-template-columns: 1fr;
	}

	.afterpoddy-discover-side {
		order: -1;
	}

	.afterpoddy-discover__intro {
		display: block;
	}

	.afterpoddy-discover__search {
		max-width: none;
		margin-top: 18px;
	}

	.afterpoddy-discover__hero {
		display: block;
	}

	.afterpoddy-discover-feature__art-wrap {
		max-width: min(58%, 100%);
	}

	.afterpoddy-discover-editorial {
		margin-top: 14px;
		min-height: 200px;
	}

	.afterpoddy-discover-podcast {
		flex: 0 0 calc((100% - 14px) / 2.2);
		max-width: 180px;
	}

	.afterpoddy-discover-podcast-list.is-expanded {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.afterpoddy-discover-save {
		width: 30px;
		min-width: 30px;
		height: 40px;
	}

	.afterpoddy-discover-save__icon,
	.afterpoddy-discover-save__glyph,
	.afterpoddy-discover-save__icon i,
	.afterpoddy-discover-save__icon svg {
		width: 17px;
		height: 17px;
		font-size: var(--ap-heading-card, 16px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.afterpoddy-discover-chip,
	.afterpoddy-discover-topic-row {
		transition: none;
	}

	.afterpoddy-discover__filters {
		scroll-behavior: auto;
	}

	.afterpoddy-discover__filters-nav {
		transition: none;
	}
}

.afterpoddy-discover-podcast__image img.ap-art--wide,
.afterpoddy-discover-podcast__image img.ap-art--tall,
.afterpoddy-discover-thread__cover img.ap-art--wide,
.afterpoddy-discover-thread__cover img.ap-art--tall,
body.afterpoddy-discover-screen .afterpoddy-discover .afterpoddy-discover-feature__art.ap-art--wide,
body.afterpoddy-discover-screen .afterpoddy-discover .afterpoddy-discover-feature__art.ap-art--tall {
	object-fit: contain;
	background: #121212;
}

/* Phone/tablet: same bar as Home — logo, search, activity, account. */
@media (max-width: 980px) {
	body.afterpoddy-discover-screen .ap-chrome {
		display: none !important;
	}

	body.afterpoddy-discover-screen.ap-has-chrome {
		padding-top: calc(64px + env(safe-area-inset-top, 0px)) !important;
	}

	body.afterpoddy-discover-screen .aph-topbar--global {
		display: flex;
		position: fixed;
		z-index: 100070;
		top: 0;
		right: 0;
		left: 0;
		height: calc(64px + env(safe-area-inset-top, 0px));
		margin: 0;
		padding: env(safe-area-inset-top, 0px) 19px 0;
		background: #0d100fea;
	}

	body.afterpoddy-discover-screen .aph-topbar__title {
		display: none;
	}

	body.afterpoddy-discover-screen .aph-topbar--global .aph-search {
		position: relative;
		width: 44px;
		height: 44px;
		padding: 0;
		justify-content: center;
		border: 0;
		background: none;
	}

	body.afterpoddy-discover-screen .aph-topbar--global .aph-search input {
		position: absolute;
		top: calc(64px + env(safe-area-inset-top, 0px));
		right: 16px;
		left: 16px;
		display: none;
		width: calc(100vw - 32px);
		height: 44px;
		padding: 0 13px;
		border: 1px solid var(--aph-line, rgba(255, 255, 255, 0.08));
		border-radius: 10px;
		background: #1b241e;
	}

	body.afterpoddy-discover-screen .aph-topbar--global .aph-search:focus-within input {
		display: block;
	}
}
