:root {
  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "WenQuanYi Micro Hei", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  font-family: var(--font-sans);
}

button, input, select, textarea {
  font-family: inherit;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.theme-icon {
  font-size: 15px;
  line-height: 1;
}

.login-panel {
  position: relative;
}

.login-theme {
  position: absolute;
  top: 26px;
  right: 28px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f5f1;
  --panel: #ffffff;
  --line: #e5dfd7;
  --text: #302b26;
  --muted: #746d66;
  --accent: #996039;
  --green: #39704d;
}

:root[data-theme="light"] input,
:root[data-theme="light"] select,
:root[data-theme="light"] .library #search {
  background: #ffffff;
}

:root[data-theme="light"] input::placeholder {
  color: #847b72;
}

:root[data-theme="light"] input:focus,
:root[data-theme="light"] select:focus {
  outline-color: #b47a4755;
}

:root[data-theme="light"] .primary,
:root[data-theme="light"] .chat-form button,
:root[data-theme="light"] .unlock {
  background: #edbc8f;
  color: #3b2819;
}

:root[data-theme="light"] .ghost,
:root[data-theme="light"] .reactions button {
  background: #eee9e2;
}

:root[data-theme="light"] .login-art {
  background: radial-gradient(ellipse at 80% 80%, #e9c29a66, transparent 70%), #efe8de;
}

:root[data-theme="light"] .art-copy p,
:root[data-theme="light"] .art-footer,
:root[data-theme="light"] .login-features {
  color: #786c60;
}

:root[data-theme="light"] .login-panel label {
  color: #5d534a;
}

:root[data-theme="light"] .film-orbit {
  border-color: #ae7a4933;
  box-shadow: 0 0 0 70px #ae7a4905, 0 0 0 71px #ae7a4922, 0 0 0 140px #ae7a4903, 0 0 0 141px #ae7a4918;
}

:root[data-theme="light"] .fineprint {
  color: #7c7268 !important;
}

:root[data-theme="light"] .error {
  color: #ac3535 !important;
}

:root[data-theme="light"] .sync-pill {
  background: #e9f0e9;
  border-color: #cddfce;
}

:root[data-theme="light"] .player-wrap {
  color: #f3f0e9;
}

:root[data-theme="light"] .empty-player p {
  color: #a8a5a1;
}

:root[data-theme="light"] .empty-icon {
  color: #e8ae79;
}

:root[data-theme="light"] .player-controls {
  background: #ede7df;
}

:root[data-theme="light"] .player-controls span,
:root[data-theme="light"] .player-help,
:root[data-theme="light"] .library-note,
:root[data-theme="light"] .message.system,
:root[data-theme="light"] .room-footer {
  color: var(--muted);
}

:root[data-theme="light"] .player-controls #subtitle {
  border-color: #a8998a;
}

:root[data-theme="light"] .library,
:root[data-theme="light"] .friends,
:root[data-theme="light"] .chat {
  box-shadow: 0 3px 16px #45311b04;
}

:root[data-theme="light"] .movie {
  border-bottom-color: #ebe5dd;
}

:root[data-theme="light"] .movie.active,
:root[data-theme="light"] .message.mine p {
  background: #f7eadc;
}

:root[data-theme="light"] .movie-icon,
:root[data-theme="light"] .avatar {
  background: #f1e8dd;
}

:root[data-theme="light"] .message p {
  background: #f0eeeb;
}

:root[data-theme="light"] .message.mine p {
  color: #63452e;
}

:root[data-theme="light"] .voice-controls .primary.active {
  background: #e2efe5;
}

:root[data-theme="light"] .toast {
  background: #fffaf4;
  color: #493729;
  border-color: #dccbbb;
  box-shadow: 0 8px 30px #45311b18;
}

@media (max-width: 760px) {
  .room-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .screen-column,
  .social-column,
  .player-wrap video,
  .chat-form input {
    min-width: 0;
  }

  .player-controls #seek {
    width: 0;
  }

  .login-theme {
    top: 16px;
    right: 20px;
  }

  .login-panel {
    padding-top: 60px;
  }
}

@media (max-width: 420px) {
  .top-actions .theme-label {
    display: none;
  }
}
