:root {
  color-scheme: dark;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: #0b0b0d;
  color: #f7f7f8;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #0b0b0d; }
body { min-height: 100vh; }
a { color: inherit; }
button, textarea { font: inherit; }

.shell {
  width: min(100%, 620px);
  margin: 0 auto;
  min-height: 100vh;
  background: #111114;
}

.panel { padding: 28px 20px 40px; }
.hidden { display: none !important; }
.brand-row { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.brand-mark {
  width: 52px; height: 52px; border-radius: 15px;
  display: grid; place-items: center;
  background: #f5f5f7; color: #111114; font-size: 26px; font-weight: 800;
}
.brand-row h1 { margin: 0; font-size: 28px; }
.brand-row p { margin: 4px 0 0; color: #999ca5; font-size: 15px; }
.field-label { display: block; margin-bottom: 10px; font-size: 16px; font-weight: 650; }
textarea {
  width: 100%; resize: vertical; min-height: 150px;
  border: 1px solid #2b2b31; border-radius: 16px;
  background: #19191d; color: #fff; padding: 16px;
  line-height: 1.6; outline: none;
}
textarea:focus { border-color: #62646d; }
.primary, .secondary {
  min-height: 50px; border-radius: 14px; border: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; text-decoration: none; cursor: pointer;
}
.primary { width: 100%; margin-top: 14px; background: #f2f2f3; color: #111114; }
.secondary { background: #242429; color: #f7f7f8; }
.status { min-height: 24px; margin: 12px 2px; color: #a9abb3; }
.status.error { color: #ff9a9a; }
.result-card { margin-top: 18px; padding: 18px; border: 1px solid #29292f; border-radius: 18px; background: #18181c; }
.eyebrow { margin: 0 0 6px; color: #aaaeb7; font-size: 14px; }
.result-card h2 { margin: 0; font-size: 21px; line-height: 1.4; }
.muted { color: #999ca5; }
.result-link { display: block; margin-top: 12px; color: #d7d8dd; word-break: break-all; font-size: 14px; }
.action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.action-row .primary { margin-top: 0; }
.player-view { min-height: 100vh; background: #000; }
.player-header {
  height: 52px; padding: 0 14px;
  display: flex; align-items: center; justify-content: space-between;
  background: #101013;
}
.back-link { font-weight: 800; text-decoration: none; }
.source-label { color: #92959e; font-size: 13px; }
.player-wrap { position: relative; width: 100%; aspect-ratio: 9 / 16; background: #000; }
.player-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-info { padding: 18px 18px 28px; background: #111114; }
.video-info h1 { margin: 0; font-size: 21px; line-height: 1.45; }
.official-note { margin: 10px 0 0; color: #777b84; font-size: 13px; }

@media (min-width: 621px) {
  body { padding: 20px 0; }
  .shell { min-height: calc(100vh - 40px); border-radius: 22px; overflow: hidden; }
}
