/* Episoden- und Gast-Seiten. Farben aus den Theme-Presets; Flächen und Linien
   leiten sich von currentColor ab und funktionieren so auf hellen wie dunklen Themes. */

.hdep, .hdguest, .hdarch {
	--hdep-mint: var(--wp--preset--color--mint, #06c39d);
	--hdep-blue: var(--wp--preset--color--ocean, #135882);
	--hdep-surface: color-mix(in srgb, currentColor 6%, transparent);
	--hdep-line: color-mix(in srgb, currentColor 16%, transparent);
	--hdep-muted: color-mix(in srgb, currentColor 70%, transparent);
}

.hdep__crumbs { margin: 0 0 1.5rem; font-size: .9rem; }
.hdep__crumbs a { color: inherit; opacity: .8; }
.hdep__kicker {
	margin: 0 0 .5rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	color: var(--hdep-muted);
}
.hdep__title { margin: 0 0 .75rem; line-height: 1.1; }
.hdep__guests { margin: 0 0 1.5rem; font-size: 1.15rem; }
.hdep__guests a { color: inherit; text-decoration-color: var(--hdep-mint); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.hdep__h2 { margin: 2.5rem 0 .5rem; }
.hdep__note { margin: 0 0 1.25rem; font-size: .9rem; color: var(--hdep-muted); }

/* Player */
.hdep__player {
	margin: 0 0 2rem; padding: 1rem; border-radius: 16px;
	background: var(--hdep-surface); border: 1px solid var(--hdep-line);
}
.hdep__player.is-sticky { position: sticky; top: 72px; z-index: 5; backdrop-filter: blur(12px); }
.hdep__audio { display: block; width: 100%; }
.hdep__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .75rem 0 0; }
.hdep__btn {
	display: inline-block; padding: .45rem 1rem; border-radius: 999px; font-size: .9rem; font-weight: 600;
	color: inherit; text-decoration: none; border: 1.5px solid var(--hdep-line);
}
.hdep__btn:hover, .hdep__btn:focus-visible { border-color: var(--hdep-mint); }
.hdep__btn--primary { border-color: var(--hdep-mint); }

/* Beschreibung + Kapitelmarken */
.hdep__desc { margin: 0 0 1rem; }
.hdep__desc p { margin: 0 0 .75rem; }
.hdep__chapters { list-style: none; margin: .5rem 0 1rem; padding: 0; }
.hdep__chapters li { display: flex; gap: .75rem; padding: .3rem 0; border-top: 1px solid var(--hdep-line); }
.hdep__jump, .hdtr__ts {
	flex: none; font: inherit; font-variant-numeric: tabular-nums; font-size: .85rem; font-weight: 600;
	color: inherit; background: none; border: 0; padding: 0; cursor: pointer;
	text-decoration: underline; text-decoration-color: var(--hdep-mint); text-underline-offset: 3px;
}
.hdep__jump:hover, .hdtr__ts:hover { text-decoration-thickness: 2px; }

/* Transkript */
.hdtr__block { padding: .75rem 0 .75rem 1rem; border-left: 3px solid var(--hdep-line); margin-bottom: .25rem; }
.hdtr__block--host { border-left-color: var(--hdep-blue); }
.hdtr__block--guest { border-left-color: var(--hdep-mint); }
.hdtr__block--intro { opacity: .75; }
.hdtr__block.is-playing { background: var(--hdep-surface); }
.hdtr__block.is-target { background: var(--hdep-surface); box-shadow: inset 3px 0 0 #06d6a0; scroll-margin-top: 140px; } /* Fundstelle aus der Suche */
.hdtr__head { margin: 0 0 .25rem; font-size: .9rem; }
.hdtr__head .hdtr__ts { margin-right: .5rem; }
.hdtr__text { margin: 0; line-height: 1.7; }
.hdtr mark, .hdhl mark { background: var(--hdep-mint); color: #091e2e; border-radius: 3px; padding: 0 2px; }
.hdtr mark.is-current { box-shadow: 0 0 0 3px #ff006e; scroll-margin-top: 120px; }

/* Transkript-Optik wie in HaKI (Einstellung „Transkript“): Sprecher in Versalien, Zeitmarke
   als Chip dahinter, Linie Mint für Gavin, Pink für Gäste, Intro pink hinterlegt.
   Pink ist nur Linie/Fläche, nie Schriftfarbe. */
.hdtr-style--haki .hdtr { font-size: 1.02rem; }
.hdtr-style--haki .hdtr__block { margin-bottom: 1.4rem; padding: 0 0 0 1rem; border-left: 3px solid var(--hdep-line); }
.hdtr-style--haki .hdtr__block--host { border-left-color: #06d6a0; }
.hdtr-style--haki .hdtr__block--guest { border-left-color: #ff006e; }
.hdtr-style--haki .hdtr__block--intro {
	opacity: 1; border-left-color: #ff006e; background: rgba(255, 0, 110, .12);
	border-radius: 0 12px 12px 0; padding: .75rem 1rem;
}
.hdtr-style--haki .hdtr__block.is-playing { background: var(--hdep-surface); border-radius: 0 12px 12px 0; }
.hdtr-style--haki .hdtr__head { display: flex; align-items: center; gap: .5rem; margin: 0 0 .25rem; }
.hdtr-style--haki .hdtr__speaker {
	order: 0; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
	color: var(--hdep-muted);
}
.hdtr-style--haki .hdtr__block--host .hdtr__speaker,
.hdtr-style--haki .hdtr__block--guest .hdtr__speaker,
.hdtr-style--haki .hdtr__block--intro .hdtr__speaker { color: inherit; }
.hdtr-style--haki .hdtr__head .hdtr__ts {
	order: 1; margin: 0; padding: 2px 6px; border-radius: 4px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .68rem; font-weight: 400;
	text-decoration: none; background: color-mix(in srgb, currentColor 10%, transparent); color: var(--hdep-muted);
}
.hdtr-style--haki .hdtr__head .hdtr__ts:hover, .hdtr-style--haki .hdtr__head .hdtr__ts:focus-visible { background: #06d6a0; color: #091e2e; }
.hdtr-style--haki .hdtr__text { line-height: 1.75; }

/* Fundstellen (?highlight=…) */
.hdhl { margin: 0 0 1.5rem; padding: 1rem; border-radius: 12px; background: var(--hdep-surface); border: 1px solid var(--hdep-line); }
.hdhl__title { margin: 0 0 .5rem; font-weight: 700; }
.hdhl__item[hidden] { display: none; }
.hdhl__more {
	display: inline-block; margin: .6rem 0 0; padding: .35rem .9rem; border-radius: 999px; cursor: pointer;
	border: 1px solid var(--hdep-line); background: none; color: inherit; font: inherit; font-size: .85rem; font-weight: 700;
}
.hdhl__more:hover, .hdhl__more:focus-visible { border-color: var(--hdep-mint); }
.hdhl__item { display: block; padding: .35rem 0; border-top: 1px solid var(--hdep-line); font-size: .9rem; color: inherit; text-decoration: none; }
.hdhl__nav {
	position: fixed; right: 20px; bottom: 90px; z-index: 99980; display: flex; align-items: center; gap: 8px;
	padding: 6px 8px 6px 14px; border-radius: 999px; background: #0b2638; color: #fff; font-size: .85rem;
	box-shadow: 0 6px 20px rgba(0,0,0,.3);
}
.hdhl__nav button {
	width: 30px; height: 30px; border: 0; border-radius: 50%; cursor: pointer;
	background: var(--hdep-mint, #06c39d); color: #091e2e; font-weight: 700;
}

/* Weiter-Navigation */
.hdep__pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--hdep-line); }
.hdep__pager a { color: inherit; max-width: 48%; }
.hdep__pager-next { margin-left: auto; text-align: right; }

/* Listen (Übersicht, Gast-Seite) */
.hdarch__title { margin: 0 0 .5rem; }
.hdarch__lead { margin: 0 0 2rem; color: var(--hdep-muted); }
.hdarch__year { margin: 2rem 0 .5rem; }
.hdlist { list-style: none; margin: 0; padding: 0; }
.hdlist__item { border-top: 1px solid var(--hdep-line); }
.hdlist__link { display: flex; gap: 1rem; padding: .75rem 0; color: inherit; text-decoration: none; }
.hdlist__link:hover .hdlist__title { text-decoration: underline; text-decoration-color: var(--hdep-mint); }
.hdlist__num { flex: none; min-width: 3.2rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--hdep-muted); }
.hdlist__main { display: flex; flex-direction: column; gap: .15rem; }
.hdlist__title { font-weight: 600; }
.hdlist__meta { font-size: .85rem; color: var(--hdep-muted); }
.hdarch__pages { margin-top: 2rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.hdarch__pages .page-numbers { padding: .3rem .7rem; border-radius: 8px; color: inherit; }
.hdarch__pages .current { background: var(--hdep-surface); font-weight: 700; }

/* Gast-Seite */
.hdguest__head { display: flex; gap: 1.5rem; align-items: center; margin-bottom: 1.5rem; }
.hdguest__photo { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; flex: none; }
.hdguest__stats { margin: 0; color: var(--hdep-muted); }
.hdguest__content { margin-bottom: 1rem; }

/* Gäste-Übersicht */
.hdguests { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; }
.hdguests__card {
	display: flex; flex-direction: column; gap: .2rem; height: 100%; padding: 1rem; border-radius: 14px;
	background: var(--hdep-surface); border: 1px solid var(--hdep-line); color: inherit; text-decoration: none;
}
.hdguests__card:hover { border-color: var(--hdep-mint); }
.hdguests__photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin-bottom: .4rem; }
.hdguests__name { font-weight: 700; }
.hdguests__count { font-size: .85rem; color: var(--hdep-muted); }

@media (max-width: 600px) {
	.hdguest__head { flex-direction: column; align-items: flex-start; }
	.hdep__pager { flex-direction: column; }
	.hdep__pager a { max-width: none; }
	.hdep__player.is-sticky { top: 56px; }
}

/* Bild, Video und Plattform-Knöpfe wie auf der Landingpage (Styles aus landing.css) */
.hdep__head { display: flex; align-items: flex-start; gap: 1.25rem; }
.hdep__head-text { flex: 1; min-width: 0; }
.hdep__head .hdp__cover { width: 120px; height: 120px; }
@media (max-width: 600px) { .hdep__head .hdp__cover { width: 84px; height: 84px; } }
.hdp-embed {
	--hdp-mint: #06d6a0;
	--hdp-line: color-mix(in srgb, currentColor 16%, transparent);
	--hdp-muted: color-mix(in srgb, currentColor 78%, transparent);
	margin: 0 0 2rem;
}
/* Bild und Video so breit wie Player-Kasten und Knöpfe */
.hdp-embed .hdp__hero, .hdp-embed .hdp__yt { max-width: none; width: 100%; }
/* Knöpfe füllen immer die ganze Breite, auch wenn welche fehlen (Flex, gleiche Breiten): Apple/Spotify/
   YouTube als eine Reihe, alle übrigen als eine Reihe kleiner Kacheln (Icon über Name); auf schmalen
   Schirmen brechen die Kacheln zu je vier um. Ebenso die Knöpfe unter dem Player. */
.hdp-embed .hdc-grid, .hdep__cards.hdc-grid { display: flex; flex-wrap: wrap; }
.hdp-embed .hdc-grid > li, .hdep__cards.hdc-grid > li { flex: 1 1 220px; }
.hdp-embed .hdc-grid--2 { flex-wrap: nowrap; gap: .6rem; }
.hdp-embed .hdc-grid--2 > li { flex: 1 1 0; min-width: 0; }
.hdp-embed .hdc-grid--2 .hdc { flex-direction: column; justify-content: center; gap: .5rem; padding: .8rem .3rem; text-align: center; }
.hdp-embed .hdc-grid--2 .hdc__text { align-items: center; }
.hdp-embed .hdc-grid--2 .hdc__title { font-size: .82rem; line-height: 1.2; overflow-wrap: normal; }
.hdp-embed .hdc-grid--2 .hdc__arrow { display: none; }
@media (max-width: 760px) {
	.hdp-embed .hdc-grid--2 { flex-wrap: wrap; }
	.hdp-embed .hdc-grid--2 > li { flex: 1 1 calc(25% - .6rem); }
	.hdp-embed .hdc-grid--2 .hdc { padding: .7rem .15rem; }
	.hdp-embed .hdc-grid--2 .hdc__title { font-size: .72rem; }
}
.hdp-embed .hdp__platforms { display: flex; flex-wrap: wrap; }
.hdp-embed .hdp__platforms > li { flex: 1 1 150px; }

/* Kopf der Episodenseite: Gast direkt unter dem Titel, Bild oben rechts daneben (nicht bündig unten) */
.hdep .hdep__head:has(> .hdp__cover) { grid-template-rows: auto auto 1fr; margin-bottom: 1.5rem; }
.hdep .hdep__head:has(> .hdp__cover) .hdep__title { margin-bottom: .4rem; }
.hdep .hdep__head:has(> .hdp__cover) .hdep__guests { align-self: start; margin: 0; }
.hdep .hdep__head:has(> .hdp__cover) > .hdp__cover { align-self: start; }

/* Eingeklapptes Transkript: die ersten Abschnitte, nach unten ausgeblendet, darunter der Knopf */
/* Eingeklappte Abschnitte bleiben für Strg+F im Dokument, nehmen aber keinen Platz ein */
.hdep__transcript.is-collapsed .hdtr__block[hidden] { display: block; height: 0 !important; margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; overflow: hidden; content-visibility: hidden; }
.hdep__transcript.is-collapsed .hdtr {
	-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 160px), transparent);
	mask-image: linear-gradient(to bottom, #000 calc(100% - 160px), transparent);
}
.hdtr__more { display: flex; flex-direction: column; align-items: center; gap: .4rem; margin: -1rem 0 2rem; position: relative; }
.hdtr__more-btn {
	padding: .8rem 1.6rem; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--wp--preset--color--bright-teal, #06d6a0); color: #091e2e; font: inherit; font-weight: 800;
	box-shadow: 0 8px 24px rgba(9, 30, 46, .3); transition: transform .15s, filter .15s;
}
.hdtr__more-btn:hover, .hdtr__more-btn:focus-visible { transform: translateY(-1px); filter: brightness(1.08); }
.hdtr__more-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hdtr__more-info { font-size: .85rem; color: var(--hdep-muted); }
