@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Lato:wght@300;400&display=swap');

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent: #0bec24;
  --white: #f5f0e8;
  --overlay-dark: rgba(0, 0, 0, 0.45);
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: 'Lato', sans-serif;
}

/* ── Video Layer ── */
#video-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
}

#bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Gradient Overlay ── */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
	linear-gradient(to top,  rgba(0,0,0,0.72) 0%, transparent 45%),
	linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 30%),
	var(--overlay-dark);
  pointer-events: none;
}

/* ── Grain texture ── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}

/* ── UI Layer ── */
.ui {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 60px;
}

/* top bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(-16px);
  animation: fadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.3s forwards;
}

.logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  color: var(--white);
}

.logo span { color: var(--accent); }

nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-left: 36px;
  opacity: 0.75;
  transition: opacity 0.2s;
}
nav a:hover { opacity: 1; }

/* center headline */
.headline {
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 1s cubic-bezier(0.22,1,0.36,1) 0.55s forwards;
}

.headline h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 10vw, 9rem);
  letter-spacing: 0.06em;
  line-height: 0.95;
  color: var(--white);
  text-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

.headline h1 em {
  font-style: normal;
  color: var(--accent);
}

.headline p {
  margin-top: 20px;
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.65;
}

/* bottom bar */
.bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.8s forwards;
}

.controls {
  display: flex;
  gap: 14px;
  align-items: center;
}

.ctrl-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
  backdrop-filter: blur(8px);
  font-size: 1rem;
}
.ctrl-btn:hover {
  background: rgba(255,255,255,0.22);
  transform: scale(1.08);
}
.ctrl-btn:active { transform: scale(0.96); }

/* volume slider */
.vol-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vol-icon { font-size: 0.85rem; opacity: 0.7; color: var(--white); }

input[type=range] {
  -webkit-appearance: none;
  width: 90px;
  height: 3px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.15s;
}
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.3); }

/* upload prompt */
.upload-hint {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.45;
  text-align: right;
  line-height: 1.6;
}

.upload-hint label {
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#file-input { display: none; }

/* progress bar */
.progress-wrap {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
  height: 15px;	  
  background: rgba(255,255,255,0.1);
}

#progress-bar {
  height: 100%;
  width: 0%;	  
  background: var(--accent);
  transition: width 0.25s linear;
}

/* no-video placeholder */
#placeholder {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at 60% 40%, #1a1a2e 0%, #0d0d0d 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
}

#placeholder .ph-icon {
  font-size: 3rem;
  opacity: 0.2;
}

#placeholder p {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 600px) {
  .ui { padding: 28px 24px; }
  nav { display: none; }
  input[type=range] { width: 60px; }
}
