:root {
  --ns-bg: #0b0b0f;
  --ns-bg-elevated: #15151c;
  --ns-border: rgba(255, 255, 255, 0.08);
  --ns-accent: #b11226;
  --ns-accent-soft: rgba(177, 18, 38, 0.4);
  --ns-text: #f2f2f7;
  --ns-text-muted: #9b9bb2;
  --ns-radius: 14px;
  --ns-radius-pill: 999px;
  --ns-shadow: 0 18px 50px rgba(0, 0, 0, 0.8);
  --ns-font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--ns-text);
  font-family: var(--ns-font);
}

.ns-widget {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
  border-radius: var(--ns-radius);
  background: radial-gradient(circle at top, rgba(177, 18, 38, 0.26), #050509);
  border: 1px solid var(--ns-border);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    var(--ns-shadow);
  color: var(--ns-text);
}

.ns-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.ns-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.18rem 0.85rem;
  border-radius: var(--ns-radius-pill);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ns-badge-live {
  background: rgba(177, 18, 38, 0.18);
  border-color: rgba(255, 110, 130, 0.9);
  color: #ff8ea1;
  box-shadow: 0 0 18px rgba(177, 18, 38, 0.9);
  position: relative;
}

.ns-badge-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff4b68;
  box-shadow: 0 0 14px #ff4b68;
  animation: ns-pulse 1.5s ease-in-out infinite;
}

.ns-badge-offline {
  background: rgba(255, 255, 255, 0.02);
  color: var(--ns-text-muted);
}

.ns-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ns-text-muted);
}

.ns-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
}

.ns-info {
  flex: 1 1 auto;
}

.ns-title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.ns-status-text {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ns-text-muted);
}

.ns-datetime-wrap,
.ns-countdown-wrap {
  margin-top: 0.55rem;
}

.ns-datetime-label,
.ns-countdown-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ns-text-muted);
  margin-bottom: 0.15rem;
}

.ns-datetime-value,
.ns-countdown-value {
  font-size: 0.94rem;
  font-weight: 500;
}

.ns-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.ns-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: var(--ns-radius-pill);
  background: var(--ns-accent);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffe5ea;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 0 24px rgba(177, 18, 38, 0.9),
    0 0 0 1px rgba(0, 0, 0, 0.85) inset;
  transition:
    background 0.16s ease,
    transform 0.12s ease,
    box-shadow 0.16s ease;
}

.ns-button:hover {
  background: #d11830;
  transform: translateY(-1px);
  box-shadow:
    0 0 32px rgba(177, 18, 38, 1),
    0 0 0 1px rgba(0, 0, 0, 0.9) inset;
}

.ns-error {
  margin-top: 0.65rem;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  background: rgba(255, 70, 70, 0.1);
  color: #ff9da6;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 70, 70, 0.35);
}

.ns-hidden {
  display: none !important;
}

@keyframes ns-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .ns-widget {
    padding: 1rem;
  }

  .ns-main {
    flex-direction: column;
    align-items: stretch;
  }

  .ns-actions {
    justify-content: flex-start;
    margin-top: 0.5rem;
  }

  .ns-button {
    width: 100%;
  }
}

