:root {
  color-scheme: dark;
  --bg: #000000;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --text: #f4f4f4;
  --muted: rgba(244, 244, 244, 0.74);
  --line: rgba(255, 255, 255, 0.1);
  --accent: #fb9301;
  --accent-2: #ffc655;
  --accent-dark: #843d00;
  --episode-gap: 14px;
  --button-text: #130900;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #000;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
}

a {
  color: inherit;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.floating-header {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  z-index: 100;
  width: min(900px, calc(100vw - 24px));
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 198, 85, 0.18);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.82);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -18px);
  transition: opacity .22s ease, transform .22s ease;
  backdrop-filter: blur(16px);
}

.floating-header.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.floating-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  overflow: visible;
  border-radius: 8px;
}

.floating-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.floating-actions a {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 198, 85, 0.24);
  border-radius: 50%;
  background: var(--accent-2);
  color: var(--button-text);
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}

.floating-actions a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.floating-actions svg,
.floating-actions img {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
  fill: currentColor;
}

.icon--ivoox {
  transform: scale(0.82);
  transform-origin: center;
}

.icon--instagram {
  transform: scale(0.96);
  transform-origin: center;
}

.icon--mail {
  transform: scale(1.04);
  transform-origin: center;
}

.page-shell {
  width: min(940px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 36px 0 72px;
  display: grid;
  gap: 28px;
}

.hero-block,
.featured-block,
.episodes-section,
.site-footer {
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}

.hero-block {
  padding-top: 10px;
}

.site-logo {
  margin: 0;
  width: min(320px, 78vw);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.site-logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.podcast-description {
  width: min(70ch, 100%);
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.75;
  color: var(--muted);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.social-links a,
.toggle-button,
.platform-link {
  border: 1px solid rgba(255, 198, 85, 0.24);
  background: var(--accent-2);
  color: var(--button-text);
  text-decoration: none;
  box-shadow: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.social-links a,
.toggle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
}

.social-links a {
  gap: 10px;
  width: auto;
  min-width: 0;
  height: 50px;
  padding: 0 15px;
}

.social-links span {
  font-size: 0.95rem;
}

.social-links svg,
.footer-social svg,
.social-links img,
.footer-social img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
  fill: currentColor;
}

.social-links a:hover,
.toggle-button:hover,
.platform-link:hover {
  border-color: rgba(255, 198, 85, 0.5);
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.featured-block,
.episodes-section,
.site-footer {
  width: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.035);
}

.section-label {
  margin: 0;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: rgba(244, 244, 244, 0.58);
}

.featured-title,
.episodes-section h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.05;
}

.featured-player {
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}

.featured-player iframe {
  display: block;
  width: 100%;
  height: 152px;
  border: 0;
}

.listen-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.featured-listen-stack {
  display: grid;
  justify-items: center;
  gap: 9px;
  width: 100%;
}

.featured-listen-stack > span {
  color: rgba(244, 244, 244, 0.62);
  font-size: 0.95rem;
  font-weight: 700;
}

.featured-listen-buttons {
  display: flex;
  justify-content: center;
  gap: 9px;
  width: 100%;
}

.featured-listen-buttons .platform-link {
  min-height: 40px;
  padding: 0 13px;
  font-size: 0.96rem;
  white-space: nowrap;
}

.platform-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 1.02rem;
  font-weight: 800;
}

.brand-icon {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  flex: 0 0 auto;
}

.brand-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: currentColor;
}

.section-head {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.episodes-list {
  width: 100%;
  display: grid;
  gap: var(--episode-gap);
  position: relative;
  transition: max-height .45s ease;
}

.episodes-list--collapsed {
  max-height: var(--episodes-preview-height, 1500px);
  overflow: hidden;
}

.episodes-list--collapsed::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 140px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), #000 88%);
}

.episode {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
}

.episode-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
}

.tag--latest {
  color: #fff;
  background: var(--accent);
}

.tag--date {
  color: var(--accent-2);
  background: rgba(255, 198, 85, 0.12);
}

.episode h3 {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.25;
}

.episode h3 a {
  color: var(--text);
  text-decoration: none;
}

.episode h3 a:hover {
  color: var(--accent-2);
}

