@import url('./fonts.css');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-sub);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  transition: var(--transition-smooth), background-color 0.8s ease;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.25;
  transition: var(--transition-smooth);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

button, input {
  font-family: var(--font-ui);
  transition: var(--transition-fast);
}

button, input {
  border-radius: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
  width: 100%;
}

header {
  height: var(--header-height);
  border-bottom: var(--border-subtle);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
  transition: var(--transition-smooth);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-main);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--accent);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

nav a {
  color: var(--text-sub);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  padding: 0.5rem 0;
  opacity: 0.85;
  transition: color 0.3s ease, opacity 0.3s ease;
}

nav a:hover, nav li.active a {
  color: var(--accent);
  opacity: 1;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

nav li.active a::after {
  transform: scaleX(1);
  background-color: var(--accent);
}

.hero {
  height: calc(100vh - var(--header-height));
  min-height: 600px;
  display: flex;
  align-items: stretch;
  position: relative;
  padding: 0; border-bottom: var(--border-subtle);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  width: 100%;
  height: 100%;
}

.hero-text-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-meta {
  color: var(--text-sub);
  opacity: 0.9;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
  font-family: var(--font-ui);
}

.hero-title {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 2rem;
  word-wrap: break-word;
}

.hero-quote {
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.6;
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
  margin-bottom: 3rem;
  color: var(--text-sub);
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-podcast-title {
  font-family: 'Bebas Neue', sans-serif !important;
  font-weight: 400 !important;
  font-size: clamp(3rem, 9.2vw, 7.2rem) !important;
  line-height: 1.0 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  margin-bottom: 2rem !important;
  pointer-events: none !important;
  color: transparent !important;
  -webkit-text-stroke: 2.5px var(--accent) !important;
  text-shadow: 4px 4px 12px rgba(20, 32, 40, 0.9) !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.8rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: var(--border-style);
  border-radius: 0;
  cursor: pointer;
  font-weight: 500;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--color-slate-primary);
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--color-slate-primary);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-image-side {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-container {
  position: relative;
}

.hero-photo {
  display: block;
  transition: var(--transition-smooth);
}

body[data-theme="kwartalnik"] .hero-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

body[data-theme="kwartalnik"] .hero-text-side {
  padding: 4rem 5rem 4rem 6rem;
  background-color: var(--color-slate-primary);
  border-right: 1px solid rgba(188, 171, 120, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body[data-theme="kwartalnik"] .hero-image-side {
  width: 100%;
  height: 100%;
}

body[data-theme="kwartalnik"] .image-container {
  width: 100%;
  height: 100%;
}

body[data-theme="kwartalnik"] .hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  border-radius: 0;
  box-shadow: none;
  filter: grayscale(100%) sepia(12%) contrast(108%);
}

body[data-theme="kontemplacja"] .hero {
  background-color: var(--color-slate-primary);
}

body[data-theme="kontemplacja"] .hero-grid {
  grid-template-columns: 1fr;
  }

body[data-theme="kontemplacja"] .hero-image-side {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  z-index: 1;
}

body[data-theme="kontemplacja"] .image-container {
  width: 100%;
  height: 100%;
}

body[data-theme="kontemplacja"] .hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% top; border-radius: 0;
  border: none;
  box-shadow: none;
  filter: grayscale(15%) brightness(100%) contrast(100%);
}

body[data-theme="kontemplacja"] .image-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(20, 32, 40, 1) 0%, rgba(20, 32, 40, 0.7) 40%, rgba(20, 32, 40, 0.15) 75%, transparent 100%),
              linear-gradient(to top, rgba(20, 32, 40, 0.5) 0%, transparent 30%);
  z-index: 2;
  pointer-events: none;
}

body[data-theme="kontemplacja"] .hero-text-side {
  position: relative;
  z-index: 3;
  padding: 4rem 2rem 4rem 0;
  max-width: 700px;
  align-items: flex-start;
  text-align: left;
  justify-content: center;
}

body[data-theme="kontemplacja"] .hero-title {
  font-size: 3.4rem;
  font-weight: 300;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

body[data-theme="kontemplacja"] .hero-quote {
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
  text-align: left;
  max-width: 520px;
  font-size: 1.25rem;
  font-weight: 300;
}

body[data-theme="kontemplacja"] .hero-cta {
  justify-content: flex-start;
}

body[data-theme="kontemplacja"] .about-description {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--text-sub);
  line-height: 1.8;
  letter-spacing: 0.015em;
}

