:root {
  color-scheme: light;
  --page-bg: #f5f5f7;
  --surface: #ffffff;
  --accent: #62acdc;
  --accent-soft: rgba(98, 172, 220, 0.12);
  --accent-soft-stronger: rgba(98, 172, 220, 0.2);
  --text-main: #111827;
  --text-muted: #6b7280;
  --border-subtle: #e5e7eb;
  --radius-lg: 18px;
  --radius-full: 999px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: var(--page-bg);
  color: var(--text-main);
}

/* äußerer weißer Kasten -------------------------------- */

.outer-shell {
  max-width: 880px;
  margin: 40px auto 48px;
  background: var(--surface);
  border-radius: 28px;
  border: 1px solid var(--border-subtle);
  padding: 32px 28px 40px;
}

.page {
  width: 100%;
}

/* HEADER ------------------------------------------------ */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo-img {
  height: 96px;
  width: auto;
  display: block;
}

.brand-text-main {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-main);
}

.brand-text-sub {
  margin-top: 4px;
  font-size: 16px;
  color: var(--text-muted);
}

/* INTRO ------------------------------------------------ */

.hero {
  margin-bottom: 32px;
}

.hero-subtitle {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 720px;
}

/* EPISODE SECTION (Apple-Style Shell) ------------------- */

.episodes-shell {
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.episodes-header-row {
  padding: 14px 20px 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.episodes-heading {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* EPISODE ROWS ----------------------------------------- */

.episodes {
  display: flex;
  flex-direction: column;
}

.episode-row {
  padding: 16px 20px 18px;
  border-top: 1px solid var(--border-subtle);
}

.episode-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.episode-meta-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.episode-label {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.episode-title {
  font-size: 19px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.episode-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.episode-tag {
  padding: 2px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: #f9fafb;
}

.episode-pill {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--accent-soft-stronger);
  color: var(--accent);
  background: #f9fafb;
}

/* DESCRIPTION / DETAILS -------------------------------- */

.episode-details {
  margin-bottom: 10px;
  border-radius: 10px;
  background: #fafafa;
  border: 1px solid #e5e7eb;
  padding: 8px 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.episode-details summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.episode-details summary::-webkit-details-marker {
  display: none;
}

.episode-details-icon {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  border: 1px solid #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #6b7280;
}

.episode-details-content {
  margin-top: 8px;
  line-height: 1.7;
}

.episode-details[open] .episode-details-icon {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* PLAYER ------------------------------------------------ */

.episode-player-row {
  margin-top: 4px;
}

.podcast-player {
  font-family: inherit;
  background: #f9fafb;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  padding: 12px 12px 10px;
  max-width: 100%;
}

.podcast-player .player-header {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.podcast-player .player-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.podcast-player .player-main {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.play-button {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.08s ease;
}

.play-button:active {
  transform: scale(0.97);
}

.progress-container {
  flex: 1;
}

.progress-bar {
  position: relative;
  width: 100%;
  height: 8px; /* vorher 4px -> jetzt dicker */
  border-radius: var(--radius-full);
  background: #e5e7eb;
  cursor: pointer;
  overflow: hidden;
}

.progress-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--accent);
  border-radius: inherit;
  transition: width 0.05s linear;
}

.time-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-top: 4px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.bottom-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.speed-controls {
  display: flex;
  gap: 4px;
  padding: 2px;
  border-radius: var(--radius-full);
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.speed-button {
  border: none;
  background: transparent;
  border-radius: var(--radius-full);
  padding: 2px 9px;
  font-size: 12px;
  cursor: pointer;
  color: var(--text-muted);
}

.speed-button.active {
  background: var(--accent-soft);
  color: var(--accent);
}

/* RESPONSIVE ----------------------------------------- */

@media (max-width: 720px) {
  .outer-shell {
    margin: 24px 12px 32px;
    padding: 24px 18px 32px;
    border-radius: 20px;
  }

  .site-header {
    align-items: flex-start;
  }

  .brand-logo-img {
    height: 80px;
  }

  .brand-text-main {
    font-size: 22px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .episode-row {
    padding: 14px 16px 16px;
  }
}
