/* Real repair video tickets (templates/partials/repair_videos_section.html).
   Dark slate-900 work-order ticket with the one yellow-400 accent, on the light service pages.
   Corner scale: 2rem card, 1rem video. Only transform/opacity animate. */
.rv-list { display: grid; gap: 2rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 1024px) { .rv-list--two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.rv-card {
  position: relative; display: grid; gap: 1.5rem; padding: 1.25rem; border-radius: 2rem; background: #0f172a; color: #e2e8f0;
  box-shadow: 0 24px 50px -24px rgba(15, 23, 42, 0.55);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.rv-card:hover { transform: translateY(-4px); box-shadow: 0 32px 60px -24px rgba(15, 23, 42, 0.65); }
/* one video: video left, ticket slip right. two videos: stack inside each card. */
@media (min-width: 720px) { .rv-list:not(.rv-list--two) .rv-card { grid-template-columns: 260px minmax(0, 1fr); gap: 2rem; padding: 1.5rem; } }
/* ticket-stub notches where the video meets the slip (only in the side-by-side layout) */
@media (min-width: 720px) {
  .rv-list:not(.rv-list--two) .rv-card::before, .rv-list:not(.rv-list--two) .rv-card::after {
    content: ""; position: absolute; left: calc(1.5rem + 260px + 1rem); width: 1.5rem; height: 1.5rem; border-radius: 9999px; background: #fff; z-index: 1;
  }
  .rv-list:not(.rv-list--two) .rv-card::before { top: -0.75rem; }
  .rv-list:not(.rv-list--two) .rv-card::after { bottom: -0.75rem; }
}

.rv-frame {
  position: relative; width: 100%; max-width: 260px; margin-inline: auto; aspect-ratio: 9 / 16; overflow: hidden;
  border-radius: 1rem; background: #020617;
}
@media (min-width: 720px) { .rv-list:not(.rv-list--two) .rv-frame { margin-inline: 0; } }
.rv-facade { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.rv-facade:focus-visible { outline: 3px solid #facc15; outline-offset: -3px; }
.rv-thumb { display: block; width: 100%; height: 100%; object-fit: cover; }
.rv-play {
  position: absolute; inset: 0; margin: auto; width: 3.5rem; height: 3.5rem; border-radius: 9999px; display: grid; place-items: center;
  background: #facc15; color: #0f172a; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4); transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.rv-play::before { content: ""; position: absolute; inset: -6px; border-radius: 9999px; border: 2px solid rgba(250, 204, 21, 0.55); animation: rvPing 2.4s ease-out infinite; }
.rv-play svg { width: 1.5rem; height: 1.5rem; margin-left: 0.15rem; }
.rv-facade:hover .rv-play { transform: scale(1.08); }
.rv-facade:active .rv-play { transform: scale(0.95); }
@keyframes rvPing { 0% { transform: scale(1); opacity: 0.8; } 70%, 100% { transform: scale(1.45); opacity: 0; } }
.rv-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* sound toggle on a playing video */
.rv-sound {
  position: absolute; right: 0.6rem; bottom: 0.6rem; z-index: 3; display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border-radius: 9999px; border: 1px solid rgba(255, 255, 255, 0.5); background: rgba(15, 23, 42, 0.78); color: #fff; cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s;
}
.rv-sound svg { width: 1.2rem; height: 1.2rem; }
.rv-sound:hover { transform: scale(1.08); background: #0f172a; }
.rv-sound[aria-pressed="true"] { background: #facc15; border-color: #facc15; color: #0f172a; }
.rv-sound:focus-visible { outline: 3px solid #facc15; outline-offset: 2px; }

/* slip */
.rv-slip { min-width: 0; align-self: center; }
.rv-stamp {
  display: inline-block; padding: 0.4rem 0.65rem; border-radius: 0.375rem; background: #facc15; color: #0f172a;
  font: 700 0.6875rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.14em; text-transform: uppercase; transform: rotate(-1.5deg);
}
.rv-title { margin: 0.9rem 0 0; font-size: 1.25rem; font-weight: 800; line-height: 1.25; color: #fff; }
.rv-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.4rem 1rem; margin: 1rem 0 0; }
.rv-facts dt {
  font: 700 0.75rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.1em; text-transform: uppercase; color: #94a3b8;
}
.rv-facts dd { margin: 0; font-weight: 600; color: #f8fafc; overflow-wrap: anywhere; }
.rv-facts a { color: #f8fafc; text-decoration: underline; text-decoration-color: #475569; text-underline-offset: 4px; }
.rv-facts a:hover { text-decoration-color: #facc15; }

.rv-note { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed #475569; }
.rv-note__text {
  margin: 0; font-size: 1rem; line-height: 1.65; color: #cbd5e1;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; line-clamp: 5; overflow: hidden;
}
.rv-note.is-open .rv-note__text { display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; }
.rv-note__btn {
  min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer; color: #facc15;
  font: 700 0.75rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 4px;
}
.rv-note__btn:focus-visible { outline: 3px solid #facc15; outline-offset: 2px; }

.rv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 1.25rem; }
.rv-cta {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.5rem; border-radius: 9999px; background: #facc15; color: #0f172a;
  font-size: 0.875rem; font-weight: 800; text-decoration: none; transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s;
}
.rv-cta:hover { background: #fde047; transform: translateY(-1px); }
.rv-cta:active { transform: scale(0.97); }
.rv-cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.rv-more {
  display: inline-flex; align-items: center; min-height: 44px; font-size: 0.875rem; font-weight: 700; color: #e2e8f0;
  text-decoration: underline; text-decoration-color: #facc15; text-decoration-thickness: 2px; text-underline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .rv-card, .rv-card:hover, .rv-play, .rv-facade:hover .rv-play, .rv-facade:active .rv-play, .rv-sound, .rv-cta { transition: none; transform: none; }
  .rv-play::before { animation: none; }
}
