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

/* ===== BASE ===== */
html, body {
  height: 100%;
  background: #0a0015;
  font-family: 'Comic Sans MS', 'Chalkboard SE', cursive;
  color: #fff;
  overflow-x: hidden;
}

/* ===== FIREWORKS CANVAS ===== */
#fireworks {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ===== CONTENT ===== */
.content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 60px;
  gap: 50px;
  min-height: 100vh;
}

/* ===== TITLE ===== */
.title-wrapper {
  text-align: center;
  margin-top: 20px;
}

.title {
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 4px;
  animation: rainbow 1.5s linear infinite, shake 0.15s ease-in-out infinite;
  text-shadow:
    0 0 20px currentColor,
    0 0 40px currentColor,
    4px 4px 0 #000;
  line-height: 1.1;
}

.subtitle {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 900;
  color: #ffdd00;
  text-shadow:
    0 0 15px #ffdd00,
    0 0 30px #ff8800,
    4px 4px 0 #000;
  animation: pulse 0.8s ease-in-out infinite alternate;
  margin-top: 10px;
}

/* ===== CRINGE TEXT BLOCK ===== */
.text-block {
  background: rgba(255, 0, 100, 0.15);
  border: 3px solid #ff0064;
  border-radius: 16px;
  padding: 30px 40px;
  max-width: 700px;
  width: 100%;
  box-shadow:
    0 0 20px #ff0064,
    0 0 40px rgba(255, 0, 100, 0.4);
  animation: borderGlow 2s ease-in-out infinite alternate;
}

.cringe-text {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  line-height: 1.8;
  text-align: center;
  color: #fff;
  text-shadow: 1px 1px 3px #000;
}

.cringe-text strong {
  color: #ffdd00;
  font-size: 1.2em;
  text-shadow: 0 0 10px #ffdd00, 1px 1px 3px #000;
}

/* ===== BLINK ===== */
.blink {
  animation: blink 0.5s step-start infinite;
  color: #ff4444;
  font-size: 1.3em;
  font-weight: 900;
  text-shadow: 0 0 10px #ff0000, 1px 1px 3px #000;
}

/* ===== VIDEO SECTION ===== */
.video-section {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.video-title {
  font-size: clamp(1.2rem, 3.5vw, 2rem);
  text-align: center;
  color: #00ffcc;
  text-shadow:
    0 0 10px #00ffcc,
    0 0 25px #00ffcc,
    2px 2px 0 #000;
  animation: rainbow 2s linear infinite reverse;
}

.video-wrapper {
  position: relative;
  width: 100%;
  border: 4px solid #00ffcc;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 25px #00ffcc,
    0 0 50px rgba(0, 255, 204, 0.3);
  background: #000;
  aspect-ratio: 16 / 9;
}

video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* плейсхолдер поверх видоса пока не загрузился */
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  gap: 16px;
  pointer-events: none;
}

.video-placeholder span {
  font-size: 5rem;
  animation: pulse 1s ease-in-out infinite alternate;
}

.video-placeholder p {
  font-size: 1.4rem;
  text-align: center;
  color: #00ffcc;
  text-shadow: 0 0 10px #00ffcc;
  line-height: 1.6;
}

.video-placeholder strong {
  color: #ffdd00;
  font-size: 1.6rem;
  text-shadow: 0 0 10px #ffdd00;
}

.video-fallback {
  padding: 20px;
  text-align: center;
  color: #aaa;
}

/* ===== FOOTER EMOJIS ===== */
.footer-emojis {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  animation: scrollEmoji 8s linear infinite;
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* ===== ANIMATIONS ===== */
@keyframes rainbow {
  0%   { color: #ff0000; }
  14%  { color: #ff8800; }
  28%  { color: #ffdd00; }
  42%  { color: #00ff00; }
  57%  { color: #00ffcc; }
  71%  { color: #0088ff; }
  85%  { color: #cc00ff; }
  100% { color: #ff0000; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25%       { transform: translateX(-2px) rotate(-0.5deg); }
  75%       { transform: translateX(2px) rotate(0.5deg); }
}

@keyframes pulse {
  from { transform: scale(1); opacity: 1; }
  to   { transform: scale(1.05); opacity: 0.85; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes borderGlow {
  from { box-shadow: 0 0 20px #ff0064, 0 0 40px rgba(255, 0, 100, 0.4); }
  to   { box-shadow: 0 0 40px #ff0064, 0 0 80px rgba(255, 0, 100, 0.7); }
}

@keyframes scrollEmoji {
  from { transform: translateX(30px); }
  to   { transform: translateX(-30px); }
}
