/* health-video.html — lite curated video library + submit (MVP) */

/* -------------------------------------------------------------------------- */
/* Header: voice / image / text search icons — match labtests & health-tips */
/* (Page had no overrides; header icons could stretch or lose square shape.) */
/* -------------------------------------------------------------------------- */
#header-container {
  width: 100% !important;
  position: relative !important;
  min-height: 200px !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

#header-container .search-input-wrapper,
.search-input-wrapper {
  position: relative !important;
  width: 100% !important;
  flex: 1 1 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

#header-container .header-mid,
.header-mid {
  position: relative !important;
  overflow: visible !important;
  min-height: 60px !important;
  flex-shrink: 0 !important;
}

#header-container .search-bar-container,
.search-bar-container {
  position: relative !important;
  display: flex !important;
  flex-shrink: 0 !important;
  flex-grow: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 40px !important;
  max-height: 60px !important;
  align-items: center !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

#header-container .search-actions,
.header-mid .search-actions,
.search-bar-container .search-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  flex-shrink: 0 !important;
}

#header-container .search-btn,
.header-mid .search-btn,
.search-bar-container .search-btn,
.search-input-wrapper .search-btn,
.search-actions .search-btn,
#header-container label.search-btn,
.header-mid label.search-btn,
.search-bar-container label.search-btn,
.search-input-wrapper label.search-btn,
.search-actions label.search-btn {
  position: relative !important;
  background: white !important;
  border: 1px solid #e2e8f0 !important;
  color: #1f2937 !important;
  padding: 0 !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

#header-container .search-btn:hover,
.header-mid .search-btn:hover,
.search-bar-container .search-btn:hover,
.search-input-wrapper .search-btn:hover,
.search-actions .search-btn:hover,
#header-container label.search-btn:hover,
.header-mid label.search-btn:hover,
.search-bar-container label.search-btn:hover,
.search-input-wrapper label.search-btn:hover,
.search-actions label.search-btn:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

#header-container .search-btn i,
.header-mid .search-btn i,
.search-bar-container .search-btn i,
.search-input-wrapper .search-btn i,
.search-actions .search-btn i,
#header-container label.search-btn i,
.header-mid label.search-btn i,
.search-bar-container label.search-btn i,
.search-input-wrapper label.search-btn i,
.search-actions label.search-btn i {
  color: #1f2937 !important;
  font-size: 16px !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#header-container label.search-btn input[type="file"],
.header-mid label.search-btn input[type="file"],
.search-actions label.search-btn input[type="file"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
}

.hv-page {
  min-height: calc(100dvh - 200px);
  padding: 24px 16px 48px;
  background: linear-gradient(180deg, #f0fdf4 0%, #f8fafc 35%, #f1f5f9 100%);
}

.hv-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.hv-hero {
  text-align: center;
  margin-bottom: 28px;
}

.hv-hero h1 {
  font-size: clamp(1.55rem, 3.5vw, 2.1rem);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.hv-hero p {
  color: #64748b;
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 560px;
  margin: 0 auto 18px;
}

.hv-hero-note {
  display: inline-block;
  font-size: 0.8rem;
  color: #475569;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 16px;
}

.hv-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #fff;
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.35);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.hv-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.4);
}

.hv-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 22px;
}

.hv-filter-btn {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.hv-filter-btn:hover {
  border-color: #94a3b8;
  color: #0f172a;
}

.hv-filter-btn.active {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}

.hv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.hv-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  text-align: left;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hv-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}

.hv-card:focus-visible {
  outline: 3px solid #0d9488;
  outline-offset: 2px;
}

.hv-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 40%, #5eead4 100%);
  overflow: hidden;
}

.hv-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hv-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.25);
  color: #fff;
  font-size: 2.4rem;
  pointer-events: none;
  transition: background 0.2s ease;
}

.hv-card:hover .hv-play {
  background: rgba(15, 23, 42, 0.35);
}

.hv-card-body {
  padding: 12px 14px 14px;
}

.hv-card-body h2 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.hv-card-meta {
  font-size: 0.78rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.hv-card--cta {
  border-style: dashed;
  border-color: #0d9488;
  background: linear-gradient(180deg, #ecfdf5, #fff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  text-align: center;
  padding: 20px;
}

.hv-card--cta .hv-cta-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.hv-card--cta h2 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.hv-card--cta p {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0 0 12px;
  line-height: 1.45;
}

.hv-footnote {
  margin-top: 28px;
  font-size: 0.82rem;
  color: #64748b;
  text-align: center;
  line-height: 1.5;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Page disclaimer — full content width on desktop (~2 lines) */
.hv-disclaimer {
  margin: 30px 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
}

.hv-disclaimer .disclaimer-content {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hv-disclaimer .hv-disclaimer-text {
  margin: 0;
  color: #374151;
  line-height: 1.6;
  font-size: 0.8rem;
}

.hv-disclaimer .hv-disclaimer-text strong {
  color: #1f2937;
  font-weight: 600;
}

@media (min-width: 769px) {
  .hv-disclaimer .hv-disclaimer-text {
    font-size: 0.82rem;
    line-height: 1.55;
  }
}

@media (max-width: 768px) {
  .hv-disclaimer {
    margin: 24px 0;
  }
  .hv-disclaimer .disclaimer-content {
    padding: 14px;
  }
  .hv-disclaimer .hv-disclaimer-text {
    font-size: 0.75rem;
  }
}

/* Watch modal */
.hv-watch-modal.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
  padding: 16px;
}

.hv-watch-modal.modal-overlay.show {
  display: flex;
}

.hv-watch-panel {
  width: min(960px, 100%);
  background: #0f172a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.hv-watch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #1e293b;
  color: #f8fafc;
}

.hv-watch-head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}

.hv-watch-close {
  flex-shrink: 0;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.2rem;
}

.hv-watch-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hv-watch-frame-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
}

.hv-watch-frame-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Submit modal (same interaction model as health-tips) */
.hv-submit-modal.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10001;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  padding: 16px;
}

.hv-submit-modal.modal-overlay.show {
  display: flex;
}

.hv-submit-modal .modal-container {
  background: #fff;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.hv-submit-modal .modal-header {
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #fff;
  padding: 18px 20px;
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hv-submit-modal .modal-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hv-submit-modal .modal-close-btn {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 999px;
  line-height: 1;
}

.hv-submit-modal .modal-body {
  padding: 20px 22px 22px;
}

.hv-submit-modal .modal-subtitle {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0 0 10px;
}

.hv-submit-disclaimer {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0 0 16px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 3px solid #94a3b8;
}

.hv-submit-modal .success-message {
  display: none;
  background: #d1fae5;
  color: #065f46;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  border: 1px solid #86efac;
  font-size: 0.88rem;
}

.hv-submit-modal .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 4px;
}

.hv-submit-modal .form-field {
  margin-bottom: 12px;
}

.hv-submit-modal .form-label.small {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.hv-submit-modal .form-input,
.hv-submit-modal .form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.hv-submit-modal .form-textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

.hv-submit-modal .form-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 6px;
}

.hv-submit-modal .btn-cancel {
  padding: 10px 16px;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.hv-submit-modal .btn-submit {
  padding: 10px 16px;
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 560px) {
  .hv-submit-modal .form-row {
    grid-template-columns: 1fr;
  }
}