body[data-theme="kontemplacja"] .about-description strong {
  font-weight: 500;
  color: var(--accent);
}

body[data-theme="kontemplacja"] .pillar-title {
  font-weight: 500;
  font-size: 1.1rem;
}

body[data-theme="kontemplacja"] .pillar-desc {
  font-weight: 300;
  line-height: 1.6;
  opacity: 0.9;
}

body[data-theme="warsztat"] .hero-grid {
  grid-template-columns: 1fr 1fr;
  direction: rtl; }

body[data-theme="warsztat"] .hero-text-side {
  direction: ltr;
  padding: 4rem 5rem 4rem 6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 2px solid var(--accent);
  background-color: var(--color-slate-primary);
}

body[data-theme="warsztat"] .hero-image-side {
  direction: ltr;
  width: 100%;
  height: 100%;
  position: relative;
}

body[data-theme="warsztat"] .image-container {
  width: 100%;
  height: 100%;
}

body[data-theme="warsztat"] .hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  border: none;
  box-shadow: none;
  filter: grayscale(100%) contrast(115%);
}

body[data-theme="warsztat"] .image-container::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px dashed rgba(188, 171, 120, 0.35);
  pointer-events: none;
  z-index: 2;
}

body[data-theme="warsztat"] .image-container::after {
  content: '[ REC 01 ]';
  position: absolute;
  top: 35px;
  left: 35px;
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  z-index: 3;
}

.menu-toggle {
  display: none;
}

.ep-details-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--text-main);
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.4;
  display: none;
}

