/*
 * marketing-reel — the Show reel on the home page (ch. 16
 * E-NEW-show-reel-1): a phone-shaped frame holding three real screenshots
 * of the sample week, the clip's line as a subtitle over the bottom of the
 * frame, and the play button under it. Mobile first: the frame is 280px
 * wide and centred at 320; from 900 it sits in the Show section's right
 * column at 300px. Split from marketing-sections.css at the per-file
 * ceiling; linked after it.
 */
.mk .reel {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: 100%;
}
.mk .reel-phone {
  position: relative;
  width: min(280px, 100%);
  aspect-ratio: 390 / 600;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--bg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.mk .reel-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.mk .reel-frame.is-current {
  opacity: 1;
}
.mk .reel-sub {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.78);
  color: var(--text);
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.mk .reel-sub b {
  display: block;
  margin-bottom: 2px;
  color: var(--amber);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mk .reel-bar {
  display: grid;
  gap: 8px;
  width: min(280px, 100%);
}
.mk .reel-play {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.mk .reel-play:hover {
  border-color: #3a3a3a;
}
.mk .reel-play small {
  color: var(--sub);
  font-size: 12px;
  font-weight: 600;
}
.mk .reel-play svg {
  color: var(--amber);
  flex: none;
}
/* While the clip plays the triangle is a pair of bars, drawn with borders
   so no second icon is needed. */
.mk .reel.is-playing .reel-play svg {
  display: none;
}
.mk .reel.is-playing .reel-play::before {
  content: '';
  flex: none;
  width: 4px;
  height: 14px;
  border-left: 4px solid var(--amber);
  border-right: 4px solid var(--amber);
  box-sizing: content-box;
  margin-right: 6px;
}
.mk .reel-track {
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}
.mk .reel-track i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--amber);
  transition: width 0.25s linear;
}
/* The native control stands in until the script is ready (and comes back
   if the browser refuses to play); the transcript is for a reader. */
.mk .reel audio {
  width: min(280px, 100%);
}
.mk .reel.is-ready audio {
  display: none;
}
.mk .reel-lines {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
@media (prefers-reduced-motion: reduce) {
  .mk .reel-frame,
  .mk .reel-track i {
    transition: none;
  }
}
@media (min-width: 900px) {
  .mk .reel-phone,
  .mk .reel-bar,
  .mk .reel audio {
    width: 300px;
  }
}
