* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  min-height: 100%;
}
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #090909;
  color: #f5f5f5;
  line-height: 1.5;
}
img, video, canvas {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button, input, textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.page-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.05), transparent 36%),
              linear-gradient(180deg, #111 0%, #050505 100%);
}
.card {
  width: min(560px, 100%);
  background: rgba(14, 18, 29, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.28);
}
.card-head h1 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.card-head p {
  color: #b8c1d6;
}
.form-stack {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}
.field {
  display: grid;
  gap: 10px;
}
.field span {
  font-size: 0.95rem;
  color: #a6b0ce;
}
.field input,
.field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: #f6f7fb;
  padding: 14px 16px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: #6c9eff;
  transform: translateY(-1px);
}
.field-area textarea {
  resize: vertical;
  min-height: 140px;
}
.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.counter {
  color: #8a98b7;
}
.button {
  min-height: 48px;
  padding: 0 24px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #5c88ff, #46d4ff);
  color: #111827;
  font-weight: 700;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.card-foot {
  margin-top: 18px;
  color: #92a1bf;
}
.card-foot a {
  color: #b9d4ff;
}
.message {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.4;
}
.message-error {
  background: rgba(255, 79, 79, 0.14);
  color: #ffb3b3;
}
.message-info {
  background: rgba(20, 146, 255, 0.12);
  color: #b1d9ff;
}
.hidden {
  display: none !important;
}
.wall-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #000;
}
.wall-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.wall-title {
  font-size: 1.25rem;
  letter-spacing: 0.05em;
}
.wall-link {
  color: #7ad1ff;
}
.wall-container {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
}
.wall-empty {
  color: #7c7c7c;
  font-size: 1rem;
  margin: auto;
}
.danmu-card {
  max-width: min(760px, 100%);
  margin-left: auto;
  margin-right: auto;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  color: #f9fbff;
  position: relative;
  transform: translateY(32px);
  opacity: 0;
  animation: slideUp 0.6s ease forwards;
}
.danmu-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.14), transparent);
  pointer-events: none;
}
@keyframes slideUp {
  from { transform: translateY(32px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@media (max-width: 640px) {
  .card {
    border-radius: 20px;
    padding: 20px;
  }
  .page-container {
    padding: 18px;
  }
  .wall-container {
    padding: 18px;
  }
  .wall-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
