/* The film: zenpayoff's big tool card holding the client's film. */
.film__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-block-end: 34px; }
.film__say { display: grid; gap: 10px; }
.film__say .lead { max-width: 560px; }

/* zenpayoff's segmented control: a green bar, the chosen part white */
.seg {
  display: flex;
  flex: none;
  padding: 5px;
  border-radius: 16px;
  background: var(--grad-btn);
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--c-green-deep) 70%, transparent);
}
.seg__b {
  padding: 10px 26px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--c-white);
  font-weight: 600;
  font-size: 1.06rem;
  cursor: pointer;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.seg__b:hover { background: rgba(255, 255, 255, .12); }
.seg__b.is-on { background: var(--c-white); color: var(--c-green-text); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }

.film__card {
  padding: 14px;
  border: 1px solid var(--c-line-strong);
  border-radius: 32px;
  background: var(--c-white);
  box-shadow: 0 30px 70px -40px color-mix(in srgb, var(--c-green-deep) 60%, transparent), 0 0 0 6px color-mix(in srgb, var(--c-green) 6%, transparent);
}
.film__frame { overflow: hidden; border: 1px solid var(--c-line); border-radius: 22px; background: var(--c-mist); }
.film__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding-inline: 16px;
  background: var(--c-paper-lit);
  border-block-end: 1px solid var(--c-line);
}
.film__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--c-line-strong); }
.film__bar span { margin-inline: auto; font-size: .82rem; color: var(--c-mute); }
.player { position: relative; aspect-ratio: 16 / 9; }
.player__v { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--c-mist); }
.player__go { display: none; }
html.js .player__go {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0;
  border: 0;
  background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--c-ink) 28%, transparent));
  cursor: pointer;
}
.player__btn {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--grad-btn);
  color: var(--c-white);
  font-size: 2.5rem;
  box-shadow: 0 0 0 12px rgba(255, 255, 255, .55), 0 0 0 13px color-mix(in srgb, var(--c-green-deep) 18%, transparent), 0 24px 50px -10px color-mix(in srgb, var(--c-green-deep) 70%, transparent);
  transition: transform var(--t-mid) var(--ease);
}
.player__go:hover .player__btn { transform: scale(1.06); }
.player__lbl { padding: 6px 18px; border-radius: var(--r-pill); background: var(--c-white); color: var(--c-ink); font-weight: 600; box-shadow: var(--sh-float); }
.player__lbl small { margin-inline-start: 4px; color: var(--c-mute); font-weight: 400; }
.player.is-playing .player__go { display: none; }

.chap { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-block-start: 14px; list-style: none; }
.chap button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  height: 100%;
  padding: 12px 14px;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  background: var(--c-paper-lit);
  font-size: .95rem;
  line-height: 1.5;
  text-align: start;
  cursor: pointer;
  transition: border-color var(--t-fast), background-color var(--t-fast);
}
.chap button:hover { border-color: var(--c-green-text); background: var(--c-white); }
.chap button.is-on { border-color: var(--c-green-text); background: var(--c-green-wash); }
.chap__t { font-size: .82rem; font-weight: 600; color: var(--c-green-text); }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    html.js .film__card { animation: film-in linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
    @keyframes film-in { from { transform: scale(.95) translateY(30px); } to { transform: none; } }
  }
}
/* the play triangle points forward: mirrored back on a right-to-left page so it keeps pointing the way video plays */
[dir="rtl"] .player__btn .icon { transform: none; }

@media (max-width: 1100px) { .chap { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .film__top { flex-direction: column; align-items: stretch; }
  .seg { align-self: flex-start; }
}
@media (max-width: 560px) {
  .seg { align-self: stretch; }
  .seg__b { flex: 1; padding: 10px 6px; font-size: .95rem; }
  .film__card { padding: 8px; border-radius: 22px; }
  .film__frame { border-radius: 16px; }
  .film__bar { height: 30px; }
  .film__bar span { display: none; }
  .player__btn { width: 76px; height: 76px; font-size: 1.9rem; box-shadow: 0 0 0 8px rgba(255, 255, 255, .55), 0 18px 36px -10px color-mix(in srgb, var(--c-green-deep) 70%, transparent); }
  .player__lbl { font-size: .9rem; padding: 4px 14px; }
  .chap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
