﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  background: linear-gradient(120deg, #0b1026, #1f1147, #3a0f5f, #113a6b);
  background-size: 320% 320%;
  animation: auroraFlow 22s ease-in-out infinite;
  color: #eef2ff;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 55vmax;
  height: 55vmax;
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
}

body::before {
  left: -14vmax;
  top: -18vmax;
  background: radial-gradient(circle, rgba(60, 220, 255, 0.36), rgba(60, 220, 255, 0));
  animation: orbMoveA 24s ease-in-out infinite;
}

body::after {
  right: -16vmax;
  bottom: -20vmax;
  background: radial-gradient(circle, rgba(219, 83, 255, 0.3), rgba(219, 83, 255, 0));
  animation: orbMoveB 28s ease-in-out infinite;
}

.hero {
  padding: 2rem 1rem 1rem;
  background: linear-gradient(120deg, rgba(22, 233, 244, 0.16), rgba(186, 78, 255, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.video-frame {
  border-radius: 8px;
  max-height: 420px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.about-block {
  background: linear-gradient(145deg, rgba(31, 44, 96, 0.75), rgba(92, 39, 143, 0.68));
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.moderator-bar form {
  margin-left: 0.5rem;
}

.reply-item,
.comment-item {
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 0.25rem;
}

.navbar,
.card,
.footer {
  background: rgba(10, 15, 40, 0.72) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(10px);
}

.card {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    120deg,
    rgba(78, 208, 255, 0.05),
    rgba(132, 93, 255, 0.75),
    rgba(95, 238, 255, 0.05)
  );
  background-size: 220% 220%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -120%;
  width: 70%;
  height: 180%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(120, 238, 255, 0.55),
    rgba(197, 130, 255, 0.3),
    rgba(255, 255, 255, 0)
  );
  transform: rotate(18deg);
  filter: blur(4px);
  opacity: 0;
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
  animation: borderCurrent 1.6s linear infinite;
}

.card:hover::after {
  opacity: 1;
  animation: sweepLine 1.2s ease-out;
}

.card-title,
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #f4f6ff;
  text-shadow: 0 0 8px rgba(94, 214, 255, 0.45), 0 0 18px rgba(153, 86, 255, 0.35);
}

.text-muted,
small.text-muted {
  color: #b7c0df !important;
}

.table {
  color: #eef2ff;
}

.table thead th {
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(90deg, rgba(42, 89, 255, 0.35), rgba(153, 53, 255, 0.3));
}

.table td,
.table th {
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-primary,
.btn-outline-primary:hover {
  background: linear-gradient(90deg, #2ad1ff, #7b61ff);
  border: none;
  color: #fff;
  box-shadow: 0 0 12px rgba(42, 209, 255, 0.5), 0 0 22px rgba(123, 97, 255, 0.35);
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-warning,
.btn-outline-danger,
.btn-outline-success,
.btn-outline-info,
.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.4);
  color: #e8ecff;
  box-shadow: 0 0 8px rgba(112, 196, 255, 0.22);
}

.btn:hover {
  transform: translateY(-1px);
  transition: all 0.2s ease;
  box-shadow: 0 0 16px rgba(106, 223, 255, 0.5), 0 0 30px rgba(166, 102, 255, 0.4);
}

.form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: #58c9ff;
  box-shadow: 0 0 0 0.2rem rgba(88, 201, 255, 0.25);
}

.form-control::placeholder {
  color: #c5ccef;
}

a,
.nav-link {
  color: #b9dcff;
}

a:hover,
.nav-link:hover {
  color: #ffffff;
}

.navbar-brand {
  color: #e9f4ff !important;
  text-shadow: 0 0 8px rgba(92, 202, 255, 0.7), 0 0 18px rgba(178, 92, 255, 0.6);
}

@keyframes auroraFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes orbMoveA {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(14vmax, 10vmax) scale(1.15);
  }
}

@keyframes orbMoveB {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-12vmax, -9vmax) scale(1.12);
  }
}

@keyframes borderCurrent {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@keyframes sweepLine {
  0% {
    left: -120%;
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  100% {
    left: 150%;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  body::before,
  body::after {
    animation: none !important;
  }
}
  .prob {
      font-size: 30px;
      font-weight: 700;
      color: var(--primary);
    }

    .meter {
      width: 100%;
      height: 12px;
      background: rgba(148, 163, 184, 0.25);
      border-radius: 999px;
      overflow: hidden;
      margin-top: 4px;
    }

    .meter-fill {
      height: 100%;
      width: 0%;
      border-radius: 999px;
      background: linear-gradient(90deg, #22d3ee 0%, #3b82f6 55%, #9333ea 100%);
      box-shadow: 0 0 14px rgba(59, 130, 246, 0.55);
      transition: width 120ms linear;
    }

    .meter-fill.glow {
      animation: pulse 1s ease-in-out infinite;
    }