/* --- Base Reset --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #fff;
  overflow: hidden;
}

/* --- Background Video --- */
/* Fullscreen wrapper behind everything */
#bgwrap {
  position: fixed;
  inset: 0;
  z-index: -2;          /* video layer */
  background: #000;
  overflow: hidden;
}

/* Center only — sizing handled by JS fitter */
#bgwrap #bgvid {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  /* no width/height here on purpose */
}

/* Soft dark veil ABOVE the video, BELOW content */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: -1;          /* above video (-2), below normal content (0) */
}

/* Optional: help mobile viewport stability */
@supports (height: 100svh) {
  body { min-height: 100svh; }
}

/* --- Header --- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
}

.brand {
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 1.4rem;
  text-transform: uppercase;
  color: #fff;
}
.brand .alt { color: #e6e6e6; }
.brand .e { color: #49c6ff; }
.brand .roftruth { color: #fff; }

.nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease;
}
.nav-link:hover { background: rgba(255, 255, 255, 0.25); }

/* --- Centered Search (Google Style) --- */
.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.search-form {
  display: flex;
  align-items: stretch;
  width: min(700px, 92vw);
}

.search-form input {
  flex: 1;
  font-size: 1.2rem;
  padding: 16px 20px;
  border: none;
  outline: none;
  border-radius: 999px 0 0 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #111;
}

.search-form button {
  border: none;
  padding: 16px 24px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #000;
  background: #49c6ff;
  border-radius: 0 999px 999px 0;
  cursor: pointer;
  transition: background 0.3s ease;
}
.search-form button:hover { background: #00aaff; }

/* --- Ad placeholders (hidden until ready) --- */
#ad-banner, #ad-rail { display: none; }

/* --- Footer --- */
.site-footer {
  position: fixed;
  bottom: 10px; left: 0; right: 0;
  text-align: center;
  font-size: 0.9rem;
  color: #ccc;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .brand { font-size: 1.1rem; }
  .nav-link { padding: 6px 12px; font-size: 0.9rem; }
  .search-form input, .search-form button { font-size: 1rem; padding: 14px 16px; }
}