/* Promo videos (www): the shared <dialog> player and the poster tiles that
   open it. Loaded by the homepage, /sell and /buy, which use different base
   stylesheets, so colours fall back to the brand hex values. */

.video-tile {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #23231F;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(35, 35, 31, 0.14);
}
.video-tile img,
.video-tile video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(20, 20, 18, 0.72));
  pointer-events: none;
}
.video-tile__label {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #FFFDF8;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
}
.video-tile__label small {
  display: block;
  font-weight: 400;
  font-size: 14px;
  opacity: 0.85;
}

/* The play disc: orange means "act". */
.play-icon {
  flex-shrink: 0;
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--action-primary, #EA6A1E);
  transition: background 0.15s ease, transform 0.15s ease;
}
.play-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #FFFDF8;
}
.video-tile:hover .play-icon,
.video-link:hover .play-icon { background: var(--action-primary-hover, #C9550F); transform: scale(1.05); }
.video-tile:focus-visible,
.video-link:focus-visible { outline: 3px solid #EA6A1E; outline-offset: 3px; }

/* A text-weight trigger, for use inside a section. */
.video-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.video-link .play-icon { width: 40px; height: 40px; }
.video-link .play-icon::before { border-width: 7px 0 7px 12px; }

/* The player. */
.video-dialog {
  width: min(1100px, 94vw);
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.video-dialog::backdrop { background: rgba(20, 20, 18, 0.86); }
.video-dialog__frame { position: relative; }
.video-dialog video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: #000;
}
.video-dialog__close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.14);
  color: #FFFDF8;
  font-size: 26px;
  line-height: 40px;
  cursor: pointer;
}
.video-dialog__close:hover { background: rgba(255, 253, 248, 0.26); }
.video-dialog__note {
  margin: 12px 2px 0;
  color: rgba(255, 253, 248, 0.72);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  .play-icon { transition: none; }
}
