:root {
  --color-primary: #5fa92d;
  --color-text: #1b1b1b;
  --color-muted: rgba(27, 27, 27, 0.46);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color: var(--color-text);
  background: #eef6ea;
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html, body, #app {
  min-height: 100%;
  margin: 0;
  background: #eef6ea;
}

body { min-width: 320px; }

button, input { font: inherit; color: inherit; }

button { border: 0; background: transparent; }

.screen { min-height: 100dvh; }

.login {
  position: relative;
  overflow: hidden;
  background: #f7f8f8;
}

.login-bg {
  position: absolute;
  inset: 0 0 auto;
  height: 300px;
  background:
    radial-gradient(circle at 84% 10%, rgba(85, 231, 111, 0.55) 0, rgba(85, 231, 111, 0.18) 26%, transparent 54%),
    radial-gradient(circle at 34% 3%, rgba(151, 242, 174, 0.55) 0, rgba(151, 242, 174, 0.18) 35%, transparent 66%),
    linear-gradient(180deg, #d9ffe2 0%, rgba(247, 248, 248, 0.94) 78%, #f7f8f8 100%);
}

.hero, .form { position: relative; z-index: 1; width: calc(100% - 40px); max-width: 420px; margin-left: auto; margin-right: auto; }

.hero { margin-top: 108px; }

.hero h1 { margin: 0; font-size: 28px; line-height: 40px; font-weight: 700; }

.hero p { margin: 12px 0 0; font-size: 13px; }

.form { display: flex; flex-direction: column; gap: 16px; margin-top: 36px; }

.field { display: flex; flex-direction: column; gap: 10px; }

.field span { font-size: 14px; font-weight: 500; }

.field input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  outline: none;
}

.field input::placeholder { color: #ccc; }

.error { margin: 0; color: #d14343; font-size: 13px; }

.primary {
  height: 44px;
  border-radius: 42px;
  color: #fff;
  background: var(--color-primary);
  font-size: 14px;
}

.primary:disabled { opacity: 0.6; }

.topbar, .player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(14px + var(--safe-top)) 16px 12px;
}

.topbar h1, .player-bar strong { margin: 0; font-size: 18px; }

.ghost { color: var(--color-primary); font-size: 14px; }

.list { display: flex; flex-direction: column; gap: 12px; padding: 4px 16px calc(20px + var(--safe-bottom)); }

.card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
}

.card h2 { margin: 0; font-size: 16px; font-weight: 600; }

.card p, .empty { margin: 6px 0 0; color: var(--color-muted); font-size: 13px; }

.empty { padding: 48px 16px; text-align: center; }

.watch {
  flex: 0 0 auto;
  height: 32px;
  padding: 0 14px;
  border-radius: 42px;
  color: #fff;
  background: var(--color-primary);
  font-size: 13px;
}

.stage {
  position: relative;
  background: #111;
  aspect-ratio: 16 / 9;
}

.stage video { width: 100%; height: 100%; background: #111; }

.meta { padding: 16px 16px calc(20px + var(--safe-bottom)); }

.meta h1 { margin: 0; font-size: 18px; }

.meta p { margin: 8px 0 0; color: var(--color-muted); font-size: 13px; }

.back {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(25, 80, 44, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
}

.back i {
  display: block;
  width: 9px;
  height: 9px;
  margin-left: 15px;
  border-bottom: 1.6px solid #1b1b1b;
  border-left: 1.6px solid #1b1b1b;
  transform: rotate(45deg);
}
