/*
 * Radio Kinor — Ghost Theme Alpha
 *
 * Ported from the accepted Epic 2 Vanilla/Vite prototype (src/style.css)
 * at commit 3c55077, per docs/mapping/RK_E3_T3_CONTENT_AND_TEMPLATE_MAP_2026-07-10.md.
 *
 * Two deliberate differences from the prototype stylesheet:
 *   1. The Google Fonts @import is gone. Fonts are loaded via <link> in default.hbs,
 *      because a CSS @import must be the first rule and blocks rendering.
 *   2. A "Ghost integration layer" is appended at the end of this file for
 *      Koenig editor cards, Ghost custom-font variables, and post/page templates.
 *
 * Class names are unchanged so the accepted visual contract is preserved.
 */


:root {
  /* Colors - Dark Theme */
  --rk-bg: #0c1a24;
  --rk-bg-light: #163847;
  --rk-bg-card: rgba(255, 255, 255, 0.02);
  --rk-bg-card-hover: rgba(255, 255, 255, 0.06);
  --rk-accent: #37C4AA;
  --rk-accent-hover: #48d4bb;
  --rk-text: #ffffff;
  --rk-muted: rgba(255, 255, 255, 0.7);
  --rk-border: rgba(255, 255, 255, 0.08);
  --rk-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);

  /* Typography */
  --font-sans: "Montserrat", Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: "Cormorant Garamond", ui-serif, Georgia, Cambria, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--rk-bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  padding-bottom: clamp(56px, 6vw, 84px); /* Space for floating player */
  color: var(--rk-text);
  font-family: var(--font-sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  background: radial-gradient(circle at 50% -20%, var(--rk-bg-light) 0%, var(--rk-bg) 70%);
  overflow-x: hidden;
}


.font-display {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.02em;
}

button, a {
  font: inherit;
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--rk-accent);
  outline-offset: 4px;
}

.app-container {
  position: relative;
  isolation: isolate;
}

.main-content,
.site-footer {
  position: relative;
  z-index: 1;
}

/* Wave Background */
.wave-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.42;
  mix-blend-mode: screen;
}
.wave-svg {
  position: absolute;
  width: 300%;
  height: 120%;
  top: -10%;
  left: -20%;
  animation: slideWave 60s linear infinite;
}
@keyframes slideWave {
  0% { transform: translateX(0) scaleY(1); }
  50% { transform: translateX(-500px) scaleY(1.03); }
  100% { transform: translateX(-1000px) scaleY(1); }
}

/* Ambient Glow Orbs */
.glow-orb {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
  z-index: -2;
}
.glow-orb--left {
  top: -20%;
  left: -10%;
  width: 70vw;
  height: 70vw;
  background: rgba(55, 196, 170, 0.05);
  filter: blur(100px);
}
.glow-orb--right {
  top: 30%;
  right: -20%;
  width: 60vw;
  height: 60vw;
  background: rgba(34, 129, 118, 0.09);
  filter: blur(120px);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(12, 26, 36, 0.85);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--rk-border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 20px;
}
.brand-bars span {
  width: 3px;
  border-radius: 999px;
  transform-origin: bottom;
  transition: transform 0.3s ease;
}
.brand-bars span:nth-child(1) { height: 8px; background-color: var(--rk-accent); }
.brand-bars span:nth-child(2) { height: 12px; background-color: #8fe7d7; }
.brand-bars span:nth-child(3) { height: 20px; background-color: #bdf3ea; }
.brand-bars span:nth-child(4) { height: 10px; background-color: #ffffff; }
.brand-bars span:nth-child(5) { height: 16px; background-color: #ffffff; }

body.is-playing .brand-bars span {
  animation: eq 1s ease-in-out infinite alternate;
}
body.is-playing .brand-bars span:nth-child(1) { animation-delay: 0.1s; }
body.is-playing .brand-bars span:nth-child(2) { animation-delay: 0.3s; }
body.is-playing .brand-bars span:nth-child(3) { animation-delay: 0.5s; }
body.is-playing .brand-bars span:nth-child(4) { animation-delay: 0.2s; }
body.is-playing .brand-bars span:nth-child(5) { animation-delay: 0.4s; }

@keyframes eq {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

.brand-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1;
}

.main-nav {
  display: none;
}
@media (min-width: 768px) {
  .main-nav {
    display: flex;
    gap: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--rk-muted);
  }
  .main-nav a:hover {
    color: var(--rk-text);
  }
}

.header-actions-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 100;
}
.burger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--rk-text);
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
  transform-origin: left center;
}
.burger-btn[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(1px, -1px);
  background-color: var(--rk-accent);
}
.burger-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger-btn[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(1px, 1px);
  background-color: var(--rk-accent);
}
@media (min-width: 768px) {
  .burger-btn {
    display: none;
  }
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(12, 26, 36, 0.95);
  backdrop-filter: blur(24px);
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
  padding: 2rem;
}
.mobile-nav-links a {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 300;
  color: var(--rk-text);
  transition: color 0.3s ease, transform 0.3s ease, opacity 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
}
.mobile-nav-overlay.is-active .mobile-nav-links a {
  opacity: 1;
  transform: translateY(0);
}
.mobile-nav-overlay.is-active .mobile-nav-links a:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-overlay.is-active .mobile-nav-links a:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav-overlay.is-active .mobile-nav-links a:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav-overlay.is-active .mobile-nav-links a:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav-overlay.is-active .mobile-nav-links a:nth-child(5) { transition-delay: 0.3s; }

.mobile-nav-links a:hover {
  color: var(--rk-accent);
  transform: scale(1.05);
}

body.no-scroll {
  overflow: hidden;
}

.header-player {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  background: rgba(55, 196, 170, 0.15);
  border: 1px solid rgba(55, 196, 170, 0.3);
  color: var(--rk-text);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.header-player:hover {
  background: var(--rk-accent);
  color: var(--rk-bg);
}

/* Hero Section */
.hero-shell {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10rem 1.5rem 6rem;
}

.hero-brand {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--rk-accent);
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.hero-content h1.hero-slogan {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  margin: 0 auto 1.5rem;
  max-width: 800px;
  letter-spacing: -0.01em;
}

.hero-text {
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--rk-muted);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.button--primary {
  background: rgba(22, 56, 71, 0.4);
  border: 1px solid rgba(55, 196, 170, 0.3);
  color: var(--rk-text);
  box-shadow: 0 0 30px rgba(55, 196, 170, 0.08);
}
.button--primary:hover {
  background: rgba(55, 196, 170, 0.25);
  border-color: rgba(55, 196, 170, 0.5);
  box-shadow: 0 0 35px rgba(55, 196, 170, 0.15);
  color: var(--rk-text);
}

.button--accent {
  background: var(--rk-accent);
  color: var(--rk-bg);
  border: 1px solid var(--rk-accent);
}
.button--accent:hover {
  background: var(--rk-accent-hover);
}

.button--secondary {
  background: var(--rk-text);
  color: var(--rk-bg);
  border: 1px solid var(--rk-text);
}
.button--secondary:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
  color: var(--rk-bg);
}

