:root {
  --vh-bg: #050506;
  --vh-surface: #121214;
  --vh-surface-2: #1a1a1f;
  --vh-border: rgba(255, 255, 255, 0.08);
  --vh-text: #f4f4f5;
  --vh-muted: #9ca3af;
  --vh-accent: #ff6b1a;
  --vh-accent-2: #ff8f3d;
  --vh-accent-glow: rgba(255, 107, 26, 0.45);
  --vh-radius: 14px;
  --vh-font: "Inter", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.vh-body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--vh-font);
  color: var(--vh-text);
  background: var(--vh-bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 107, 26, 0.12), transparent),
    radial-gradient(circle at 100% 0%, rgba(255, 61, 0, 0.06), transparent 40%);
}

.vh-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.vh-wrap {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

/* ── Header ── */
.vh-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--vh-border);
}

.vh-logo {
  display: flex;
  align-items: center;
  gap: 2px;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.vh-logo-v { color: #fff; }
.vh-logo-h { color: var(--vh-accent); }

.vh-nav {
  display: none;
  gap: 4px;
  margin-left: 24px;
}

@media (min-width: 768px) {
  .vh-nav { display: flex; }
}

.vh-nav button {
  border: none;
  background: transparent;
  color: var(--vh-muted);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.vh-nav button:hover,
.vh-nav button.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.vh-nav button.is-active {
  box-shadow: inset 0 -2px 0 var(--vh-accent);
  border-radius: 8px 8px 0 0;
}

.vh-header-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

.vh-btn {
  border: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.15s, background 0.15s;
}

.vh-btn:active { transform: scale(0.98); }

.vh-btn-ghost {
  background: transparent;
  color: #e5e7eb;
  border: 1px solid var(--vh-border);
}

.vh-btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.vh-btn-primary {
  color: #0a0a0a;
  background: linear-gradient(135deg, var(--vh-accent-2), var(--vh-accent));
  box-shadow: 0 4px 24px var(--vh-accent-glow);
}

.vh-btn-primary:hover {
  box-shadow: 0 6px 32px var(--vh-accent-glow);
}

/* ── Hero ── */
.vh-hero {
  margin-top: 28px;
  padding: 28px 28px 32px;
  border-radius: calc(var(--vh-radius) + 4px);
  background: linear-gradient(145deg, var(--vh-surface-2) 0%, var(--vh-surface) 55%, #0e0e12 100%);
  border: 1px solid var(--vh-border);
  display: grid;
  gap: 24px;
  align-items: center;
}

@media (min-width: 768px) {
  .vh-hero {
    grid-template-columns: 1fr auto;
    padding: 36px 40px;
  }
}

.vh-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 4vw, 2.15rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.vh-hero h1 em {
  font-style: normal;
  color: var(--vh-accent);
}

.vh-hero-lead {
  margin: 0 0 10px;
  color: #e5e7eb;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.5;
  max-width: 520px;
}

.vh-hero-note {
  margin: 0 0 16px;
  color: var(--vh-muted);
  font-size: 0.84rem;
  line-height: 1.55;
  max-width: 520px;
}

.vh-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.78rem;
  color: #6b7280;
}

.vh-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vh-hero-meta .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.vh-btn-hero {
  padding: 14px 32px;
  font-size: 0.95rem;
  border-radius: 12px;
  white-space: nowrap;
}

/* ── Grid ── */
.vh-section-title {
  margin: 36px 0 16px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
}

.vh-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 640px) {
  .vh-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

@media (min-width: 960px) {
  .vh-grid { grid-template-columns: repeat(4, 1fr); }
}

.vh-card {
  border: none;
  padding: 0;
  text-align: left;
  background: var(--vh-surface);
  border-radius: var(--vh-radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  color: inherit;
}

.vh-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 26, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 107, 26, 0.12);
}

.vh-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0a0a0c;
  overflow: hidden;
  isolation: isolate;
}

.vh-thumb-photo {
  position: absolute;
  inset: -18%;
  background-size: cover;
  background-position: center;
  background-color: #141418;
  filter: blur(26px) saturate(1.2) contrast(1.08) brightness(0.92);
  transform: scale(1.12);
  transition: filter 0.35s ease, transform 0.35s ease, opacity 0.4s ease;
  opacity: 0.85;
}

.vh-thumb-photo.is-loaded {
  opacity: 1;
}

.vh-card:hover .vh-thumb-photo {
  filter: blur(22px) saturate(1.28) contrast(1.1) brightness(0.98);
  transform: scale(1.14);
  transition: filter 0.35s ease, transform 0.35s ease;
}

.vh-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.55) 100%),
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(255, 107, 26, 0.08), transparent 70%);
  pointer-events: none;
}

