/* Video page
   Viewer toggles under the billing and the related-talks rail
   ---------------------------------------------------- */

/* Toggles: outlined blocks that flip to solid black when on.
   Labels never change; aria-pressed swaps the outline icon for the
   filled one, and only a liked heart turns red. */
.video-action {
  font-family: var(--font-body);
  color: var(--color-text);
  text-align: left;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.video-action:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.video-action__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.video-action__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.video-action__on,
.video-action[aria-pressed="true"] .video-action__off {
  display: none;
}

.video-action[aria-pressed="true"] .video-action__on {
  display: block;
}

.video-action--like[aria-pressed="true"] .video-action__icon {
  color: var(--color-accent);
}

.video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.video-actions .video-action {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  height: 3.25rem;
  padding: 0 1.25rem;
  border: 2px solid var(--color-border);
  background-color: var(--color-bg);
  font-size: 1rem;
  font-weight: 500;
}

.video-actions .video-action:hover {
  background-color: var(--color-bg-tertiary);
}

.video-actions .video-action[aria-pressed="true"] {
  background-color: var(--color-text);
  color: var(--color-text-inverse);
}

/* Phones: three equal cells, icon above label */
@media (max-width: 639px) {
  .video-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .video-actions .video-action {
    flex-direction: column;
    justify-content: center;
    gap: 0.375rem;
    height: 4.5rem;
    padding: 0 0.5rem;
    font-size: 0.875rem;
    text-align: center;
  }
}

/* Related talks rail */
.related-thumb {
  position: relative;
  flex-shrink: 0;
  width: 7.5rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--color-bg-tertiary);
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-thumb__time {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 0.125rem 0.375rem;
  background-color: var(--color-text);
  color: var(--color-text-inverse);
  font-size: 0.6875rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

/* Recording removed upstream: the player's black footprint stays, with
   the old address struck out in red as the one statement. */
.player-gone {
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  background: var(--color-bg-inverse);
  color: var(--color-text-inverse);
}

.player-gone-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-block: clamp(20px, 6vw, 64px);
}

.player-gone-address {
  margin: 0 0 clamp(4px, 2vw, 24px);
  max-width: 100%;
  font-size: clamp(18px, 5vw, 80px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
}

.player-gone-address del {
  color: var(--color-text-inverse-secondary);
  text-decoration-line: line-through;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: .08em;
}

.player-gone-title {
  margin: 0;
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.player-gone-note {
  margin: 0;
  max-width: 40em;
  color: var(--color-text-inverse-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.player-gone-search {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.player-gone-search:hover { color: var(--color-accent); }
.player-gone-search:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

@media (max-width: 599px) {
  .player-gone-body { gap: 4px; }
  .player-gone-note { display: none; }
}

/* Same strike as the placeholder's address, wherever a gone talk's title
   is listed: cards, the related rail, conference lineups, the talk page. */
.talk-gone {
  text-decoration-line: line-through;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: .08em;
}