.button--ghost {
  border: 1px solid var(--rk-border);
  background: transparent;
  color: var(--rk-text);
}
.button--ghost:hover {
  background: var(--rk-bg-card-hover);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.hero-pills span {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--rk-muted);
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Content Wrapper & Sections */
.content-wrapper {
  background: linear-gradient(
    180deg,
    rgba(22, 56, 71, 0.32) 0%,
    rgba(12, 26, 36, 0.52) 34%,
    rgba(12, 26, 36, 0.72) 100%
  );
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: clamp(5rem, 9vw, 8rem) clamp(1.5rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: clamp(6rem, 10vw, 9rem);
}

.section {
  max-width: 1024px;
  margin: 0 auto;
  width: 100%;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-kicker {
  color: var(--rk-accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.5rem;
  display: inline-block;
}

.section-kicker::after {
  display: block;
  content: '';
  width: 24px;
  height: 1px;
  background: rgba(55, 196, 170, 0.3);
  margin-top: 0.5rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0.5rem 0 1rem;
}

.section-header p {
  color: var(--rk-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0;
  line-height: 1.6;
}

.text-center .section-kicker::after {
  margin-left: auto;
  margin-right: auto;
}

.text-center {
  text-align: center;
}
.text-center .section-header p,
.text-center .support-text {
  margin-left: auto;
  margin-right: auto;
}

/* Cards & Grids */
.media-grid, .project-grid, .participation-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .media-grid, .project-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .participation-grid { grid-template-columns: 1fr 1fr; }
}

.media-card, .project-card, .participation-card, .now-card {
  background: var(--rk-bg-card);
  border: 1px solid var(--rk-border);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border-color 0.3s ease, box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.media-card:hover, .project-card:hover, .participation-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(55, 196, 170, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(55, 196, 170, 0.05);
}

.media-card__image {
  aspect-ratio: 16/9;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(55, 196, 170, 0.2) 0%, rgba(22, 56, 71, 0.4) 100%);
  margin-bottom: 1.25rem;
  display: grid;
  place-items: center;
  font-weight: bold;
  color: var(--rk-accent);
  font-size: 1.5rem;
  overflow: hidden;
}

/* RK_E3_T10I: real Ghost feature images must fill the card box instead of
   rendering at natural width (caused mobile horizontal overflow). */
.media-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

/* RK_E3_T10M (accepted RK_E3_T10L study): series covers render in a square
   1:1 container — the source cover art is square podcast-standard, so only
   1:1 shows it uncropped. RK_E3_T10N extended the square container from the
   /podcasts/ archive to the homepage media journal (#podcasts); the /shows/
   index keeps the 16:9 default above. */
.podcasts-archive .media-card__image,
.series-archive .media-card__image,
#podcasts .media-card__image {
  aspect-ratio: 1/1;
}
.media-card__image--blue {
  background: linear-gradient(135deg, rgba(64, 156, 255, 0.2) 0%, rgba(22, 56, 71, 0.4) 100%);
  color: #409cff;
}
.media-card__image--orange {
  background: linear-gradient(135deg, rgba(255, 128, 64, 0.2) 0%, rgba(22, 56, 71, 0.4) 100%);
  color: #ff8040;
}
.media-card__image--purple {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(22, 56, 71, 0.4) 100%);
  color: #a855f7;
}
.media-card__image--pink {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2) 0%, rgba(22, 56, 71, 0.4) 100%);
  color: #ec4899;
}

.media-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rk-accent);
  font-weight: bold;
  display: block;
  margin-bottom: 0.5rem;
}

.media-card h3, .project-card h3, .participation-card h3 {
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}

.media-card p, .project-card p, .participation-card p, .now-card__content p {
  color: var(--rk-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 1.25rem;
}

.text-button {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--rk-text);
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease;
}
.text-button:hover {
  color: var(--rk-accent);
}

.text-button--accent {
  color: var(--rk-accent);
}

.text-button--accent:hover {
  color: var(--rk-accent-hover);
}

.project-card--accent {
  background: rgba(55, 196, 170, 0.1);
  border-color: rgba(55, 196, 170, 0.3);
}

/* Now Card */
.now-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
  border-color: rgba(55, 196, 170, 0.2);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(55, 196, 170, 0.05);
  backdrop-filter: blur(16px);
}
@media (min-width: 768px) {
  .now-card {
    flex-direction: row;
    text-align: left;
    padding: 3rem;
  }
}
.now-card__visual {
  width: 120px;
  height: 120px;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, var(--rk-accent), #2b8c7b);
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: bold;
  color: var(--rk-bg);
  box-shadow: 0 10px 20px rgba(55, 196, 170, 0.2);
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
body.is-playing .now-card__visual {
  animation: now-pulse 2s infinite alternate ease-in-out;
}
/* RK_E3_T10Q: studio artwork variant — same square, radius and pulse,
   image fills the container without distortion (source is 1:1). */
.now-card__visual--image {
  overflow: hidden;
}
.now-card__visual--image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@keyframes now-pulse {
  from {
    transform: scale(1);
    box-shadow: 0 10px 20px rgba(55, 196, 170, 0.2);
  }
  to {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(55, 196, 170, 0.35), 0 0 25px rgba(55, 196, 170, 0.15);
  }
}
.now-card__content h3 {
  font-size: 2rem;
  margin: 0 0 0.5rem;
}
.section-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}
@media (min-width: 768px) {
  .section-actions { justify-content: flex-start; }
}

/* Testimonials */
.testimonials-section {
  margin-top: clamp(-3rem, -4vw, -2rem);
}

.testimonials-header {
  display: grid;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.testimonials-header h2 {
  margin-bottom: 0;
}

.testimonials-note {
  max-width: 420px;
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.78rem;
  line-height: 1.5;
}

.testimonials-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  padding: 0.25rem 0 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(55, 196, 170, 0.45) rgba(255, 255, 255, 0.05);
}

.testimonial-card {
  min-height: 190px;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 1.25rem;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.22);
}

