:root {
  --bg: #0b0f14;
  --bg-card: #121922;
  --border: #1e2a38;
  --text: #e8eef6;
  --muted: #8b9bb0;
  --accent: #3d8bfd;
  --accent-2: #22c55e;
  --danger: #f87171;
  --radius: 14px;
  --font: "SF Pro Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background:
    radial-gradient(1200px 600px at 10% -10%, #1a2a44 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #13261f 0%, transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
}

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 18px 48px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 13px;
}

.header h1 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
}

.sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.header-meta {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: right;
  line-height: 1.5;
}

.card {
  background: color-mix(in srgb, var(--bg-card) 92%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.hidden {
  display: none !important;
}

.field-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.field-label.tight {
  margin-top: 12px;
}

.row {
  display: flex;
  gap: 10px;
}

input[type="url"],
input[type="password"],
input[type="text"] {
  width: 100%;
  border: 1px solid var(--border);
  background: #0a1018;
  color: var(--text);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.98rem;
  outline: none;
}

input:focus {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--border));
  box-shadow: 0 0 0 3px rgba(61, 139, 253, 0.18);
}

button {
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  font-weight: 600;
  padding: 0 18px;
  cursor: pointer;
  white-space: nowrap;
  min-height: 46px;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

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

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

button.ghost {
  background: #182231;
  border: 1px solid var(--border);
}

button.active {
  background: linear-gradient(135deg, #16a34a, #15803d);
}

.options {
  margin-top: 14px;
}

.check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.check input {
  margin-top: 3px;
}

.meta h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.35;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tag {
  font-size: 0.8rem;
  color: #c6d4e6;
  background: #182231;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
}

.qualities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.copy-row {
  margin-bottom: 14px;
}

.copy-row input[readonly] {
  font-size: 0.82rem;
  color: #c6d4e6;
}

.player-wrap {
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

video {
  width: 100%;
  display: block;
  max-height: 480px;
  background: #000;
}

.hint {
  margin: 0;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.85rem;
  background: #0a1018;
}

.error {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.35);
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 10px;
  padding: 12px 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.footer {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
  padding: 8px 4px;
}

.footer strong {
  color: #cbd5e1;
}

@media (max-width: 640px) {
  .header {
    flex-direction: column;
  }

  .header-meta {
    text-align: left;
  }

  .row {
    flex-direction: column;
  }

  button {
    width: 100%;
    min-height: 44px;
  }
}
