:root {
  --bg: #0a0a0a;
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, 0.7);
  --accent: #ff3d6e;
  --card-border: rgba(255, 255, 255, 0.08);
}

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

html,
body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", system-ui,
    sans-serif;
  background-color: var(--bg);
  background-image: url("bg.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--fg);
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.85) 100%
  );
  z-index: 0;
  pointer-events: none;
}

.card {
  position: relative;
  z-index: 1;
  max-width: 580px;
  width: 100%;
  text-align: center;
  padding: 2.5rem 1.5rem;
  animation: fadeIn 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo {
  max-width: 280px;
  width: 80%;
  height: auto;
  margin-bottom: 2.5rem;
  filter: drop-shadow(0 6px 30px rgba(255, 61, 110, 0.15));
}

h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.lead {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.live-info {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.75rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-wrap: wrap;
  justify-content: center;
}

.player {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.75rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.player iframe {
  display: block;
  width: 100%;
  height: 94px;
  border: 0;
  background: transparent;
}

.youtube-live {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.5rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 0, 0, 0.08);
  border: 1px solid rgba(255, 0, 0, 0.32);
  border-radius: 12px;
  color: var(--fg);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease;
  width: 100%;
  max-width: 100%;
}

.youtube-live svg {
  color: #ff0000;
  flex-shrink: 0;
}

.youtube-live:hover {
  background: rgba(255, 0, 0, 0.14);
  border-color: rgba(255, 0, 0, 0.55);
  transform: translateY(-1px);
}

.youtube-live:active {
  transform: translateY(0);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--fg);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
}

.action-btn svg {
  flex-shrink: 0;
  opacity: 0.95;
}

.action-btn.yt svg {
  color: #ff0000;
  opacity: 1;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.action-btn:active {
  transform: translateY(0);
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(255, 61, 110, 0.6);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 61, 110, 0.7);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(255, 61, 110, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 61, 110, 0);
  }
}

@media (max-width: 480px) {
  .card {
    padding: 1.5rem 1rem;
  }
  .logo {
    margin-bottom: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .dot {
    animation: none;
  }
}