.testimonial-card__label,
.testimonial-card__source {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.testimonial-card__label {
  color: var(--rk-accent);
}

.testimonial-card__quote {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.6;
}

.testimonial-card__source {
  color: rgba(255, 255, 255, 0.42);
}

@media (min-width: 768px) {
  .testimonials-header {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  }

  .testimonials-rail {
    grid-auto-flow: initial;
    grid-auto-columns: initial;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }
}

/* Schedule */
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.schedule-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 2rem;
  border-radius: 1rem;
  background: var(--rk-bg-card);
  border: 1px solid transparent;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border-color 0.3s ease;
  text-align: left;
  width: 100%;
}
.schedule-item:hover, .schedule-item.is-selected {
  background: var(--rk-bg-card-hover);
  border-color: rgba(55, 196, 170, 0.35);
  transform: translateX(6px);
}
.schedule-item__time {
  font-size: 1rem;
  font-weight: 600;
  color: var(--rk-accent);
  width: 80px;
  flex-shrink: 0;
}
.schedule-item__info strong {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  font-weight: 400;
}
.schedule-item__info small {
  color: var(--rk-muted);
  font-size: 0.875rem;
}

/* Selected Podcast Details */
.selected-detail {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: rgba(55, 196, 170, 0.1);
  border: 1px solid rgba(55, 196, 170, 0.3);
  border-radius: 1rem;
}
.selected-detail__label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--rk-accent);
  margin-bottom: 0.5rem;
}
.selected-detail strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.podcast-embed-preview {
  display: grid;
  gap: 1rem;
}

.podcast-embed-preview--row {
  grid-column: 1 / -1;
  padding: 1.35rem;
  border: 1px solid rgba(55, 196, 170, 0.24);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.22);
}

.podcast-embed-preview__header {
  display: grid;
  gap: 0.35rem;
}

.podcast-embed-preview__header span {
  color: var(--rk-accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.podcast-embed-preview__header strong {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
}

.podcast-embed-preview__frame {
  overflow: hidden;
  min-height: 180px;
  border: 1px solid rgba(55, 196, 170, 0.24);
  border-radius: 0.85rem;
  background: rgba(12, 26, 36, 0.5);
}

.podcast-embed-preview__frame iframe {
  display: block;
  width: 100%;
  border: 0;
}

.podcast-embed-preview__footer {
  display: grid;
  gap: 0.75rem;
}

.podcast-embed-preview__footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
  line-height: 1.55;
}

.media-card.is-selected {
  border-color: var(--rk-accent);
  background: var(--rk-bg-card-hover);
}

/* Forms */
.contact-panel {
  max-width: 650px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--rk-border);
  border-radius: 2rem;
  padding: 3rem 2.5rem;
  backdrop-filter: blur(10px);
  box-shadow: var(--rk-shadow);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width: 600px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--rk-muted);
}
.contact-form input, .contact-form select, .contact-form textarea {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--rk-border);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  color: var(--rk-text);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  border-color: var(--rk-accent);
  outline: none;
  box-shadow: 0 0 12px rgba(55, 196, 170, 0.15);
}
.contact-form .is-invalid {
  border-color: #ef4444;
}

.form-status {
  margin: 0;
  font-size: 0.875rem;
  color: var(--rk-accent);
}
.form-status.is-error {
  color: #ef4444;
}

