/* ── Orchard Video Log — Player & Gate Styles ─────────────────────────────── */

.ovl-wrapper {
  margin: 1.5em 0;
  font-family: inherit;
}

/* ── YouTube responsive wrapper ──────────────────────────────────────────── */
.ovl-youtube-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  background: #000;
  border-radius: 6px;
}
.ovl-youtube-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ── HTML5 video ─────────────────────────────────────────────────────────── */
.ovl-html5-wrap video {
  width: 100%;
  display: block;
  border-radius: 6px;
  background: #000;
}

/* ── Email gate ──────────────────────────────────────────────────────────── */
.ovl-gate {
  background: #f8f6f2;
  border: 1px solid #e0dbd2;
  border-radius: 8px;
  padding: 2em;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}
.ovl-gate-icon {
  font-size: 2.5em;
  color: #5a3e28;
  margin-bottom: 0.3em;
}
.ovl-gate-title {
  font-size: 1.2em;
  font-weight: 700;
  margin: 0 0 0.4em;
  color: #1a1a1a;
}
.ovl-gate-desc {
  font-size: 0.92em;
  color: #555;
  margin: 0 0 1.2em;
}
.ovl-gate-form {
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  align-items: stretch;
}
.ovl-gate-row {
  display: flex;
  gap: 0.6em;
}
.ovl-gate-row .ovl-input {
  flex: 1;
}
.ovl-input {
  padding: 0.6em 0.9em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95em;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
}
.ovl-input:focus {
  outline: none;
  border-color: #5a3e28;
  box-shadow: 0 0 0 2px rgba(90,62,40,0.15);
}
.ovl-gate-btn {
  background: #5a3e28;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.75em 1.4em;
  font-size: 0.95em;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
  font-weight: 600;
}
.ovl-gate-btn:hover:not(:disabled) { background: #3e2a1a; }
.ovl-gate-btn:disabled { opacity: 0.6; cursor: default; }

.ovl-gate-msg {
  font-size: 0.88em;
  padding: 0.5em 0.8em;
  border-radius: 4px;
  text-align: left;
}
.ovl-msg-error {
  background: #fff0f0;
  color: #c0392b;
  border: 1px solid #f5c6c6;
}
.ovl-msg-success {
  background: #f0fff4;
  color: #27ae60;
  border: 1px solid #a3e0b8;
}

.ovl-gate-pending {
  padding: 0.5em 0;
  font-size: 0.95em;
  color: #444;
}
.ovl-gate-pending-email {
  font-weight: 600;
  color: #5a3e28;
}

/* ── Gutenberg block preview ─────────────────────────────────────────────── */
.ovl-block-preview { pointer-events: none; }

@media (max-width: 480px) {
  .ovl-gate-row { flex-direction: column; }
  .ovl-gate { padding: 1.2em; }
}
