:root {
  --primary: #6c63ff;
  --primary-dark: #554cc7;
  --accent: #4facfe;
  --secondary: #ff6584;
  --bg: #120a2e;
  --card: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --muted: #b8c0e0;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 28px 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(160deg, #1a1053 0%, var(--bg) 60%, #0b061c 100%);
  background-attachment: fixed;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 12% 18%, rgba(108, 99, 255, 0.16), transparent 26%),
              radial-gradient(circle at 88% 82%, rgba(255, 101, 132, 0.12), transparent 26%);
  pointer-events: none;
}

.page {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.hero {
  text-align: center;
  margin-bottom: 22px;
}

.hero h1 {
  margin: 0 0 6px;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.card {
  margin-bottom: 16px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.player-card {
  padding: 10px;
}

.player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 11px;
  overflow: hidden;
}

.player-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.quick-links a {
  padding: 7px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.quick-links a:hover {
  border-color: var(--accent);
  background: rgba(79, 172, 254, 0.12);
  color: var(--text);
}

.form-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px 14px;
}

.form-grid label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

select,
input {
  width: 100%;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

select option {
  background: #1f1740;
  color: var(--text);
}

input::placeholder {
  color: #8e97b8;
}

select:focus,
input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

.actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

button {
  flex: 1;
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(108, 99, 255, 0.28);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

button.secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  box-shadow: none;
}

button:hover {
  transform: translateY(-2px);
}

button.secondary:hover {
  border-color: var(--accent);
  background: rgba(79, 172, 254, 0.12);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.hint {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.hint.error {
  color: #ff9aa9;
}

.hint.success {
  color: #6ee7b7;
}

.card h2 {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 700;
}

.site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-links a {
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.86rem;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.site-links a:hover {
  border-color: var(--accent);
  background: rgba(79, 172, 254, 0.12);
  transform: translateY(-2px);
}

.sponsor {
  margin: 4px 0 18px;
  text-align: center;
}

.sponsor img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

footer {
  padding: 8px 0 4px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

footer p {
  margin: 0;
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  body {
    padding: 18px 12px;
  }

  .card {
    padding: 16px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .form-grid label {
    margin-top: 6px;
  }

  .actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