/* Support */
.support-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}
.support-actions .button {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.support-actions .button:hover {
  background: var(--rk-accent);
  color: var(--rk-bg);
  border-color: var(--rk-accent);
  transform: scale(1.05);
}

/* FAQ */
.faq-section {
  max-width: 760px;
}

.faq-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.faq-header .section-kicker::after {
  margin-left: auto;
  margin-right: auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
}
.faq-item {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.faq-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.faq-item button {
  width: 100%;
  padding: 1.45rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 2vw, 1.12rem);
  font-weight: 600;
  text-align: left;
  line-height: 1.4;
  transition: color 0.25s ease;
}
.faq-item button[aria-expanded="true"] {
  color: var(--rk-accent);
}
.faq-icon {
  width: 1.25rem;
  flex: 0 0 1.25rem;
  color: var(--rk-accent);
  font-size: 1.1rem;
  line-height: 1;
  text-align: center;
  transition: transform 0.25s ease;
}
.faq-answer {
  max-width: 660px;
  padding: 0 2.75rem 1.6rem 0;
  color: var(--rk-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}
/* RK_E3_T10Y: answers are rendered Ghost post content — paragraphs, links
   and lists must read safely inside the accordion region. */
.faq-answer p {
  margin: 0 0 0.85rem;
}
.faq-answer p:last-child {
  margin-bottom: 0;
}
.faq-answer a {
  color: var(--rk-accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.faq-answer ul,
.faq-answer ol {
  margin: 0 0 0.85rem;
  padding-left: 1.35rem;
}
.faq-intro {
  max-width: 640px;
  margin: 1rem auto 0;
  color: var(--rk-muted);
  text-align: center;
}
.faq-empty {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 0;
  color: var(--rk-muted);
  text-align: center;
}
.page-faq .faq-list {
  max-width: 760px;
  margin: 0 auto;
}

/* Footer */
.site-footer {
  padding: clamp(3.25rem, 6vw, 4.75rem) clamp(1.25rem, 6vw, 4.5rem) clamp(1.75rem, 4vw, 2.35rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(13, 36, 46, 0.58), rgba(12, 26, 36, 0.78));
  backdrop-filter: blur(12px);
}

.site-footer__inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.site-footer__top {
  display: grid;
  gap: clamp(2.4rem, 5vw, 5.25rem);
}

.footer-brand {
  max-width: 480px;
}

.footer-brand .brand {
  margin-bottom: 1.35rem;
}

.footer-about {
  margin: 0;
  color: var(--rk-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.55rem;
}

.footer-social a {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 700;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.footer-social a:hover,
.footer-links a:hover,
.footer-legal a:hover {
  color: var(--rk-accent);
}

.footer-social a:hover {
  border-color: rgba(55, 196, 170, 0.42);
  background: rgba(55, 196, 170, 0.08);
}

/* RK_E3_T10X: inline SVG brand icons inside the social links. */
.footer-social__icon {
  display: block;
}

.footer-social a:focus-visible {
  outline: 2px solid var(--rk-accent);
  outline-offset: 2px;
}

.footer-column h3 {
  margin: 0 0 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.18rem;
  font-weight: 500;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.78rem;
}

.footer-links a,
.footer-legal a {
  color: var(--rk-muted);
  font-size: 0.95rem;
  line-height: 1.4;
  transition: color 0.25s ease;
}

.footer-links--contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-links--contact a span:first-child {
  width: 1.1rem;
  color: var(--rk-accent);
  text-align: center;
}

.site-footer__bottom {
  display: grid;
  gap: 0.85rem 1.5rem;
  margin-top: clamp(2.25rem, 4.5vw, 3.25rem);
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copy {
  margin: 0;
  color: var(--rk-muted);
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-placeholder-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.78rem;
  line-height: 1.5;
}

/* RK_E3_T10S: compact Ghost Portal subscribe entry in the contacts column. */
.footer-subscribe {
  margin: 1.25rem 0 0;
}

.footer-subscribe__button {
  display: inline-block;
  text-decoration: none;
}

@media (min-width: 760px) {
  .site-footer__top {
    grid-template-columns: minmax(340px, 1.5fr) minmax(180px, 0.65fr) minmax(240px, 0.8fr);
    align-items: start;
  }

  .site-footer__bottom {
    grid-template-columns: minmax(260px, 1fr) auto;
    align-items: start;
  }

  .footer-placeholder-note {
    grid-column: 1 / -1;
  }
}

/* Floating Player */
.floating-player {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translate(-50%, 150%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 100;
  width: calc(100% - 2rem);
  max-width: 760px;
  background: rgba(17, 36, 49, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--rk-border);
  border-radius: 1rem;
  box-shadow: var(--rk-shadow);
  padding: 0.5rem 0.75rem 0.42rem;
  min-height: 82px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease, border-color 0.3s ease;
}

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

.floating-player.is-playing {
  border-color: rgba(55, 196, 170, 0.4);
  box-shadow: 0 10px 30px rgba(55, 196, 170, 0.08), var(--rk-shadow);
}

.player__main-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  flex-wrap: nowrap;
  min-height: 52px;
}

/* RK_E3_T10T_R3_R4: the action row is a permanently visible, slim strip in
   normal flow under the main row. No absolute rail, no chevron, no expandable
   tray — the feedback cluster can never cover the track title/metadata.
   RK_E3_T10T_R3_R5: margin-top -0.15rem — the smallest safe value from
   screenshot trials (0.1rem / 0 / -0.15rem / -0.3rem): it pulls the cluster
   closer to the progress line while keeping the 40px hit area just below the
   progress container; -0.3rem was rejected (1px hit-area overlap). */
.player__action-row {
  width: 100%;
  display: flex;
  align-items: center;
  /* align the cluster under the track title (cover width + main-row gap) */
  padding-left: calc(40px + 0.75rem);
  margin-top: -0.15rem;
}

.player__title-link {
  color: var(--rk-text);
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s ease;
  min-width: 0;
}

/* [hidden] must beat the display rules above and the mobile overrides. */
.player__title[hidden],
.player__title-link[hidden] {
  display: none;
}

.player__title-link:hover {
  color: var(--rk-accent);
}

.player__progress-container {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.12rem;
}

.player__progress-bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.player__progress-fill {
  height: 100%;
  background: var(--rk-accent);
  width: 0%;
  border-radius: 2px;
  transition: width 0.1s linear;
}

.player__time {
  font-size: 0.68rem;
  font-family: monospace;
  color: var(--rk-muted);
  white-space: nowrap;
  min-width: 42px;
}

.player__time--elapsed {
  text-align: right;
}

.player__time--remaining {
  text-align: left;
}

/* RK_E3_T10T_R3_R4: compact unified icon cluster — small light glyphs, no
   boxed card around the row, >= 40px hit target per action. Identical on
   desktop and mobile; accessible names stay on aria-label. */
.player__feedback {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.feedback-btn {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0.5rem;
  color: var(--rk-muted);
  font-size: 1.05rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
  padding: 0.1rem;
  /* visible glyph stays compact; the interactive box keeps >= 40px */
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  flex: none;
  opacity: 0.85;
}

.feedback-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--rk-text);
  opacity: 1;
  transform: scale(1.1);
}

.feedback-btn:focus-visible {
  outline: 2px solid var(--rk-accent);
  outline-offset: 1px;
  opacity: 1;
}

.feedback-btn.is-active {
  opacity: 1;
  transform: scale(1.12);
}

.feedback-btn--like.is-active {
  color: var(--rk-accent);
}

.feedback-btn--dislike.is-active {
  color: #ff5e62;
}

.feedback-btn-text {
  display: none;
}

/* RK_E3_T10T_R3: inline SVG share icon (replaces the ambiguous ↗ glyph).
   Static — no spinner/rotation states anywhere on the Share control. */
.share-icon {
  display: block;
  flex-shrink: 0;
}

.player-button .share-icon {
  margin: auto;
}

/* RK_E3_T10T_R3_R5: desktop share preview popover — small card anchored above
   the action cluster near the Share icon. Desktop-only: JS opens it only in
   fine-pointer contexts, and the mobile media query hides it outright. */
.share-popover {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: calc(40px + 0.75rem);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: min(320px, 78vw);
  padding: 0.6rem 0.7rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #10222e;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.share-popover[hidden] {
  display: none;
}

.share-popover__url {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: monospace;
  font-size: 0.72rem;
  color: var(--rk-text);
  user-select: all;
}

.share-popover__status {
  min-height: 0;
  font-size: 0.72rem;
  color: var(--rk-accent);
}

.share-popover__status:empty {
  display: none;
}

.share-popover__status.is-error {
  color: #ff5e62;
}

.share-popover__copy {
  align-self: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--rk-text);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.share-popover__copy:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.share-popover__copy:focus-visible,
.share-popover__close:focus-visible {
  outline: 2px solid var(--rk-accent);
  outline-offset: 1px;
}

.share-popover__close {
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--rk-muted);
  font-size: 0.7rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.share-popover__close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--rk-text);
}

/* RK_E3_T10T: honest feedback flow — plain track title, dislike panel,
   recent tracks as text (fake /tracks/ links removed). */
.player__title {
  display: block;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--rk-text);
}

.recent-track-label {
  color: var(--rk-text);
  font-size: 0.88rem;
}

.player__dislike-panel {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.75rem 0.9rem 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.player__dislike-panel[hidden] {
  display: none;
}

.dislike-panel__reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.dislike-panel__reasons legend {
  padding: 0;
  margin-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
}

.dislike-reason {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--rk-text);
  font-size: 0.82rem;
  cursor: pointer;
}

.dislike-reason input {
  accent-color: var(--rk-accent);
}

.dislike-panel__comment {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
}

.dislike-panel__comment textarea {
  resize: vertical;
  min-height: 2.2rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--rk-text);
  padding: 0.45rem 0.6rem;
  font: inherit;
}

.dislike-panel__status {
  margin: 0;
  min-height: 1em;
  color: var(--rk-accent);
  font-size: 0.8rem;
}

.dislike-panel__actions {
  display: flex;
  gap: 0.6rem;
}

.dislike-panel__actions .button {
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
}

/* Side Non-Clickable Equalizer Indicator style */
.player__eq-indicator {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
  width: 28px;
  flex-shrink: 0;
  margin: 0 0.25rem;
  pointer-events: none;
  user-select: none;
  opacity: 0.25;
  transition: opacity 0.3s ease;
}

.player__eq-indicator span {
  display: block;
  width: 3px;
  height: 100%;
  background: var(--rk-accent);
  transform-origin: bottom;
  border-radius: 1px;
  transform: scaleY(0.15);
  transition: transform 0.3s ease;
}

/* Animated state in body.is-playing */
body.is-playing .player__eq-indicator {
  opacity: 0.95;
}

body.is-playing .player__eq-indicator span {
  transition: none;
}

body.is-playing .player__eq-indicator span:nth-child(1) {
  animation: side-eq-pulse 0.75s ease-in-out infinite alternate;
}
body.is-playing .player__eq-indicator span:nth-child(2) {
  animation: side-eq-pulse 0.45s ease-in-out infinite alternate 0.12s;
}
body.is-playing .player__eq-indicator span:nth-child(3) {
  animation: side-eq-pulse 0.65s ease-in-out infinite alternate 0.24s;
}
body.is-playing .player__eq-indicator span:nth-child(4) {
  animation: side-eq-pulse 0.5s ease-in-out infinite alternate 0.08s;
}
body.is-playing .player__eq-indicator span:nth-child(5) {
  animation: side-eq-pulse 0.7s ease-in-out infinite alternate 0.18s;
}

@keyframes side-eq-pulse {
  0% {
    transform: scaleY(0.15);
  }
  100% {
    transform: scaleY(1);
  }
}

.player-button--close {
  background: transparent;
  color: var(--rk-muted);
  font-size: 0.95rem;
  border: none;
}

.player-button--close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--rk-text);
}