.vh-thumb-shine {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.35;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.14) 0%,
    transparent 42%,
    transparent 58%,
    rgba(255, 107, 26, 0.06) 100%
  );
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.vh-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s;
}

.vh-card:hover .vh-play {
  transform: translate(-50%, -50%) scale(1.08);
}

.vh-play svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
  fill: #111;
}

.vh-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 4;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.vh-lock {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 4;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 107, 26, 0.9);
  color: #0a0a0a;
}

.vh-card-body {
  padding: 10px 12px 12px;
}

.vh-card-title {
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vh-card-views {
  font-size: 0.72rem;
  color: var(--vh-muted);
}

/* ── Footer ── */
.vh-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--vh-border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: center;
}

.vh-footer button {
  border: none;
  background: none;
  color: #6b7280;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 4px 0;
}

.vh-footer button:hover { color: #d1d5db; }

.vh-footer-note {
  width: 100%;
  text-align: center;
  font-size: 0.7rem;
  color: #4b5563;
  margin-top: 8px;
}

/* ── Auth modal ── */
.vh-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.vh-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.vh-modal {
  width: 100%;
  max-width: 400px;
  max-height: min(90dvh, 640px);
  overflow-y: auto;
  background: linear-gradient(160deg, #1a1a1f 0%, #121214 100%);
  border: 1px solid var(--vh-border);
  border-radius: 18px;
  padding: 24px 22px 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.96) translateY(8px);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.vh-overlay.is-open .vh-modal {
  transform: scale(1) translateY(0);
}

.vh-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.vh-modal-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.vh-modal-sub {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--vh-muted);
  line-height: 1.45;
}

.vh-modal-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #9ca3af;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.vh-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.vh-view { display: none; }
.vh-view.active { display: block; }

.vh-field-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--vh-muted);
  margin-bottom: 8px;
}

.vh-phone-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--vh-border);
  margin-bottom: 14px;
}

.vh-phone-prefix {
  font-weight: 600;
  font-size: 0.9rem;
  color: #e5e7eb;
  white-space: nowrap;
}

.vh-phone-input {
  flex: 1;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
}

.vh-phone-input::placeholder { color: #6b7280; }

.vh-submit {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  background: linear-gradient(135deg, var(--vh-accent-2), var(--vh-accent));
  color: #0a0a0a;
  opacity: 0.45;
  transition: opacity 0.15s, box-shadow 0.15s;
}

.vh-submit.ready {
  opacity: 1;
  box-shadow: 0 4px 20px var(--vh-accent-glow);
}

.vh-submit:disabled { cursor: not-allowed; }

.vh-error {
  display: none;
  margin-top: 10px;
  font-size: 0.78rem;
  color: #f87171;
}

.vh-error.show { display: block; }

.vh-terms {
  margin: 14px 0 0;
  font-size: 0.68rem;
  color: #6b7280;
  line-height: 1.5;
}

.vh-terms a { color: #9ca3af; }

.vh-otp {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.vh-otp input {
  width: 100%;
  aspect-ratio: 1;
  max-height: 48px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 10px;
  border: 1px solid var(--vh-border);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-family: inherit;
}

.vh-otp input:focus {
  outline: none;
  border-color: var(--vh-accent);
  box-shadow: 0 0 0 2px rgba(255, 107, 26, 0.25);
}

.vh-link-btn {
  display: none;
  width: 100%;
  margin-top: 8px;
  border: none;
  background: none;
  color: var(--vh-accent-2);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px;
}

.vh-link-btn.visible { display: block; }

.vh-timer {
  font-size: 0.78rem;
  color: var(--vh-muted);
  text-align: center;
  margin-top: 8px;
}

.vh-timer.hidden { display: none; }

.vh-back {
  margin-top: 12px;
  border: none;
  background: none;
  color: var(--vh-muted);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
}

.vh-pwd-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--vh-border);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  margin-bottom: 14px;
}

.vh-success {
  text-align: center;
  padding: 24px 8px;
}

.vh-success-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.vh-success-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.vh-success-sub {
  font-size: 0.85rem;
  color: var(--vh-muted);
}
