:root {
  color-scheme: dark;
  --bg: #171916;
  --surface: #20231e;
  --raised: #2a2e27;
  --line: #3e4438;
  --text: #eeeee2;
  --muted: #acb2a1;
  --accent: #e9b65e;
  --red: #f08572;
  --green: #afce87;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  min-height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 10px 18px;
  transition:
    background 0.15s,
    transform 0.15s;
}
button:hover {
  background: var(--raised);
}
button:active {
  transform: translateY(1px);
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.shell {
  max-width: 1440px;
  margin: auto;
  padding: 0 clamp(20px, 5vw, 80px);
}
header {
  min-height: 104px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -1px;
}
.brand-icon {
  font-size: 34px;
  color: var(--accent);
}
.brand-note {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 2px;
  margin-left: 16px;
}
.nav-link {
  font-size: 14px;
  padding: 12px 0;
  color: var(--muted);
}
.nav-link:hover {
  color: var(--accent);
}
nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 56px 0 32px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(30px, 3.5vw, 48px);
  letter-spacing: -1.5px;
  line-height: 1.3;
  margin: 0;
  font-weight: 650;
}
h2 {
  font-size: 24px;
  line-height: 1.4;
  margin: 0 0 16px;
  font-weight: 600;
}
.accent {
  color: var(--accent);
}
.intro-note {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}
.broadcast {
  border: 1px solid var(--line);
}
.monitor-bar,
.transport {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: var(--surface);
  font-size: 12px;
  letter-spacing: 1px;
}
.slash {
  margin: 0 12px;
  color: var(--muted);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  white-space: nowrap;
}
.status:before {
  content: "";
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: var(--muted);
}
.status.live {
  color: var(--green);
}
.status.live:before {
  background: var(--green);
  animation: pulse 2s infinite;
}
.screen {
  position: relative;
  aspect-ratio: 16/9;
  background: #11130f;
  overflow: hidden;
}
.screen .video-js {
  width: 100%;
  height: 100%;
  background: #11130f;
}
.video-js .vjs-big-play-button {
  border-radius: 50%;
  width: 80px;
  height: 80px;
  line-height: 76px;
  margin-top: -40px;
  margin-left: -40px;
  border: 1px solid var(--accent);
  background: var(--surface);
  color: var(--accent);
}
.video-js .vjs-play-progress,
.video-js .vjs-volume-level {
  background: var(--accent);
}
.standby {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 8%;
  background: #1c2019;
}
.test-pattern {
  position: absolute;
  inset: 0;
  display: flex;
  opacity: 0.12;
}
.test-pattern i {
  flex: 1;
  background: #dacdb5;
}
.test-pattern i:nth-child(2) {
  background: #c9ae57;
}
.test-pattern i:nth-child(3) {
  background: #93b68b;
}
.test-pattern i:nth-child(4) {
  background: #637d62;
}
.test-pattern i:nth-child(5) {
  background: #bd8062;
}
.test-pattern i:nth-child(6) {
  background: #616a53;
}
.standby:after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(transparent 0 3px, #11130f22 3px 4px);
  pointer-events: none;
}
.standby-content {
  z-index: 1;
  max-width: 75%;
}
.signal-label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 3px;
  border: 1px solid #6e7862;
  padding: 8px 12px;
  color: #c9d1bc;
  margin-bottom: 24px;
}
.standby h2 {
  font-size: clamp(24px, 4vw, 52px);
  letter-spacing: -1px;
}
.standby p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}
.standby-channel {
  position: absolute;
  right: 6%;
  bottom: 0;
  font-size: clamp(120px, 25vw, 330px);
  font-weight: 800;
  letter-spacing: -12px;
  line-height: 1;
  color: #bcc9a510;
}
.transport {
  padding: 4px 12px 4px 20px;
  letter-spacing: 0;
}
.transport p {
  margin: 0;
  color: var(--muted);
}
.text-button {
  border: 0;
  font-size: 13px;
  color: var(--muted);
  background: transparent;
}
.below {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 0 56px;
}
.below h2 {
  margin-bottom: 8px;
}
.below p {
  font-size: 14px;
  color: var(--muted);
}
dl {
  margin: 0;
}
.watch-stats {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.watch-stats dt,
.metric-strip dt {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.watch-stats dd {
  font-size: 24px;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1.5px;
}
.skip {
  position: absolute;
  top: -80px;
}
.skip:focus {
  top: 12px;
  z-index: 10;
  background: var(--bg);
  padding: 12px;
}
.login-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 12%;
  padding: 72px 0;
  min-height: calc(100vh - 180px);
  align-items: center;
}
.login-layout h1 {
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.35;
}
.muted,
.hint {
  color: var(--muted);
}
.hint {
  font-size: 12px;
  line-height: 1.8;
}
.login-form {
  background: var(--surface);
  padding: 40px;
  border-top: 2px solid var(--accent);
}
.login-form h2 {
  font-size: 28px;
  margin: 16px 0 32px;
}
label {
  display: block;
  font-size: 13px;
  margin: 24px 0 10px;
}
input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px;
  font-size: 14px;
  border-radius: 0;
}
input::placeholder {
  color: var(--muted);
}
.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #262217;
  font-weight: 600;
}
.primary:hover {
  background: #f3c77f;
}
.login-form .primary {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 24px;
}
.error {
  color: var(--red);
  font-size: 13px;
  min-height: 18px;
}
.login-art {
  position: relative;
  display: inline-flex;
  gap: 8px;
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -4px;
  margin-top: 36px;
  color: #5e6851;
}
.login-art span:last-of-type {
  color: var(--accent);
}
.login-art i {
  width: 12px;
  height: 12px;
  background: var(--red);
  border-radius: 50%;
  margin: 12px;
}
.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  margin: 0 0 40px;
}
.metric-strip > div {
  padding: 0 24px;
  border-left: 1px solid var(--line);
}
.metric-strip > div:first-child {
  padding-left: 0;
  border: 0;
}
.metric-strip dd {
  margin: 0;
  font-size: clamp(20px, 2.7vw, 36px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
}
.metric-strip small {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0;
}
.studio-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}
.section-heading h2 {
  font-size: 20px;
}
figure {
  margin: 8px 0 28px;
}
#chart {
  width: 100%;
  height: auto;
  display: block;
  background: var(--surface);
}
.chart-grid {
  stroke: var(--line);
  stroke-width: 1;
  fill: none;
}
#chart-line {
  stroke: var(--accent);
  stroke-width: 2.5;
  fill: none;
  stroke-linejoin: round;
}
figcaption {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  padding: 12px 0;
}
.detail-list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.detail-list dt {
  color: var(--muted);
}
.detail-list dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.connection-panel {
  border-left: 1px solid var(--line);
  padding-left: 40px;
}
.copy-row {
  display: flex;
}
.copy-row input {
  border-right: 0;
}
.copy-row button {
  font-size: 12px;
  flex-shrink: 0;
}
.secondary {
  background: var(--raised);
  font-size: 13px;
}
.obs-guide {
  margin: 28px 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.obs-guide p {
  font-size: 13px;
  line-height: 1.9;
  margin: 8px 0 0;
}
.danger {
  color: var(--red);
  border-color: #80544b;
  font-size: 13px;
}
.confirmation {
  margin: 16px 0;
  padding: 16px;
  background: var(--surface);
  font-size: 13px;
  line-height: 1.8;
}
.confirmation button {
  margin-top: 8px;
}
.preview-link {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  color: var(--accent);
  font-size: 14px;
}
.notice {
  color: var(--accent);
  font-size: 14px;
  line-height: 1.7;
}
.notice:empty {
  display: none;
}
.settings {
  margin: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.resources {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.settings summary {
  cursor: pointer;
  font-size: 14px;
  min-height: 24px;
}
.settings summary span {
  color: var(--muted);
  font-size: 12px;
  margin-left: 24px;
}
.settings form {
  max-width: 440px;
  padding: 8px 0 16px;
}
.settings button {
  margin-top: 20px;
}
@keyframes pulse {
  50% {
    opacity: 0.4;
  }
}
@media (max-width: 800px) {
  .brand-note {
    display: none;
  }
  .intro-note {
    display: none;
  }
  .watch-stats {
    gap: 24px;
  }
  .below {
    flex-direction: column;
    gap: 16px;
  }
  .watch-stats {
    justify-content: space-between;
  }
  .login-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0;
  }
  .login-art {
    display: none;
  }
  .login-form {
    padding: 28px;
  }
  .studio-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .connection-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 32px 0 0;
  }
  .metric-strip {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .metric-strip > div:nth-child(3) {
    padding-left: 0;
    border: 0;
  }
  .metric-strip > div:nth-child(2) {
    border: 0;
  }
  .intro {
    padding-top: 36px;
  }
  .standby-content {
    max-width: 100%;
  }
  .signal-label {
    margin-bottom: 12px;
    font-size: 9px;
    padding: 6px;
  }
  .standby p {
    font-size: 12px;
  }
  .standby h2 {
    margin-bottom: 8px;
  }
  .monitor-bar {
    padding: 12px;
    font-size: 10px;
  }
  .transport {
    padding-left: 12px;
    font-size: 11px;
  }
  .watch-stats dd {
    font-size: 20px;
  }
  header {
    min-height: 80px;
  }
  .section-heading {
    flex-wrap: wrap;
    gap: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