.player-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: stretch;
  width: 100%;
  position: relative;
}

.player__cover {
  width: 40px;
  height: 40px;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--rk-muted);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  pointer-events: none;
  user-select: none;
}

.player__cover.is-artwork span {
  opacity: 0;
}

.player__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.player__status {
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rk-accent);
  font-weight: 700;
  margin-bottom: 0.1rem;
}

.player__meta strong {
  font-size: 0.94rem;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player__controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.player-button {
  width: 34px;
  height: 34px;
  border-radius: 0.45rem;
  display: grid;
  place-items: center;
  background: var(--rk-bg-card);
  color: var(--rk-text);
  transition: all 0.2s ease;
}
.player-button:hover {
  background: var(--rk-bg-card-hover);
}
.player-button--main {
  width: 38px;
  height: 38px;
  background: var(--rk-accent);
  color: var(--rk-bg);
}
.player-button--main:hover {
  background: var(--rk-accent-hover);
}

.player__volume {
  width: 120px;
  height: 34px;
  padding: 0 0.45rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--rk-bg-card);
  color: var(--rk-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  flex: 0 0 120px;
}

.player__volume-icon,
.player__volume-value {
  font-size: 0.68rem;
  line-height: 1;
  user-select: none;
}

.player__volume-icon {
  color: var(--rk-accent);
}

.player__volume-value {
  width: 28px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.player__volume-input {
  width: 52px;
  min-width: 52px;
  accent-color: var(--rk-accent);
  cursor: pointer;
}

.player__volume-input:focus-visible {
  outline: 2px solid rgba(55, 196, 170, 0.55);
  outline-offset: 2px;
}

.recent-panel {
  position: absolute;
  bottom: calc(100% + 1rem);
  right: 0;
  width: 300px;
  background: rgba(17, 36, 49, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--rk-border);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: var(--rk-shadow);
}
.recent-panel ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.recent-panel li {
  color: var(--rk-muted);
  font-size: 0.875rem;
}

.toast {
  position: fixed;
  bottom: 6rem;
  right: 1.5rem;
  background: var(--rk-accent);
  color: var(--rk-bg);
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  z-index: 200;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Details Drawer */
.player__drawer {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 0;
  width: 100%;
  max-height: 380px;
  background: rgba(17, 36, 49, 0.95);
  backdrop-filter: blur(25px);
  border: 1px solid var(--rk-border);
  border-radius: 1rem;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25), var(--rk-shadow);
  display: flex;
  flex-direction: column;
  z-index: 90;
  overflow: hidden;
  animation: slideDrawerUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1rem;
  box-sizing: border-box;
}

@keyframes slideDrawerUp {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.player__drawer[hidden] {
  display: none !important;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--rk-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.drawer-close {
  background: none;
  border: none;
  color: var(--rk-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.2rem;
  transition: color 0.2s;
  line-height: 1;
}

.drawer-close:hover {
  color: var(--rk-text);
}

.drawer-content {
  overflow-y: auto;
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding-right: 0.25rem;
}

/* Custom scrollbar for drawer content */
.drawer-content::-webkit-scrollbar {
  width: 4px;
}
.drawer-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}
.drawer-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

.drawer-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 0.75rem;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-sizing: border-box;
}

.drawer-section--actions {
  grid-column: 1 / -1;
  position: relative;
}

.section-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rk-accent);
  opacity: 0.8;
  font-weight: 500;
}

.track-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.track-title-drawer {
  font-size: 0.9rem;
  color: var(--rk-text);
  line-height: 1.25;
}

.track-artist-drawer {
  font-size: 0.78rem;
  color: var(--rk-muted);
}

.track-time-drawer {
  font-size: 0.7rem;
  color: var(--rk-muted);
  opacity: 0.7;
}

.drawer-track-actions {
  margin-top: 0.25rem;
}

.drawer-track-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--rk-accent);
  text-decoration: none;
  transition: opacity 0.2s;
  font-weight: 500;
}

.drawer-track-link:hover {
  opacity: 0.85;
}

.recent-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.recent-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.recent-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.recent-track-link {
  color: var(--rk-text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 75%;
}

.recent-track-link:hover {
  color: var(--rk-accent);
  text-decoration: underline;
}

.recent-time {
  font-size: 0.7rem;
  color: var(--rk-muted);
  opacity: 0.8;
}

.listener-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.drawer-action-btn {
  flex: 1 1 calc(33.33% - 0.5rem);
  min-width: max-content;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  padding: 0.45rem 0.75rem;
  color: var(--rk-text);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.drawer-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.drawer-action-btn.is-active {
  background: rgba(55, 196, 170, 0.15);
  border-color: var(--rk-accent);
  color: var(--rk-accent);
}

/* Report Panel inside Drawer */
.report-choices {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  animation: fadeIn 0.25s ease-out;
}

.choices-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--rk-accent);
}

.choices-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.choice-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.35rem;
  padding: 0.4rem 0.6rem;
  color: var(--rk-text);
  font-size: 0.75rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
}

.choice-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  padding-left: 0.75rem;
}

[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  .player__volume {
    display: none;
  }
}