@media (max-width: 900px) {
  body {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 1.8rem;
  }

  .section-label {
    font-size: 0.7rem;
  }

  header {
    position: relative;
    z-index: 200;
  }

  header .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 210;
    padding: 0;
    position: relative;
  }

  header .hamburger-bar {
    display: block;
    width: 100%;
    height: 1.5px;
    background-color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: center;
  }

  header.menu-open .hamburger-bar:nth-child(1) {
    transform: translateY(7.25px) rotate(45deg);
    background-color: var(--accent);
  }
  header.menu-open .hamburger-bar:nth-child(2) {
    opacity: 0;
  }
  header.menu-open .hamburger-bar:nth-child(3) {
    transform: translateY(-7.25px) rotate(-45deg);
    background-color: var(--accent);
  }

  header nav {
    position: fixed;
    inset: 0;
    background-color: rgba(12, 20, 25, 0.97);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.35s;
  }

  header.menu-open nav {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  header nav ul {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  header nav ul li a {
    font-size: 1.1rem;
    letter-spacing: 0.2em;
  }

  .hero {
    height: auto;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
  }

  body[data-theme="kwartalnik"] .hero-grid,
  body[data-theme="kontemplacja"] .hero-grid,
  body[data-theme="warsztat"] .hero-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  body[data-theme="kwartalnik"] .hero-text-side,
  body[data-theme="warsztat"] .hero-text-side {
    padding: 3rem 1.5rem;
    height: auto;
    border: none;
    align-items: center;
    text-align: center;
  }

  body[data-theme="kontemplacja"] .hero-text-side {
    padding: 3rem 1.5rem 4rem;
    height: auto;
    min-height: calc(100vh - var(--header-height));
    border: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 3;
  }

  body[data-theme="kwartalnik"] .hero-image-side,
  body[data-theme="warsztat"] .hero-image-side {
    height: 400px;
    width: 100%;
    position: relative;
    padding: 2rem;
  }

  body[data-theme="kontemplacja"] .hero-image-side {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    display: block;
    z-index: 1;
    -webkit-mask-image: none;
    mask-image: none;
  }

  body[data-theme="kontemplacja"] .image-container {
    width: 100%;
    height: 100%;
    max-width: none;
    aspect-ratio: auto;
  }

  body[data-theme="kontemplacja"] .image-container::after {
    background: linear-gradient(to bottom,
      rgba(20, 32, 40, 0.75) 0%,
      rgba(20, 32, 40, 0.5) 40%,
      rgba(20, 32, 40, 0.7) 70%,
      rgba(20, 32, 40, 0.95) 100%) !important;
  }

  body[data-theme="kontemplacja"] .hero-photo {
    object-position: center 20%;
    opacity: 0.35;
  }

  body[data-theme="kontemplacja"] .hero-podcast-title {
    -webkit-text-stroke: 1.6px var(--accent) !important;
    font-weight: 400 !important;
  }

  .hero-meta {
    font-size: 0.65rem;
  }

  body[data-theme="kontemplacja"] .hero-quote {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 2rem;
    padding-left: 0;
    border-left: none;
  }

  body[data-theme="kontemplacja"] .hero-cta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    width: 100%;
    justify-content: center;
  }

  body[data-theme="kontemplacja"] .hero-cta .btn {
    margin: 0;
    font-size: 0.7rem;
    padding: 0.75rem 1.2rem;
  }

  body[data-theme="kontemplacja"] .hero-cta .btn-primary {
    width: 100%;
    font-size: 0.75rem;
    padding: 0.85rem 1.5rem;
  }

  body[data-theme="kontemplacja"] .hero-cta .btn-secondary {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    padding: 0.75rem 0.8rem;
  }

  .episode-title-featured {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .episode-summary {
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
  }

  .episode-content-wrapper {
    padding: 1.5rem !important;
  }

  .episode-header-meta {
    gap: 0.5rem;
    font-size: 0.7rem;
    flex-wrap: wrap;
  }

  .episode-header-meta .meta-dot {
    opacity: 0.3;
    font-size: 0.4rem;
  }

  .about-description {
    font-size: 0.95rem !important;
  }

  .pillar-title {
    font-size: 1rem;
  }

  .pillar-desc {
    font-size: 0.85rem;
  }

  .ep-number {
    width: 70px;
    font-size: 0.7rem;
  }

  .ep-title {
    font-size: 0.82rem;
  }

  .ep-details-inner {
    padding: 0.5rem 0 1.2rem calc(70px + 1rem);
  }

  .ep-details-title {
    font-size: 1rem;
    display: block;
  }

  .ep-desc {
    font-size: 0.82rem;
  }

  .newsletter-title {
    font-size: 1.5rem !important;
  }

  .newsletter-desc {
    font-size: 0.95rem !important;
  }

  .support-desc {
    font-size: 0.95rem !important;
  }

  .support-quote {
    font-size: 0.95rem !important;
  }

  .author-bio p {
    font-size: 0.95rem !important;
  }

  .author-bio p.highlight {
    font-size: 0.95rem !important;
  }
}

.about {
  padding: var(--container-padding);
  background-color: var(--bg-sub);
  border-bottom: var(--border-subtle);
  transition: var(--transition-smooth);
}

.section-label {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  margin-bottom: 1rem;
  display: block;
  font-family: var(--font-ui);
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

@media(max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  body[data-theme="kontemplacja"] .pillar {
    padding-left: 0;
    border-left: none;
  }
}

.about-description {
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.6;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.pillar {
  padding-left: 1.5rem;
  border-left: 2px solid var(--accent-light);
  transition: var(--transition-smooth);
}

.pillar:hover {
  border-left-color: var(--accent);
}

.pillar-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.pillar-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.latest-episode {
  padding: var(--container-padding);
  border-bottom: var(--border-subtle);
}

.episode-card-featured {
  display: flex;
  align-items: center;
  background-color: var(--bg-sub);
  border: var(--border-style);
  border-radius: 0;
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: var(--transition-smooth);
}

@media(max-width: 900px) {
  .episode-card-featured {
    flex-direction: column;
    height: auto;
  }
}

.episode-image-wrapper {
  width: 420px;
  height: 380px;
  flex-shrink: 0;
  align-self: center;
  margin-left: 3rem;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
}

@media(max-width: 900px) {
  .episode-image-wrapper {
    width: 100%;
    height: auto;
    aspect-ratio: 853 / 771;
    margin-left: 0;
    border-radius: 0;
  }
}

.episode-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
}

.episode-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 32, 40, 0.4), transparent);
}

.episode-content-wrapper {
  flex-grow: 1;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media(max-width: 900px) {
  .episode-content-wrapper {
    width: 100%;
    height: auto;
    padding: 2rem;
  }
}

.episode-header-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-ui);
  margin-bottom: 1rem;
}

#featured-tags {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.meta-dot {
  color: #ffffff;
  opacity: 0.5;
  font-size: 0.6rem;
  display: inline-block;
  transform: translateY(-0.06em);
}

