@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #070913;
  --fg: #ffffff;
  --pill-bg: rgba(15, 23, 42, 0.75);
  --pill-fg: #0f172a;
  --pill-border: rgba(255, 255, 255, 0.15);
  --pill-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(99, 102, 241, 0.25);
  --accent: #6366f1;   /* Electric Indigo */
  --accent2: #d946ef;  /* Vivid Fuchsia / Neon Pink */
  --accent3: #06b6d4;  /* Cyber Cyan */
  --glow-accent: rgba(217, 70, 239, 0.4);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(1000px 500px at 15% 10%, rgba(99, 102, 241, 0.22), transparent 65%),
    radial-gradient(1000px 500px at 85% 30%, rgba(217, 70, 239, 0.20), transparent 65%),
    radial-gradient(800px 400px at 50% 85%, rgba(6, 182, 212, 0.15), transparent 70%),
    var(--bg);
  color: var(--fg);
  font-family: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Centered search area above the H3 */
.search-wrap {
  position: sticky; 
  top: 0;
  display: flex; 
  align-items: center; 
  justify-content: center;
  padding: 12px 16px 8px;
  background: linear-gradient(to bottom, rgba(7, 9, 19, 0.92), rgba(7, 9, 19, 0.3), rgba(7, 9, 19, 0));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
}

.search-form { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
}

.search-input {
  width: min(60vw, 340px);
  padding: 13px 20px;
  border-radius: 9999px;
  border: 1px solid rgba(99, 102, 241, 0.4);
  background: rgba(15, 23, 42, 0.65);
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.2;
  outline: none;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input::placeholder { color: rgba(255, 255, 255, 0.5); }

.search-input:focus {
  border-color: var(--accent2);
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 0 25px rgba(217, 70, 239, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.search-btn {
  padding: 13px 22px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-family: inherit;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.search-btn:hover { 
  transform: translateY(-1px);
  filter: brightness(1.15);
  box-shadow: 0 8px 30px rgba(217, 70, 239, 0.5);
}

.search-btn:active { transform: translateY(0) scale(0.98); }

.page-wrap { padding: 5px 12px 90px; }
h3 { margin: 14px 0; }
.center { text-align: center; }

/* Headline styling */
#headline {
  font-weight: 800;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #ffffff 30%, #c084fc 70%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 25px rgba(168, 85, 247, 0.3);
}

/* ---------- Modern TikTok-style player shell ---------- */
.player-stage {
  width: 100%;
  max-width: 900px;
  margin: 10px auto 16px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(#000, #000) padding-box,
    linear-gradient(135deg, var(--accent), var(--accent2), var(--accent3)) border-box;
  border: 2px solid transparent;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(99, 102, 241, 0.25);
  isolation: isolate;
}

.player-stage::before {
  content: "";
  position: absolute; 
  inset: -60px;
  background: 
    radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.3), transparent 55%),
    radial-gradient(circle at 75% 65%, rgba(217, 70, 239, 0.28), transparent 55%);
  z-index: 0;
  pointer-events: none;
  filter: blur(2px);
  opacity: 0.9;
}

.player-inner { position: relative; z-index: 1; }

video#videoPlayer {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
  object-fit: cover;
  aspect-ratio: 1080 / 675;
}

@media (max-width: 520px) {
  video#videoPlayer {
    width: 100%;
    height: auto;
    display: block;
    background: #000;
    object-fit: cover;
    aspect-ratio: 1080 / 675;
  }
  .video-modal-box { margin-top: 5px; }
  .cta-bar { margin-bottom: 2px; }
}

/* Overlays */
.overlay {
  position: absolute; 
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: linear-gradient(to top, rgba(7, 9, 19, 0.75), rgba(7, 9, 19, 0.2), rgba(7, 9, 19, 0.55));
  transition: opacity 0.3s ease;
  cursor: pointer;
  z-index: 10;
}

.overlay.hidden { 
  opacity: 0; 
  visibility: hidden;
  pointer-events: none; 
}