@media (max-width: 500px) {
  .hidden-mobile {
    display: none;
  }

  /* Mobile Drawer Overrides */
  .player__drawer {
    bottom: calc(100% + 0.4rem);
    max-height: 290px;
    padding: 0.75rem;
    border-radius: 0.85rem;
  }
  .drawer-content {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .drawer-header {
    margin-bottom: 0.5rem;
  }
  .drawer-action-btn {
    flex: 1 1 100%;
    padding: 0.38rem 0.6rem;
    font-size: 0.75rem;
  }
  .floating-player {
    bottom: 1rem;
    padding: 0.5rem 0.6rem 0.42rem;
    min-height: 86px;
  }
  .player__cover {
    grid-column: 1;
    width: 36px;
    height: 36px;
    font-size: 0.75rem;
  }
  .player__meta {
    grid-column: 2;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }
  .player__meta strong {
    font-size: 0.86rem;
    line-height: 1.05;
  }
  .player__meta strong,
  .player__title-link {
    display: block;
    max-width: 100%;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .player__status {
    font-size: 0.52rem;
  }
  .player__progress-container {
    gap: 0.32rem;
  }
  .player__time {
    font-size: 0.62rem;
    min-width: 36px;
  }
  .player-button {
    width: 28px;
    height: 28px;
  }
  .player-button--main {
    width: 32px;
    height: 32px;
    background: var(--rk-accent);
    color: var(--rk-bg);
  }
  [data-stop-player] {
    display: none;
  }
  .player__controls {
    grid-column: 4;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.3rem;
    min-width: max-content;
  }

  .player__main-row {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 18px auto;
    align-items: center;
    column-gap: 0.42rem;
    row-gap: 0;
    flex-wrap: nowrap;
    min-height: 54px;
  }
  .player__eq-indicator {
    grid-column: 3;
    flex: 0 0 18px;
    width: 18px;
    height: 16px;
    margin: 0;
    gap: 2px;
  }
  .player__eq-indicator span {
    width: 2px;
  }

  .feedback-btn {
    font-size: 0.95rem;
  }

  /* RK_E3_T10T_R3_R4: same always-visible compact cluster as desktop —
     slim strip under the metadata, aligned with the track title, no
     chevron, no boxed pills, no separate tall tray.
     RK_E3_T10T_R3_R5: mobile gets a slightly stronger pull-up (-0.4rem):
     the 54px grid main-row leaves more air under the progress line than
     desktop; measured hit clearance above the progress container stays
     ~1px at this value (screenshot-trialled). */
  .player__action-row {
    padding-left: calc(36px + 0.42rem);
    margin-top: -0.4rem;
  }
  /* RK_E3_T10T_R3_R5: the share preview popover is desktop-only; mobile
     keeps the native Web Share sheet. */
  .share-popover {
    display: none;
  }
  .hero-content h1 {
    font-size: clamp(3rem, 12vw, 4rem);
  }

  .site-header {
    padding: 1rem;
  }
}

/* Accessibility — Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Ghost integration layer — not present in the Vite prototype.
   Added by RK_E3_T4. Keep at the end of the file.
   ========================================================================== */

/* Ghost's custom-font variables, mapped onto the prototype's type tokens.
   GScan expects these to exist when a theme ships custom font settings. */
:root {
    --gh-font-heading: var(--font-display);
    --gh-font-body: var(--font-sans);
}

/* Koenig editor card widths. Required by GScan. */
.kg-width-wide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.kg-width-full {
    max-width: none;
    width: 100%;
}

/* Minimal typography for Ghost-rendered post/page/index routes.
   The visual shell owns the chrome; these rules only keep content readable
   until RK_E3_T6 designs the real post and show templates. */
.post-feed {
    display: grid;
    gap: 1.5rem;
}

.post-card__title,
.post-full__title,
.page-full__title {
    margin: 0 0 0.5rem;
    font-family: var(--gh-font-heading);
}

.post-full__content,
.page-full__content {
    font-family: var(--gh-font-body);
}

/* --------------------------------------------------------------------------
   Ghost content model — show/episode/archive presentation. Added by RK_E3_T6.
   Bounded alpha styling; the accepted card look lives in the ported prototype
   CSS above (.media-card, .media-grid). These rules only cover the new
   list/detail views the prototype never had.
   -------------------------------------------------------------------------- */
.media-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.media-empty {
    color: var(--rk-muted);
    font-style: italic;
}

.section-more {
    margin-top: 1.5rem;
}

.episode-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.episode-list__link {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--rk-border);
    border-radius: 12px;
    background: var(--rk-bg-card);
    color: inherit;
    text-decoration: none;
}

.episode-list__link:hover {
    background: var(--rk-bg-card-hover);
}

.episode-list__title {
    font-size: 1.05rem;
}

.episode-list__show {
    color: var(--rk-accent);
    font-size: 0.85rem;
}

.episode-list__date {
    margin-left: auto;
    color: var(--rk-muted);
    font-size: 0.85rem;
}

.episode-list__empty {
    color: var(--rk-muted);
    font-style: italic;
}

.show-full,
.episode-full {
    max-width: 760px;
    margin: 0 auto;
}

.show-full__lead {
    color: var(--rk-muted);
    font-size: 1.1rem;
}

/* RK_E3_T10K: show/episode covers stay inside the constrained content
   container; an unconstrained img renders at intrinsic width and can escape
   the 760px column. */
.show-full__image,
.post-full__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
}

.show-full__episodes {
    margin-top: 2.5rem;
}

.show-full__back,
.episode-full__back {
    margin-top: 2.5rem;
}

/* RK_E3_T10W episode context navigation: parent podcast / parent series /
   archive links resolved from the show-* and series-* grouping tags. */
.episode-context {
    margin-top: 2.5rem;
}

.episode-context .episode-full__back {
    margin-top: 0;
}

.episode-context__item {
    margin: 0 0 0.5rem;
}

.episode-context__item--podcast,
.episode-context__item--series {
    color: var(--rk-muted);
    font-size: 0.95rem;
}

.episode-context__item--podcast a,
.episode-context__item--series a {
    color: var(--rk-accent);
    text-decoration: none;
}

.episode-context__item--podcast a:hover,
.episode-context__item--series a:hover {
    text-decoration: underline;
}

/* Malformed-data guard: with more than one matching grouping tag the first
   (in Ghost tag order) stays visible and later duplicates are hidden. */
.episode-context__item--podcast ~ .episode-context__item--podcast,
.episode-context__item--series ~ .episode-context__item--series {
    display: none;
}

.episode-audio {
    margin: 1.5rem 0 2rem;
    padding: 1.25rem;
    border: 1px solid var(--rk-border);
    border-radius: 14px;
    background: var(--rk-bg-card);
}

.episode-audio__note {
    margin: 0 0 0.85rem;
    color: var(--rk-muted);
    font-size: 0.9rem;
}

.subscribe-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.subscribe-links__label {
    color: var(--rk-muted);
    font-size: 0.9rem;
}

