
.homepage-video-frame {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 22px;
  background: #dbe4ee;
}
.homepage-video-frame.ratio-9x16 {
  aspect-ratio: 9 / 16;
  max-width: 400px;
}
.homepage-video-frame.ratio-16x9 {
  aspect-ratio: 16 / 9;
  max-width: 960px;
}
.homepage-video-frame.ratio-1x1 {
  aspect-ratio: 1 / 1;
  max-width: 520px;
}
.homepage-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: transparent;
}

.homepage-video-card {
  width: min(650px, 50vw);
  margin: 0 auto;
}
.homepage-video-card__label {
  margin: 4px 0 10px;
  padding:4px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b7280;
}
.homepage-video-card__box {
  padding: 12px;
  border: 1px solid #dbe2ea;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}
button.homepage-video-card__summary {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 100%;
  display: flex;
  grid-template-columns: 112px minmax(0, 1fr) 44px;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin:0;
  padding:0 20px;
  border: 0 !important;
  outline: none;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
button.homepage-video-card__summary:hover,
button.homepage-video-card__summary:focus,
button.homepage-video-card__summary:active {
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
}
.homepage-video-card__thumb {
  display:none;
  width: 112px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: #dbe3ec;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}
.homepage-video-card__thumb img,
.homepage-video-card__thumb-fallback {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.homepage-video-card__thumb-fallback {
  background: linear-gradient(135deg, #e5e7eb 0%, #cbd5e1 100%);
}
.homepage-video-card__text {
  min-width: 0;
}
.homepage-video-card__title {
  display: block;
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.05;
  font-weight: 800;
  color: #1e293b;
  overflow-wrap: anywhere;
}
.homepage-video-card__sub {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  color: #64748b;
}
.homepage-video-card__toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #d7dee8;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  color: #0f172a;
}
.homepage-video-card__panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}
.homepage-video-card__footer {
  margin-top: 14px;
  text-align: center;
}
.homepage-video-card__footer p {
  margin: 0 0 12px;
}
.homepage-video-card__button {
  text-decoration: none;
}
.homepage-video-card__button.button,
.homepage-video-card__button.wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.homepage-video-card__button:not(.button):not(.wp-element-button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #1d4ed8;
  color: #fff !important;
  font-weight: 700;
}
@media (max-width: 640px) {
  button.homepage-video-card__summary {
    grid-template-columns: 84px minmax(0, 1fr) 38px;
    gap: 12px;
  }
  .homepage-video-card__thumb {
    width: 84px;
    border-radius: 12px;
  }
  .homepage-video-card__title {
    font-size: 18px;
  }
  .homepage-video-card__toggle {
    width: 38px;
    height: 38px;
    font-size: 24px;
  }
}