.episode-title-featured {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.episode-summary {
  font-size: 1rem;
  color: var(--text-sub);
  margin-bottom: 2rem;
}

@media (max-width: 900px) {
  .episode-header-meta {
    gap: 0.4rem;
    font-size: 0.7rem;
    flex-wrap: wrap;
    row-gap: 0.3rem;
  }

  .episode-header-meta .meta-dot {
    opacity: 0.3;
    font-size: 0.4rem;
  }

  .episode-header-meta > :nth-child(4) {
    display: none;
  }

  .episode-title-featured {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
    line-height: 1.35;
  }

  .episode-summary {
    font-size: 0.82rem;
    margin-bottom: 1.2rem;
    line-height: 1.6;
  }

  .episode-content-wrapper {
    padding: 1.25rem !important;
  }

  .platforms-cta-label {
    font-size: 0.65rem;
  }

  .btn-platform-cta {
    font-size: 0.7rem;
    padding: 0.5rem 0.9rem;
  }
}

.episode-platforms-cta {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.platforms-cta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-weight: 500;
}

.platforms-cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-platform-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.4rem;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-sub);
  transition: var(--transition-fast);
  cursor: pointer;
}

.btn-platform-cta .icon-platform {
  width: 16px;
  height: 16px;
}

.btn-platform-cta:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-platform-cta.spotify:hover {
  border-color: #45a86d;
  color: #45a86d;
  background: rgba(69, 168, 109, 0.06);
}

.btn-platform-cta.apple:hover {
  border-color: #af58cb;
  color: #af58cb;
  background: rgba(175, 88, 203, 0.06);
}

.btn-platform-cta.youtube:hover {
  border-color: #cc5a52;
  color: #cc5a52;
  background: rgba(204, 90, 82, 0.06);
}

.archive {
  padding: var(--container-padding);
  background-color: var(--bg-sub);
  border-bottom: var(--border-subtle);
  transition: var(--transition-smooth);
}

.archive-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1.2rem;
  border-radius: 0;
  color: var(--text-sub);
  font-size: 0.85rem;
  cursor: pointer;
}

.filter-btn:hover, .filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background-color: var(--accent-light);
}

.archive-grid {
  display: flex;
  flex-direction: column;
}

.episode-row {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.episode-row:last-child {
  border-bottom: none;
}

.ep-row-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s ease;
}

.ep-row-header:hover {
  opacity: 0.75;
}

.ep-number {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
  width: 90px; }

.ep-title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 400;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.ep-row-header:hover .ep-title {
  color: var(--accent);
}

.ep-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-ui);
  flex-shrink: 0;
}

.ep-dot {
  color: #ffffff;
  opacity: 0.5;
  font-size: 0.6rem;
  display: inline-block;
  transform: translateY(-0.06em);
}

.ep-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  padding: 0;
  transition: color 0.2s ease;
}

.ep-row-header:hover .ep-toggle-btn {
  color: var(--accent);
}

