/* Recording detail: header, steps, tabs, summary, transcript, sticky player, rename sheet. */

.detail {
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 20px 180px;
  /* Opacity only: a transform here would trap the fixed player inside the article. */
  animation: fade 0.35s ease both;
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
.detail--loading {
  padding-top: 48px;
}
.skeleton-title {
  height: 64px;
  margin-bottom: 20px;
}
.skeleton-lines {
  height: 220px;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: -6px;
  color: var(--ink-2);
  font-size: 14px;
}
.detail__date {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 6px;
  color: var(--ink-3);
  font-size: 14px;
}
.detail__date::first-letter {
  text-transform: uppercase;
}
.detail__date .badge {
  margin-left: 0;
}
.detail__title {
  margin: 0 0 14px;
  font: 400 clamp(34px, 6vw, 52px) / 1.02 var(--serif);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.title-edit {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.title-edit input {
  flex: 1;
  font: 400 32px/1.1 var(--serif);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 4px 10px;
}
.detail__speakers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.speaker-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
}
.speaker-chip i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--spk);
}
.speaker-chip small {
  color: var(--ink-3);
  font-weight: 400;
}
.speaker-chip:hover {
  border-color: var(--spk);
}
.detail__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 14px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
}
.spacer {
  flex: 1;
}
@media (max-width: 560px) {
  .detail__actions .btn__label {
    display: none;
  }
  .detail__actions .btn--small {
    width: 40px;
    padding: 0;
  }
}

.steps {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.steps li {
  flex: 1;
  padding-top: 8px;
  border-top: 3px solid var(--rule);
  font-size: 13px;
  color: var(--ink-3);
}
.steps li.is-done {
  border-color: var(--ink);
  color: var(--ink-2);
}
.steps li.is-now {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 500;
  animation: pulse-border 1.4s ease-in-out infinite;
}
@keyframes pulse-border {
  50% {
    border-color: var(--accent-soft);
  }
}
.form-error {
  color: var(--accent);
  font-size: 14px;
}

.tabs {
  position: sticky;
  top: calc(var(--topbar) - 1px);
  z-index: 5;
  display: flex;
  gap: 22px;
  margin: 22px -20px 0;
  padding: 0 20px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 1024px) {
  .tabs {
    top: 0;
  }
}
.tabs button {
  padding: 12px 0 10px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: var(--ink-3);
  font-weight: 500;
}
.tabs button[aria-selected="true"] {
  color: var(--ink);
  border-color: var(--accent);
}
.tabs .mono {
  color: var(--ink-3);
  margin-left: 4px;
}
.detail__body {
  padding-top: 22px;
}

/* Summary */
.summary__lead {
  margin: 0;
  font: 400 clamp(21px, 3.2vw, 25px) / 1.38 var(--serif);
  text-wrap: pretty;
}
.summary__mood {
  margin: 12px 0 0;
  font: italic 400 18px/1.3 var(--serif);
  color: var(--ink-3);
}
.summary__mood::before {
  content: "Nálada: ";
  font-style: normal;
  font-family: var(--sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.summary--empty {
  padding: 32px 0;
  color: var(--ink-2);
}
.block {
  margin-top: 30px;
}
.block__title,
.label {
  margin: 0 0 10px;
  font: 600 12px/1 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.points {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: p;
}
.points li {
  position: relative;
  padding: 8px 0 8px 34px;
  border-bottom: 1px dashed var(--rule);
}
.points li::before {
  counter-increment: p;
  content: counter(p, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 10px;
  font: 400 12px var(--mono);
  color: var(--accent);
}
.todo {
  margin: 0;
  padding: 0;
  list-style: none;
}
.todo li {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  align-items: flex-start;
}
.todo__box {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 7px;
  border: 1.5px solid var(--ink-3);
  display: grid;
  place-items: center;
  color: var(--accent-ink);
  transition: background 0.15s, border-color 0.15s;
}
.todo li.is-done .todo__box {
  background: var(--ok);
  border-color: var(--ok);
}
.todo li.is-done span {
  color: var(--ink-3);
  text-decoration: line-through;
}
.todo__owner {
  font-style: normal;
  font-size: 12px;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink-2);
}
.moments {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--rule);
}
.moment {
  display: flex;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 8px 0 8px 16px;
  position: relative;
  border-radius: 0 10px 10px 0;
}
.moment::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 15px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--accent);
}
.moment:hover {
  background: var(--surface);
}
.moment__time {
  flex: none;
  color: var(--accent);
  padding-top: 2px;
}
.summary__meta {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.people {
  margin: 14px 0 0;
  color: var(--ink-2);
}
.people .label {
  display: inline;
  margin-right: 6px;
}

/* Transcript */
.transcript__tools {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.search-inline {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink-3);
}
.search-inline input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--ink);
}
.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink-2);
}
.chip-btn.is-on {
  border-color: var(--ink);
  color: var(--ink);
}
.turns {
  list-style: none;
  margin: 0;
  padding: 0;
}
.turn {
  position: relative;
  padding: 10px 12px 10px 16px;
  margin: 0 -12px 2px -16px;
  border-radius: 12px;
  transition: background 0.2s;
}
.turn::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 3px;
  background: var(--spk);
  opacity: 0.55;
}
.turn--now {
  background: var(--surface);
  box-shadow: var(--shadow);
}
.turn--now::before {
  opacity: 1;
}
.turn__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 2px;
}
.turn__who {
  font: 600 12.5px/1 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--spk);
  filter: saturate(0.9) brightness(0.9);
}
.turn__time {
  color: var(--ink-3);
}
.turn__time:hover {
  color: var(--accent);
}
.turn__text {
  margin: 0;
  cursor: pointer;
  font-size: 16.5px;
  line-height: 1.6;
}
.turn--empty {
  color: var(--ink-3);
}

/* Player */
.player {
  position: fixed;
  z-index: 30;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  max-width: 736px;
  margin: 0 auto;
  padding: 14px 16px 10px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--rule);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.45);
}
@media (min-width: 1024px) {
  .player {
    left: calc(420px + 24px);
    right: 24px;
  }
}
.player__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.player__controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.player__time {
  min-width: 64px;
  color: var(--ink-2);
}
.player__right {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  min-width: 64px;
}
.player__time--total {
  color: var(--ink-3);
  text-align: right;
}
.play-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  transition: transform 0.12s, background 0.2s;
}
.play-btn:hover {
  background: var(--accent);
  color: var(--accent-ink);
}
.play-btn:active {
  transform: scale(0.95);
}
.rate-btn {
  padding: 3px 7px;
  border-radius: 7px;
  border: 1px solid var(--rule);
  color: var(--ink-2);
}
@media (max-width: 420px) {
  .player__time--total {
    display: none;
  }
}

/* Rename sheet */
.sheet {
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 22px;
  width: min(420px, calc(100vw - 32px));
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.sheet::backdrop {
  background: rgba(20, 17, 14, 0.45);
  backdrop-filter: blur(3px);
}
.sheet__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font: 400 30px/1.1 var(--serif);
}
.sheet__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.sheet__hint {
  color: var(--ink-2);
  font-size: 14px;
}
.sheet__input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--rule);
  background: var(--paper);
  font-size: 17px;
}
.sheet__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