.play-pill {
  display: flex; 
  align-items: center; 
  gap: 12px;
  padding: 16px 22px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  user-select: none;
  position: relative;
  z-index: 20;
  pointer-events: none;
}

.play-ico {
  width: 58px; 
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: grid; 
  place-items: center;
  box-shadow: 0 15px 35px rgba(217, 70, 239, 0.45);
  animation: pulse 1.6s infinite;
}

.play-ico i { 
  font-size: 22px; 
  color: #fff; 
  margin-left: 3px; 
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 70, 239, 0.6), 0 15px 35px rgba(99, 102, 241, 0.45); }
  70% { box-shadow: 0 0 0 28px rgba(217, 70, 239, 0), 0 15px 35px rgba(99, 102, 241, 0.45); }
  100% { box-shadow: 0 0 0 0 rgba(217, 70, 239, 0), 0 15px 35px rgba(99, 102, 241, 0.45); }
}

.play-copy {
  text-align: left;
  line-height: 1.2;
}

.play-copy b { 
  display: block; 
  font-size: 15px; 
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #ffffff;
}

.play-copy span { 
  display: block; 
  font-size: 12px; 
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75); 
}

.corner-badges {
  position: absolute;
  top: 12px; 
  left: 12px;
  display: flex; 
  gap: 8px; 
  flex-wrap: wrap;
  pointer-events: none;
}

.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.95);
}

/* CTA bar (CTR-focused) */
.cta-bar {
  position: fixed;
  left: 0; 
  right: 0; 
  bottom: 0;
  padding: 10px 14px 14px;
  background: linear-gradient(to top, rgba(7, 9, 19, 0.96) 60%, rgba(7, 9, 19, 0.5), rgba(7, 9, 19, 0));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 9998;
}

.cta-wrap {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  font-family: inherit;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.03em;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn:hover { 
  filter: brightness(1.15); 
  transform: translateY(-2px);
}

.btn:active { transform: translateY(0) scale(0.98); }

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-color: rgba(217, 70, 239, 0.4);
  box-shadow: 0 14px 40px rgba(217, 70, 239, 0.35);
}

.btn.small {
  flex: 0.9;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn.small:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.25);
}

@media (max-width: 520px) {
  .cta-wrap { flex-direction: column; gap: 8px; }
  .btn, .btn.small { width: 100%; flex: unset; padding: 13px; }
}

/* Modal */
.video-modal-box { background: #0000; color: #fff; text-align: center; padding: 0px; }
.video-modal-box .modal-overlay {
  display: none; 
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  background: rgba(0, 0, 0, 0.85); 
  justify-content: center; 
  align-items: center; 
  z-index: 9999;
  padding: 18px;
}

.video-modal-box .modal-content {
  width: min(520px, 92vw);
  background: linear-gradient(135deg, #0f172a, #070913);
  color: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.8), 0 0 35px rgba(99, 102, 241, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.14);
  position: relative;
  text-align: center;
  animation: pop 0.35s ease;
}

@keyframes pop {
  from { transform: translateY(14px) scale(0.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Loading spinner */
.loading {
  position: absolute; 
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%);
  width: 58px; 
  height: 58px; 
  border: 4px solid var(--accent); 
  border-radius: 50%;
  border-top-color: var(--accent2); 
  animation: spin 0.9s linear infinite; 
  display: none;
  z-index: 100 !important;
  pointer-events: none;
}

@keyframes spin { 
  0% { transform: translate(-50%, -50%) rotate(0deg); } 
  100% { transform: translate(-50%, -50%) rotate(360deg); } 
}

.overlay-click-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  z-index: 30;
}

/* Ad Styling & Alignment */
.ad-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 16px auto;
  max-width: 100%;
  overflow: hidden;
  text-align: center;
}

.ad-banner-468 {
  min-height: 60px;
  width: 100%;
  max-width: 468px;
}

.ad-banner-468 iframe {
  max-width: 100%;
}

.ad-native {
  width: 100%;
  max-width: 900px;
  min-height: 100px;
  border-radius: 16px;
}