.episode p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.episode-listen {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  padding-top: 2px;
}

.episode-listen > span {
  color: rgba(244, 244, 244, 0.56);
  font-size: 0.9rem;
}

.listen-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.center-actions {
  display: flex;
  justify-content: center;
}

.toggle-button {
  cursor: pointer;
}

.episodes-list--expanded {
  max-height: 10000px;
  overflow: visible;
}

.episodes-list--expanded .episode {
  height: auto;
}

.episodes-list--expanded::after {
  display: none;
}

.site-footer {
  gap: 26px;
  padding-top: 38px;
  padding-bottom: 38px;
}

.footer-contact {
  display: grid;
  gap: 12px;
  justify-items: center;
  width: min(560px, 100%);
}

.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: clamp(1rem, 2vw, 1.18rem);
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(255, 198, 85, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.mail-icon {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #111;
}

.mail-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 198, 85, 0.22);
  background: var(--accent-2);
  color: #111;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.footer-social a:hover {
  transform: translateY(-1px);
  background: var(--accent);
  color: #fff;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 20px;
  color: var(--muted);
}

.footer-meta p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--accent-2);
  text-decoration: none;
}

.footer-links a:hover,
.footer-mail:hover {
  color: var(--accent-2);
}

.legal-page {
  padding-top: 48px;
}

.legal-content {
  width: min(820px, 100%);
  display: grid;
  gap: 16px;
  text-align: left;
}

.legal-content h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
}

.legal-content h2 {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  line-height: 1.7;
}

.legal-content p,
.legal-content ul {
  margin: 0;
}

.legal-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.legal-card a {
  color: var(--accent-2);
  text-decoration: none;
}

.legal-card a:hover {
  color: var(--accent);
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  width: min(520px, calc(100vw - 36px));
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 198, 85, 0.24);
  border-radius: 22px;
  background: rgba(10, 10, 10, 0.96);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .22s ease, transform .22s ease;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner__content,
.cookie-preferences {
  display: grid;
  gap: 10px;
}

.cookie-banner__title {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 900;
}

.cookie-banner__icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--accent-2);
  fill: currentColor;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.cookie-banner__links,
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-banner__links a {
  color: var(--accent-2);
  font-size: 0.86rem;
  text-decoration: none;
}

.cookie-banner__links a:hover {
  color: var(--accent);
}

.cookie-button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255, 198, 85, 0.28);
  border-radius: 999px;
  background: var(--accent-2);
  color: var(--button-text);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
}

.cookie-button:hover {
  background: var(--accent);
  color: #fff;
}

.cookie-button--secondary,
.cookie-button--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.cookie-preferences {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.cookie-preferences[hidden] {
  display: none;
}

.cookie-preferences label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.cookie-preferences input {
  margin-top: 4px;
  accent-color: var(--accent);
}

@media (max-width: 700px) {
  .page-shell {
    width: min(100vw - 22px, 940px);
    padding-top: 18px;
    gap: 18px;
  }

  .featured-block,
  .episodes-section,
  .site-footer {
    padding: 20px;
    border-radius: 22px;
  }

  .site-logo {
    width: min(260px, 78vw);
  }

  .episode {
    padding: 18px;
  }

  .episodes-list--collapsed {
    max-height: var(--episodes-preview-height, 1700px);
  }

  .featured-player iframe {
    height: 152px;
  }

  .footer-social a {
    width: 52px;
    height: 52px;
  }

  .social-links a {
    height: 46px;
    padding: 0 12px;
  }

  .social-links svg,
  .social-links img {
    width: 21px;
    height: 21px;
  }

  .floating-header {
    top: max(8px, env(safe-area-inset-top));
    min-height: 56px;
    padding: 7px 9px;
    border-radius: 14px;
  }

  .floating-logo {
    width: 42px;
    height: 42px;
  }

  .floating-actions {
    gap: 6px;
  }

  .floating-actions a {
    width: 38px;
    height: 38px;
  }

  .featured-listen-buttons {
    gap: 7px;
  }

  .featured-listen-buttons .platform-link {
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.92rem;
  }

  .cookie-banner {
    right: 11px;
    bottom: 11px;
    width: calc(100vw - 22px);
  }
}