.subscribe-link {
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--rk-border);
    border-radius: 999px;
    font-size: 0.85rem;
    color: inherit;
    text-decoration: none;
}

.subscribe-link:hover {
    border-color: var(--rk-accent);
}

.subscribe-link--placeholder {
    color: var(--rk-muted);
    border-style: dashed;
    cursor: default;
}

.project-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* RK_E3_T10AA_R1: real editorial news cards + participation CTA row. */
.project-card__image {
    display: block;
    aspect-ratio: 16/9;
    border-radius: 1rem;
    overflow: hidden;
    margin: -0.5rem -0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(55, 196, 170, 0.2) 0%, rgba(22, 56, 71, 0.4) 100%);
}

.project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-card__meta {
    color: var(--rk-muted);
    font-size: 0.85rem;
}

.participation-card__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    align-items: center;
}

/* Alpha/demo section note. Added by RK_E3_T7. */
.section-note {
    margin-top: 0.5rem;
    color: var(--rk-muted);
    font-size: 0.85rem;
    font-style: italic;
}

.footer-social a[aria-disabled="true"],
.footer-legal a[aria-disabled="true"] {
    opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Transistor podcast preview. Added by RK_E3_T8. Bounded artwork/theme
   treatment for the click-gated episode preview built by podcast-preview.js.
   -------------------------------------------------------------------------- */
.episode-audio__transistor {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.transistor-toggle {
    margin: 0;
}

.transistor-share {
    font-size: 0.85rem;
    color: var(--rk-accent);
    text-decoration: none;
}

.transistor-share:hover {
    text-decoration: underline;
}

.transistor-panel {
    flex-basis: 100%;
    margin-top: 1rem;
    padding: 0.75rem;
    border: 1px solid var(--rk-border);
    border-radius: 14px;
    background: var(--rk-bg-card);
    box-shadow: var(--rk-shadow);
}

.transistor-frame {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 10px;
}

/* ---------------------------------------------------------------------------
 * RK_E3_T10J — Series playlist player + subseries grouping
 * --------------------------------------------------------------------------- */

/* The Transistor playlist player is taller than the single-episode embed. */
.transistor-frame--playlist {
    min-height: 390px;
}

.episode-subseries {
    margin-top: 1.75rem;
}

.episode-subseries__title {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
}

/* ---------------------------------------------------------------------------
 * RK_E3_T10O_R1 — Series entity (Podcast → Series → Episode)
 * --------------------------------------------------------------------------- */

/* Series page reuses the show-full layout; only the parent link is new. */
.series-full__parent {
    margin: 0 0 1.5rem;
    color: var(--rk-muted);
    font-size: 0.95rem;
}

.series-full__parent a {
    color: var(--rk-accent);
    text-decoration: none;
}

.series-full__parent a:hover {
    text-decoration: underline;
}

/* Series cards on /podcasts/ are visually distinct from parent podcasts:
   a dashed purple-accent border plus the "Серия" badge. */
.media-card--series {
    border-style: dashed;
    border-color: rgba(168, 85, 247, 0.45);
}

.media-card--series:hover {
    border-color: rgba(168, 85, 247, 0.7);
}

.media-label--series {
    color: #a855f7;
}

.media-label--parent {
    color: var(--rk-muted);
}

/* ---------------------------------------------------------------------------
 * RK_E3_T10O_R3 — Show page as catalog: series cards + standalone episodes
 * --------------------------------------------------------------------------- */

/* Series cards on the show page mirror the T10N episode-card geometry, but
   the whole card is one plain link to the series page (no play overlay). */
.series-card-list {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .series-card-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.series-card {
    border: 1px solid rgba(168, 85, 247, 0.45);
    border-style: dashed;
    border-radius: 18px;
    background: var(--rk-bg-card);
    transition: border-color 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.series-card:hover {
    border-color: rgba(168, 85, 247, 0.7);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(168, 85, 247, 0.06);
}

.series-card__link {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    color: inherit;
    text-decoration: none;
}

.series-card__artwork {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: var(--rk-shadow);
    background: var(--rk-bg-card);
}

.series-card__artwork--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--rk-accent);
}

.series-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.series-card__title {
    font-size: 1.25rem;
    line-height: 1.2;
    margin: 0;
}

.series-card__count {
    margin: 0;
    color: #a855f7;
    font-size: 0.85rem;
    font-weight: 600;
}

.series-card__excerpt {
    margin: 0;
    color: var(--rk-muted);
    font-size: 0.95rem;
    line-height: 1.45;
}

.show-full__series {
    margin-top: 2.5rem;
}

/* RK_E3_T10O_R3: a show with series but no standalone episodes renders the
   calm "Выпуски скоро появятся" note in the DOM (Ghost #get has no usable
   cross-query else), so it is suppressed visually here — no empty
   placeholder under the series catalog. A fully empty show has no
   .show-full__series, so its note stays visible. */
.show-full:has(.show-full__series) .episode-list__empty {
    display: none;
}

/* ---------------------------------------------------------------------------
 * RK_E3_T10E — Homepage featured show + latest episode preview
 * --------------------------------------------------------------------------- */

.podcast-feature-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.podcast-feature {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 640px) {
    .podcast-feature {
        grid-template-columns: minmax(160px, 260px) 1fr;
        gap: 2rem;
    }
}

.podcast-feature__media {
    display: flex;
    justify-content: center;
}

.podcast-feature__artwork {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: var(--rk-shadow);
    background: var(--rk-bg-card);
}

.podcast-feature__artwork--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 4rem;
    color: var(--rk-accent);
}

.podcast-feature__body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.podcast-feature__show-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.1;
    margin: 0;
}

.podcast-feature__show-title a {
    color: inherit;
    text-decoration: none;
}

.podcast-feature__show-title a:hover {
    color: var(--rk-accent);
}

.podcast-feature__episode {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    border: 1px solid var(--rk-border);
    border-radius: 14px;
    background: var(--rk-bg-card);
}

.podcast-feature__episode-title {
    font-size: 1.25rem;
    line-height: 1.3;
    margin: 0;
}

.podcast-feature__episode-date {
    color: var(--rk-muted);
    font-size: 0.875rem;
}

.podcast-feature__preview {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.podcast-feature__preview-note {
    margin: 0;
    color: var(--rk-muted);
    font-size: 0.875rem;
}

.podcast-feature__episode-link {
    margin: 0;
}

.podcast-feature__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.25rem;
}

.podcast-feature__empty {
    margin: 0;
    color: var(--rk-muted);
}

.podcast-feature--empty {
    text-align: center;
    padding: 2rem;
    border: 1px dashed var(--rk-border);
    border-radius: 18px;
}

/* Reuse existing transistor-toggle styles; tweak text for the homepage CTA. */
.podcast-feature__preview .transistor-toggle {
    width: auto;
}