.ep-toggle-icon {
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.vertical-line {
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.2s ease;
  transform-origin: center;
}

.episode-row.expanded .vertical-line {
  transform: scaleY(0);
  opacity: 0;
}

.ep-title-col {
  display: contents;
}

.ep-tags-col,
.ep-num-col,
.ep-toggle-col {
  display: contents;
}

.ep-tags {
  display: none;
}

.ep-row-details {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.episode-row.expanded .ep-row-details {
  grid-template-rows: 1fr;
}

.ep-details-content {
  overflow: hidden;
  min-height: 0;
  opacity: 0;
  transition: opacity 0.25s ease 0.05s;
}

.episode-row.expanded .ep-details-content {
  opacity: 1;
}

.ep-details-inner {
  padding: 0.5rem 0 1.5rem calc(100px + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.ep-details-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ep-tag {
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  background-color: var(--accent-light);
  color: var(--accent);
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ep-desc {
  font-size: 0.9rem;
  color: var(--text-sub);
  opacity: 0.8;
  line-height: 1.65;
  max-width: 700px;
}

.ep-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ep-actions-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-weight: 500;
}

.ep-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ep-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-sub);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ep-link-btn .icon-platform {
  width: 12px;
  height: 12px;
}

.ep-link-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.ep-link-btn.spotify:hover {
  border-color: #45a86d;
  color: #45a86d;
}

.ep-link-btn.apple:hover {
  border-color: #af58cb;
  color: #af58cb;
}

.ep-link-btn.youtube:hover {
  border-color: #cc5a52;
  color: #cc5a52;
}

.archive-load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.archive-load-more-container.hidden {
  display: none;
}

.load-more-btn {
  min-width: 220px;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .ep-row-header {
    gap: 1rem;
    padding: 0.9rem 0;
  }

  .ep-title {
    font-size: 0.88rem;
  }

  .ep-meta {
    display: none;
  }

  .ep-details-inner {
    padding: 0.5rem 0 1.2rem 0;
  }
}

.author {
  padding: var(--container-padding);
  border-bottom: var(--border-subtle);
}

.author-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

@media(max-width: 768px) {
  .author-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.author-image-wrapper {
  display: flex;
  justify-content: center;
}

.author-portrait {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: var(--border-radius);
  border: var(--border-style);
  box-shadow: var(--box-shadow);
}

body[data-theme="kontemplacja"] .author-image-wrapper {
  background-color: var(--bg-sub);
  border-radius: 50%;
  max-width: 320px;
  overflow: hidden;
  isolation: isolate; }

body[data-theme="kontemplacja"] .author-image-wrapper picture {
  display: block; width: 100%;
  height: 100%;
}

body[data-theme="kontemplacja"] .author-portrait {
  border-radius: 50%;
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: 50% 40%;
  mix-blend-mode: lighten;
  display: block;
  transform: translate3d(0, 0, 0); }

.author-bio p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.author-bio p.highlight {
  font-size: 1.25rem;
  color: var(--text-main);
  line-height: 1.6;
}

.newsletter {
  padding: var(--container-padding);
  background-color: var(--bg-sub);
  border-bottom: var(--border-subtle);
  transition: var(--transition-smooth);
  text-align: center;
}

.newsletter-box {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.newsletter-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  flex-direction: column;
}

@media(min-width: 600px) {
  .newsletter-form {
    flex-direction: row;
  }
}

.input-field {
  flex: 1;
  background-color: var(--bg-main);
  border: var(--border-style);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1rem 1.5rem;
  color: var(--text-main);
  border-radius: 0;
  outline: none;
  font-size: 1rem;
}

.input-field:focus {
  border-color: var(--accent);
}

body[data-theme="kwartalnik"] .input-field {
  border-bottom: 1px solid var(--accent);
}

body[data-theme="warsztat"] .input-field {
  border: 2px solid var(--accent);
}

.legal-notice {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  line-height: 1.5;
}

.support {
  padding: var(--container-padding);
  border-bottom: var(--border-subtle);
  text-align: center;
}

.support-wrapper {
  max-width: 750px;
  margin: 0 auto;
}

.support-quote {
  font-size: 1.4rem;
  line-height: 1.7;
  font-style: normal !important;
  color: var(--text-main);
  margin-bottom: 2rem;
}

body[data-theme="kwartalnik"] .support-quote {
  font-family: var(--font-heading);
}

.support-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

footer {
  }

.zen-footer {
  padding: 5rem 2rem 3rem;
  background-color: var(--bg-sub);
  color: var(--text-muted);
  border-top: var(--border-subtle);
  position: relative;
}

.zen-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
}

.zen-footer-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.footer-main-row {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media(min-width: 768px) {
  .footer-main-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-brand-side {
  text-align: left;
  max-width: 400px;
}

.footer-logo {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  display: inline-flex;
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
  opacity: 0.8;
}

.footer-info-side {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: flex-start;
}

@media(min-width: 768px) {
  .footer-info-side {
    align-items: flex-end;
  }
}

.footer-contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
}

.footer-contact-line .author-name {
  color: var(--text-main);
  font-weight: 500;
}

.footer-contact-line a {
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.footer-contact-line a:hover {
  color: var(--accent);
}

.footer-contact-line .meta-separator {
  color: var(--accent);
  opacity: 0.3;
  font-size: 0.6rem;
}

.footer-social-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.footer-social-line a {
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: var(--transition-fast);
}

.footer-social-line a:hover {
  color: var(--accent);
}

.slash-separator {
  color: var(--accent);
  opacity: 0.25;
  font-size: 0.75rem;
}

.footer-copyright-row {
  width: 100%;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.8;
}

.footer-copyright-row a {
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.footer-copyright-row a:hover {
  color: var(--accent);
}

@media(min-width: 600px) {
  .footer-copyright-row {
    flex-direction: row;
  }
}
