/* ==========================================================================
   The Podcast — ON AIR sign, turntable, clipboard rundowns, session log
   ========================================================================== */

.label--spaced { letter-spacing: 0.28em; }

/* ---------- ON AIR sign ---------- */

.pod-head { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 6vw, 4.5rem); }

/* show art: an album sleeve with the record sliding out */
.pod-cover {
  position: relative;
  display: block;
  width: min(70vw, 20rem);
  margin-top: clamp(1.75rem, 5vw, 2.5rem);
  margin-right: 12%;
  aspect-ratio: 1;
}
.pod-cover__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 18px 36px -14px rgba(0, 0, 0, 0.55), 0 4px 10px rgba(0, 0, 0, 0.2);
  transform: rotate(-2deg);
  transition: transform 0.35s var(--ease);
}
.pod-cover__record {
  position: absolute;
  top: 4%;
  right: -14%;
  width: 92%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, #C8102E 0 17%, #0E0E0E 17.5% 18.5%, transparent 19%),
    repeating-radial-gradient(circle, #151515 0 2px, #0B0B0B 2px 4px);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.6);
  transition: transform 0.5s var(--ease);
}
.pod-cover:hover .pod-cover__img,
.pod-cover:focus-visible .pod-cover__img { transform: rotate(0deg) translateX(-4%); }
.pod-cover:hover .pod-cover__record,
.pod-cover:focus-visible .pod-cover__record { transform: translateX(10%) rotate(40deg); }
.pod-cover:focus-visible { outline: none; }
.pod-cover:focus-visible .pod-cover__img { outline: 3px solid var(--accent); outline-offset: 4px; }

@media (min-width: 56em) {
  .pod-head { display: grid; grid-template-columns: minmax(0, 1fr) 24rem; column-gap: clamp(2rem, 5vw, 5rem); align-items: start; }
  .pod-head > * { grid-column: 1; }
  .pod-head > .pod-cover { grid-column: 2; grid-row: 1 / span 4; align-self: center; width: 100%; margin: 0 14% 0 0; max-width: 21rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pod-cover__img, .pod-cover__record { transition: none; }
}

.on-air {
  position: relative;
  display: inline-block;
  padding: clamp(0.5rem, 1.2vw, 0.75rem);
  border-radius: 12px;
  background: linear-gradient(180deg, #2A2A2A, #111);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5);
}
.on-air__screw {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #777;
}
.on-air__screw:nth-child(1) { top: 5px; left: 5px; }
.on-air__screw:nth-child(2) { top: 5px; right: 5px; }
.on-air__screw:nth-child(4) { bottom: 5px; left: 5px; }
.on-air__screw:nth-child(5) { bottom: 5px; right: 5px; }

.on-air__panel {
  display: block;
  padding: 0.5em 1.1em 0.4em;
  border-radius: 6px;
  background: radial-gradient(ellipse at 50% 40%, #E8243F, var(--accent) 60%, #9E0B23);
  font-size: clamp(1.75rem, 6vw, 4rem);
  animation: on-air-glow 2.8s ease-in-out infinite;
}
.on-air__text {
  display: block;
  color: #FFF4F5;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 6px rgba(255, 220, 225, 0.9), 0 0 18px rgba(255, 80, 100, 0.8);
}

@keyframes on-air-glow {
  0%, 100% { box-shadow: 0 0 14px 2px rgba(200, 16, 46, 0.45), 0 0 46px 8px rgba(200, 16, 46, 0.22); }
  50%      { box-shadow: 0 0 24px 6px rgba(200, 16, 46, 0.65), 0 0 80px 18px rgba(200, 16, 46, 0.32); }
}

.pod-title { margin-top: clamp(1.5rem, 4vw, 2.5rem); font-size: clamp(3.5rem, 13vw, 10rem); }

/* ---------- Studio layout ---------- */

.studio {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
  padding-bottom: clamp(4.5rem, 10vw, 8rem);
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

@media (min-width: 60em) {
  .studio { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
}

/* ---------- Turntable ---------- */

.turntable {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.28));
}

.tt-record {
  transform-box: view-box;
  transform-origin: 210px 210px;
  animation: tt-spin 1.8s linear infinite;   /* 33⅓ rpm */
  animation-play-state: paused;
}
.is-playing .tt-record { animation-play-state: running; }
@keyframes tt-spin { to { transform: rotate(360deg); } }

.tt-arm {
  transform-box: view-box;
  transform-origin: 455px 75px;
  transform: rotate(-24deg);                  /* resting off the record */
  transition: transform 1.1s cubic-bezier(0.45, 0, 0.2, 1);
}
.is-playing .tt-arm { transform: rotate(0deg); }

.tt-label {
  fill: #fff;
  font-family: var(--font-display);
}
.tt-label--brand { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; fill-opacity: 0.85; }
.tt-label--num { font-size: 36px; letter-spacing: 0.04em; }
.tt-label--title { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }

.tt-led { fill: #4A0B15; transition: fill 0.3s; }
.is-playing .tt-led { fill: #FF3B55; filter: drop-shadow(0 0 4px #FF3B55); }
.tt-small { fill: #8A8A8A; font-family: var(--font-body); font-size: 11px; letter-spacing: 0.08em; }

/* ---------- Player controls ---------- */

.player { margin-top: 1.75rem; }

.player__now { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 0.9rem; }
.player__ep {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.1;
}

.player__controls {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 1.1rem;
}

.player__play {
  display: grid;
  place-items: center;
  flex: none;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}
.player__play:hover { background: var(--text); }
.player__play:active { transform: scale(0.96); }
.player__play svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }
.player__play .icon-pause,
.is-playing .player__play .icon-play { display: none; }
.is-playing .player__play .icon-pause { display: block; }

.player__bar { flex: 1; min-width: 0; }
.player__time {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

/* Red progress bar (a range input, so it works with the keyboard too) */
.seek {
  --pct: 0%;
  display: block;
  width: 100%;
  height: 1.5rem;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
          appearance: none;
}
.seek::-webkit-slider-runnable-track {
  height: 3px;
  background: linear-gradient(var(--accent), var(--accent)) 0 0 / var(--pct) 100% no-repeat, var(--hairline);
}
.seek::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -5.5px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  -webkit-appearance: none;
}
.seek::-moz-range-track { height: 3px; background: var(--hairline); }
.seek::-moz-range-progress { height: 3px; background: var(--accent); }
.seek::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--accent); }
.seek:focus-visible { outline-offset: 4px; }

.player__note { margin-top: 0.9rem; color: var(--muted); font-size: 0.875rem; }
.player__links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; margin-top: 0.6rem; }
.player__links a {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* ---------- Clipboard ---------- */

.clipboard-wrap { max-width: 32rem; width: 100%; justify-self: center; }

.clipboard {
  position: relative;
  margin-top: 1.25rem;
  padding: 3.25rem 1.1rem 1.25rem;
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.12), transparent 60%),
    linear-gradient(160deg, #A87444, #8A5A30 55%, #7A4E28);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25), 0 22px 36px -18px rgba(0, 0, 0, 0.55);
}

.clipboard__clip {
  position: absolute;
  top: -1.1rem;
  left: 50%;
  z-index: 50;
  width: 46%;
  height: 3.6rem;
  border-radius: 12px 12px 6px 6px;
  background: linear-gradient(180deg, #F2F2F2, #B9B9B9 55%, #DADADA);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.15);
  transform: translateX(-50%);
}
.clipboard__clip::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 50%;
  width: 1.5rem;
  height: 0.75rem;
  margin-left: -0.75rem;
  border-radius: 999px;
  background: #7A4E28;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.5);
}

.clipboard__stack {
  display: grid;
  perspective: 1400px;
  touch-action: pan-y;
}

.sheet {
  --d: 0;
  --tilt: 0;
  position: relative;
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  min-height: 27rem;
  padding: 1.5rem 1.4rem 1.4rem;
  background:
    linear-gradient(rgba(0, 0, 0, 0.025), rgba(0, 0, 0, 0)) 0 0 / 100% 3rem no-repeat,
    #FCFBF6;
  color: #1A1A1A;
  font-family: "Courier Prime", "Courier New", Courier, monospace;
  font-size: 0.9375rem;
  line-height: 1.5;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transform-origin: 50% 0;
  transform: translate(calc(var(--d) * 3px), calc(var(--d) * 6px)) rotate(calc(var(--d) * var(--tilt) * 1deg));
  transition: transform 0.6s var(--ease), opacity 0.45s var(--ease), visibility 0s;
}
.sheet.is-flipped {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6%) rotateX(-105deg);
  transition: transform 0.6s var(--ease), opacity 0.45s var(--ease) 0.1s, visibility 0s 0.6s;
}

.sheet__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #1A1A1A;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sheet__ep {
  margin-top: 1.1rem;
  color: var(--accent);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.sheet__title {
  margin-top: 0.15rem;
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: uppercase;
}
.sheet__log { margin: 1rem 0 0; }
.sheet__log div {
  display: flex;
  gap: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.28);
}
.sheet__log dt { flex: none; width: 6.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8125rem; }
.sheet__log dd { margin: 0; }
.sheet__label {
  margin-top: 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sheet__desc { margin: 0.25rem 0 1.5rem; }

.sheet__play {
  align-self: flex-start;
  margin-top: auto;
  padding: 0.55rem 1.1rem 0.5rem;
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.sheet__play:hover,
.sheet.is-loaded .sheet__play { background: var(--accent); color: #fff; }


/* Folded corner: click it to flip the sheet up */
.sheet__corner {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  border: 0;
  background: linear-gradient(to top left, #CDBFA4 0 50%, #EFE9DA 50%);
  box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: width 0.25s var(--ease), height 0.25s var(--ease);
}
.sheet__corner:hover,
.sheet__corner:focus-visible { width: 4.25rem; height: 4.25rem; }
.sheet__corner:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.clipboard__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.75rem;
  margin-top: 1.25rem;
}
.clipboard__back[hidden] { display: inline-flex; visibility: hidden; }
.clipboard__count {
  margin-left: auto;
  color: var(--muted);
  font-family: "Courier Prime", "Courier New", monospace;
  font-size: 0.875rem;
}
.clipboard__hint { margin-top: 0.5rem; color: var(--muted); font-size: 0.8125rem; }

/* ---------- Session log ---------- */

.session-log { padding-bottom: clamp(4.5rem, 10vw, 8rem); }
.session-log .section-title { margin: 0.75rem 0 clamp(1.5rem, 3vw, 2.5rem); }

.log { border-top: 1px solid var(--hairline); }
.log li { border-bottom: 1px solid var(--hairline); }

.log__row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  grid-template-areas: "num title arrow" "num meta arrow";
  align-items: baseline;
  column-gap: clamp(1rem, 3vw, 2.5rem);
  width: 100%;
  padding: clamp(1.25rem, 3vw, 1.9rem) 0;
  border: 0;
  background: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.45s var(--ease), color 0.25s;
}
.log__num {
  grid-area: num;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
}
.log__title {
  grid-area: title;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  line-height: 1;
}
.log__meta { grid-area: meta; margin-top: 0.4rem; color: var(--muted); font-size: 0.875rem; }
.log__arrow {
  grid-area: arrow;
  align-self: center;
  font-size: 1.5rem;
  opacity: 0;
  transform: translateY(0.4em);
  transition: opacity 0.3s, transform 0.45s var(--ease);
}
.log__row:hover,
.log__row:focus-visible { color: var(--accent); transform: translateX(clamp(0.5rem, 2vw, 1.25rem)); }
.log__row:hover .log__arrow,
.log__row:focus-visible .log__arrow { opacity: 1; transform: none; }
@media (hover: none) { .log__row:hover { transform: none; } }

/* ---------- Phones ---------- */

@media (max-width: 40em) {
  .sheet { min-height: 25rem; padding: 1.25rem 1.1rem 1.1rem; font-size: 0.875rem; }
  .sheet__log dt { width: 5.5rem; }
  .log__row { grid-template-columns: 3.25rem minmax(0, 1fr) auto; }
}

/* ---------- Motion off: no spinning, no pulsing ---------- */

@media (prefers-reduced-motion: reduce) {
  .tt-record,
  .on-air__panel { animation: none !important; }
  .on-air__panel { box-shadow: 0 0 18px 4px rgba(200, 16, 46, 0.5), 0 0 60px 12px rgba(200, 16, 46, 0.25); }
}
