.home-video-showcase {
  padding: 82px 0 94px;
  background: #f8faff;
  border-top: 1px solid #edf0f7;
}
.home-video-heading {
  margin-bottom: 38px;
  text-align: center;
}
.home-video-heading h2 {
  margin: 0;
  color: #172033;
  font-size: clamp(34px, 4.8vw, 62px);
  line-height: 1.06;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.home-video-heading h2 span { color: #e86850; }
.home-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.home-video-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #edf0f7;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgb(31 48 83 / .05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.home-video-card:hover, .home-video-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgb(31 48 83 / .12);
}
.home-video-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.home-video-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e9edf5;
}
.home-video-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.home-video-trigger:hover .home-video-cover img { transform: scale(1.04); }
.home-video-play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  color: #172033;
  background: rgb(255 255 255 / .95);
  box-shadow: 0 8px 24px rgb(0 0 0 / .15);
  transform: translate(-50%, -50%);
  transition: transform .2s ease, background-color .2s ease;
}
.home-video-play svg { width: 24px; height: 24px;  }
.home-video-trigger:hover .home-video-play { transform: translate(-50%, -50%) scale(1.1); background: #fff; }
.home-video-info {
  display: flex;
  align-items: center;
  min-height: 86px;
  padding: 20px 10px 20px 16px;
}
.home-video-title {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.home-video-share {
  display: grid;
  flex: none;
  width: 36px;
  height: 36px;
  padding: 7px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #67748b;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s ease, color .2s ease, background-color .2s ease;
}
.home-video-share svg { width: 20px; height: 20px; }
.home-video-info:hover .home-video-share,
.home-video-info:focus-within .home-video-share { opacity: 1; }
.home-video-share:hover, .home-video-share:focus-visible { color: #e86850; background: #fff0ec; }
.home-video-info strong {
  color: #172033;
  font-size: 18px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.home-video-share-status {
  position: fixed;
  z-index: 1001;
  top: calc(90px + env(safe-area-inset-top, 0px));
  left: 50%;
  padding: 9px 16px;
  border: 1px solid #e5eaf2;
  border-radius: 9px;
  background: #fff;
  color: #344054;
  box-shadow: 0 8px 24px rgb(31 48 83 / .14);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -12px);
  transition: opacity .2s ease, transform .2s ease;
}
.home-video-share-status:empty { display: none; }
.home-video-share-status::before {
  content: "✓";
  display: inline-grid;
  width: 18px;
  height: 18px;
  margin-right: 7px;
  place-items: center;
  border-radius: 50%;
  background: #e9f6ef;
  color: #23805d;
  vertical-align: middle;
}
.home-video-share-status.is-error::before { content: "!"; background: #fff0eb; color: #b75a40; }
.home-video-share-status.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .home-video-share { opacity: 1; } }

.home-video-dialog {
  width: min(960px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100dvh - 64px);
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 90px rgb(0 0 0 / .28);
}
.home-video-dialog::backdrop { background: rgb(8 17 32 / .7); }
.home-video-dialog-panel { position: relative; }
.home-video-dialog-actions {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: calc(100% + 10px);
  display: flex;
  gap: 8px;
}
.home-video-dialog-actions button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #172033;
  cursor: pointer;
}
.home-video-dialog-actions button:hover { background: #e86850; }
.home-video-dialog-actions svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.home-video-player { aspect-ratio: 16 / 9; background: #101725; }
.home-video-player video { display: block; width: 100%; height: 100%; object-fit: contain; background: #101725; }
.home-video-player video:fullscreen { width: 100vw; height: 100vh; object-fit: contain; }
@media (max-width: 900px) {
  .home-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 640px) {
  .home-video-showcase { padding: 62px 0 70px; }
  .home-video-grid { grid-template-columns: 1fr; }
  .home-video-info { min-height: 0; }
  .home-video-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 80px); }
}
@media (prefers-reduced-motion: reduce) {
  .home-video-card, .home-video-cover img, .home-video-play, .home-video-share, .home-video-share-status { transition: none; }
}
