:root {
  color-scheme: light;
  --page-bg: #ececec;
  --panel-start: #6f80f2;
  --panel-end: #4557c7;
  --ink: #1f1f1f;
  --muted: #6d6d6d;
  --card-bg: #d7d7d7;
  --shadow: rgba(49, 64, 162, 0.25);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--ink);
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
}

button,
audio {
  font: inherit;
}

.page-shell {
  width: min(100%, 840px);
  margin: 0 auto;
  padding: 32px 28px 56px;
}

.hero {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  width: 100%;
  padding: 18px 22px;
  background: linear-gradient(180deg, var(--panel-start), var(--panel-end));
  border-radius: 28px;
  color: #fff;
  box-shadow: 0 14px 28px var(--shadow);
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 56px;
  height: 56px;
  padding: 8px;
  overflow: hidden;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(31, 31, 31, 0.06);
}

.brand-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.podcast-list {
  padding: 34px 0 0;
}

.podcast-list ul {
  list-style: none;
  margin: 0;
  padding: 18px;
  display: grid;
  gap: 18px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(69, 87, 199, 0.12);
  border-radius: 28px;
  box-shadow: 0 18px 36px rgba(69, 87, 199, 0.08);
}

.podcast-item {
  position: relative;
  display: grid;
  width: 100%;
}

.podcast-button {
  appearance: none;
  border: 0;
  padding: 10px 12px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  width: 100%;
  border-radius: 18px;
  transition: background-color 140ms ease, box-shadow 140ms ease;
}

.podcast-button:hover,
.podcast-button:focus-visible {
  background: rgba(111, 128, 242, 0.14);
  box-shadow: inset 0 0 0 1px rgba(69, 87, 199, 0.12);
}

.podcast-button:focus-visible {
  outline: 3px solid #4055d4;
  outline-offset: 2px;
}

.podcast-icon {
  width: 60px;
  height: 60px;
  padding: 8px;
  overflow: hidden;
  border: 1px solid rgba(31, 31, 31, 0.06);
  border-radius: 14px;
  background: var(--card-bg);
}

.podcast-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.podcast-title {
  margin: 0;
  display: block;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.podcast-meta {
  display: block;
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.player-modal[hidden] {
  display: none;
}

.player-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(16px, 1fr) minmax(0, 640px) minmax(16px, 1fr);
  align-items: center;
}

.player-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 47, 0.56);
}

.player-modal__panel {
  position: relative;
  grid-column: 2;
  border-radius: 22px;
  background: #f7f7f7;
  box-shadow: 0 26px 60px rgba(31, 31, 31, 0.22);
}

.player-modal__content {
  display: grid;
  gap: 20px;
  padding: 28px;
}

.player-modal__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.player-modal__header h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.close-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: #20308e;
  color: #fff;
  cursor: pointer;
}

#podcast-player {
  width: 100%;
}

.saved-position {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
}

@media (max-width: 720px) {
  .page-shell {
    padding: 18px 14px 34px;
  }

  .hero {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 16px;
    border-radius: 24px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    padding: 6px;
    border-radius: 12px;
  }

  .hero h1 {
    font-size: 1.45rem;
  }

  .podcast-button {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 8px 10px;
  }

  .podcast-icon {
    width: 44px;
    height: 44px;
    padding: 6px;
    border-radius: 12px;
  }

  .podcast-list ul {
    padding: 12px;
    gap: 12px;
    border-radius: 24px;
  }

  .podcast-title {
    font-size: 0.98rem;
  }

  .podcast-meta {
    margin-top: 4px;
    font-size: 0.78rem;
  }

  .player-modal {
    grid-template-columns: 10px minmax(0, 1fr) 10px;
  }

  .player-modal__panel {
    border-radius: 18px;
  }

  .player-modal__content {
    gap: 16px;
    padding: 18px 16px;
  }

  .player-modal__header {
    gap: 12px;
  }

  .player-modal__header h2 {
    font-size: 1.15rem;
  }

  .close-button {
    padding: 8px 14px;
  }
}
