* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #0b0d17;
  color: #e2e8f0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
}

.card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.badge {
  align-self: flex-start;
  background: #1f6beb;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

h1 {
  font-size: 1.75rem;
  color: #ffffff;
  line-height: 1.3;
}

.media-container {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background-color: #000;
  display: flex;
  justify-content: center;
}

.media-container img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
  display: block;
}

.media-container iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
}

.explanation {
  line-height: 1.7;
  color: #c9d1d9;
  font-size: 1rem;
}

.copyright {
  font-size: 0.85rem;
  color: #8b949e;
  font-style: italic;
}

.hidden {
  display: none !important;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #30363d;
  border-top-color: #1f6beb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 3rem auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error {
  color: #f85149;
  text-align: center;
  padding: 2rem 0;
}