/* ---------------------------------------------------------------------------
 * RK_E3_T10G — Homepage podcast grid (editorial #homepage-podcast selection)
 * --------------------------------------------------------------------------- */

.podcast-grid-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.podcast-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .podcast-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .podcast-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.podcast-grid-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--rk-border);
    border-radius: 18px;
    background: var(--rk-bg-card);
}

.podcast-grid-card__media {
    display: block;
}

.podcast-grid-card__artwork {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: var(--rk-shadow);
    background: var(--rk-bg-card);
}

.podcast-grid-card__artwork--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--rk-accent);
}

.podcast-grid-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.podcast-grid-card__show-title {
    margin: 0;
    color: var(--rk-muted);
    font-size: 0.95rem;
    line-height: 1.3;
}

.podcast-grid-card__show-title a {
    color: inherit;
    text-decoration: none;
}

.podcast-grid-card__show-title a:hover {
    color: var(--rk-accent);
}

.podcast-grid-card__episode-title {
    font-size: 1.5rem;
    line-height: 1.15;
    margin: 0;
}

.podcast-grid-card__episode-title a {
    color: inherit;
    text-decoration: none;
}

.podcast-grid-card__episode-title a:hover {
    color: var(--rk-accent);
}

.podcast-grid-card__episode-date {
    color: var(--rk-muted);
    font-size: 0.875rem;
}

/* RK_E3_T10I: the preview slot now wraps the whole card content; display:
   contents keeps the card flex layout untouched while the controller places
   the compact play overlay onto the cover host. */
.podcast-grid-card__preview {
    display: contents;
}

.podcast-grid-card__preview-note {
    margin: 0;
    color: var(--rk-muted);
    font-size: 0.875rem;
}

.podcast-grid-card__preview-note .text-button {
    display: inline-block;
    margin-top: 0.25rem;
}

/* Compact play overlay on the episode cover (RK_E3_T10I). Rendered by
   podcast-preview.js only when the episode has a valid Transistor marker;
   native button, so it is focusable and keyboard-operable. RK_E3_T10N: the
   same overlay is reused on the show-page episode cards
   (.episode-card__media) and on the episode-page cover (.post-full__cover). */
.podcast-grid-card__media,
.episode-card__media,
.post-full__cover {
    position: relative;
}

.podcast-grid-card__media .transistor-toggle--overlay,
.episode-card__media .transistor-toggle--overlay,
.post-full__cover .transistor-toggle--overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3.5rem;
    height: 3.5rem;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    line-height: 1;
    box-shadow: var(--rk-shadow);
    /* RK_E3_T10K: translucent accent (var(--rk-accent) at ~80%) over the cover. */
    background: rgba(55, 196, 170, 0.8);
    opacity: 0.95;
}

.podcast-grid-card__media .transistor-toggle--overlay:hover,
.episode-card__media .transistor-toggle--overlay:hover,
.post-full__cover .transistor-toggle--overlay:hover {
    opacity: 1;
    background: rgba(55, 196, 170, 0.95);
    transform: translate(-50%, -50%) scale(1.06);
}

.podcast-grid-card__media .transistor-toggle--overlay:focus-visible,
.episode-card__media .transistor-toggle--overlay:focus-visible,
.post-full__cover .transistor-toggle--overlay:focus-visible {
    outline: 2px solid var(--rk-accent);
    outline-offset: 3px;
    opacity: 1;
}

/* The Transistor share link of overlay-mode slots is appended after the card
   body (the slot itself is display:contents); keep it quiet. */
.podcast-grid-card .transistor-share {
    font-size: 0.8rem;
}

.podcast-grid-card__empty {
    margin: 0;
    color: var(--rk-muted);
}

/* Shared full-width preview dock. podcast-preview.js moves it in DOM order
   right after the active card, so later cards flow below it; grid-column
   keeps it full width on desktop, medium, and the single mobile column. */
.podcast-grid__dock {
    grid-column: 1 / -1;
    margin-top: 0;
}

.podcast-grid__dock[hidden] {
    display: none;
}

.podcast-grid--empty {
    text-align: center;
    padding: 2rem;
    border: 1px dashed var(--rk-border);
    border-radius: 18px;
}

.podcast-grid__empty {
    margin: 0;
    color: var(--rk-muted);
}

/* ---------------------------------------------------------------------------
 * RK_E3_T10N — Unified podcast cards (show page) + episode cover playback
 * --------------------------------------------------------------------------- */

/* Show-page episode cards: 1:1 cover with a translucent play overlay, title,
   date, short excerpt, "Подробнее" link. The shared preview dock stays below
   the whole list on multi-column layouts and moves under the active card on
   the single-column mobile layout (podcast-preview.js). */
.episode-card-list {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .episode-card-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.episode-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--rk-border);
    border-radius: 18px;
    background: var(--rk-bg-card);
}

.episode-card__artwork {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: var(--rk-shadow);
    background: var(--rk-bg-card);
}

.episode-card__artwork--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--rk-accent);
}

.episode-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.episode-card__title {
    font-size: 1.25rem;
    line-height: 1.2;
    margin: 0;
}

.episode-card__title a {
    color: inherit;
    text-decoration: none;
}

.episode-card__title a:hover {
    color: var(--rk-accent);
}

.episode-card__date {
    color: var(--rk-muted);
    font-size: 0.875rem;
}

.episode-card__excerpt {
    margin: 0;
    color: var(--rk-muted);
    font-size: 0.95rem;
    line-height: 1.45;
}

.episode-card__more {
    margin: 0;
}

/* The preview slot wraps the whole card content; display:contents keeps the
   card flex layout untouched while the controller places the compact play
   overlay onto the cover host. */
.episode-card__preview {
    display: contents;
}

.episode-card__preview-note {
    margin: 0;
    color: var(--rk-muted);
    font-size: 0.875rem;
}

/* Shared preview dock on the show/series page. RK_E3_T10V active-row
   placement: podcast-preview.js moves it after the active card's visual row
   (desktop) or directly under the active card (mobile); when it lands inside
   the card-list grid, grid-column keeps it spanning the full list width. */
.show-episodes__dock {
    grid-column: 1 / -1;
    margin-top: 1.5rem;
}

.show-episodes__dock[hidden] {
    display: none;
}

/* Episode page (RK_E3_T10N): the playback slot wraps cover + audio box;
   display:contents keeps the article layout. The click-gated panel lands
   directly below the audio box; the translucent play overlay sits on the
   cover (.post-full__cover shares the overlay styles above). */
.episode-playback {
    display: contents;
}

.post-full__cover .post-full__image {
    margin: 0;
}

.episode-playback .transistor-panel {
    margin-top: 0;
    margin-bottom: 2rem;
}
