/* 房间的界面层。夜里的客厅已经够满了，界面只在需要时出现：
 * 深色烟熏玻璃、细线、思源宋体做标题，黄铜色只留给“下一步该按的那个”。 */

:root {
  --night: #0b0a09;
  --ink: #ece4d7;
  --ink-2: rgba(236, 228, 215, 0.7);
  --ink-3: rgba(236, 228, 215, 0.46);
  --hair: rgba(236, 228, 215, 0.13);
  --hair-2: rgba(236, 228, 215, 0.24);
  --glass: rgba(18, 16, 14, 0.66);
  --glass-2: rgba(14, 12, 11, 0.88);
  --brass: #c7a46b;
  --brass-ink: #1c140a;
  --warn: #e9b4a3;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "Source Han Serif SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --panel-w: min(460px, 42vw);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--night);
  color: var(--ink);
  font: 400 15px/1.7 var(--sans);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

:focus-visible {
  outline: 1.5px solid var(--brass);
  outline-offset: 3px;
}

code {
  padding: 0.08em 0.36em;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  word-break: break-all;
}

img {
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.empty {
  padding: 18px 0;
  color: var(--ink-3);
  list-style: none;
}

/* ---------- 画布、暗角和颗粒 ---------- */

.room {
  position: fixed;
  inset: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  outline: none;
  touch-action: none;
}

.veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 90% at 50% 45%, transparent 56%, rgba(0, 0, 0, 0.42) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}

body.no-3d {
  background: radial-gradient(ellipse 80% 60% at 50% 38%, #2b2219 0%, var(--night) 72%);
}

body.no-3d .room {
  display: none;
}

.flat-hint {
  position: fixed;
  left: 50%;
  top: 46%;
  z-index: 2;
  display: none;
  margin: 0;
  transform: translate(-50%, -50%);
  color: var(--ink-3);
  font: 500 15px/1.6 var(--serif);
  letter-spacing: 0.3em;
}

body.no-3d[data-view="overview"] .flat-hint {
  display: block;
}

/* ---------- 开场：只有名字和一条细线 ---------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  background: var(--night);
  transition: opacity 1.2s var(--ease), visibility 0s linear 1.2s;
}

.intro.is-leaving {
  opacity: 0;
  visibility: hidden;
}

.intro__name {
  margin: 0;
  padding-left: 0.42em;
  font: 500 clamp(26px, 3.6vw, 38px) / 1.2 var(--serif);
  letter-spacing: 0.42em;
}

.intro__status {
  margin: 0;
  color: var(--ink-3);
  font-size: 13px;
  letter-spacing: 0.32em;
}

.intro__status:empty {
  display: none;
}

.intro__line {
  position: relative;
  width: 120px;
  height: 1px;
  overflow: hidden;
  background: var(--hair);
}

.intro__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brass);
  transform: translateX(-100%);
  animation: loading 1.6s var(--ease) infinite;
}

@keyframes loading {
  to {
    transform: translateX(100%);
  }
}

/* ---------- 顶部：名字、返回、外链 ---------- */

.hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: calc(22px + env(safe-area-inset-top, 0px)) clamp(18px, 3vw, 36px) 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease);
}

.hud > * {
  pointer-events: auto;
}

.ident__name {
  margin: 0;
  font: 500 19px/1.2 var(--serif);
  letter-spacing: 0.32em;
}

.ident__intro {
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: 13px;
  letter-spacing: 0.06em;
}

body:not([data-view="overview"]):not([data-view="intro"]) .ident {
  display: none;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px 8px 10px;
  border: 1px solid var(--hair-2);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 14px;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.back:hover {
  background: var(--glass-2);
}

.back svg {
  width: 16px;
  height: 16px;
}

.hud__links {
  display: flex;
  gap: 18px;
  padding-top: 3px;
  color: var(--ink-2);
  font-size: 13px;
}

.hud__links a {
  text-decoration: none;
}

.hud__links a:hover {
  color: var(--ink);
}

/* ---------- 底部导航：顺序和房间里从左到右一致 ---------- */

.dock {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 10;
  display: flex;
  gap: 2px;
  padding: 6px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  transform: translateX(-50%);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.dock button {
  padding: 9px 17px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font: 500 14px/1 var(--serif);
  letter-spacing: 0.14em;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.dock button:hover {
  color: var(--ink);
}

.dock button[aria-current="true"] {
  background: rgba(236, 228, 215, 0.1);
  color: var(--ink);
}

body:not([data-view="overview"]) .dock {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
}

body.is-loading .dock,
body.is-loading .hud {
  opacity: 0;
}

/* ---------- 悬停提示 ---------- */

.tip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  display: grid;
  gap: 2px;
  max-width: 260px;
  padding: 9px 13px;
  border: 1px solid var(--hair);
  border-radius: 10px;
  background: var(--glass-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
}

.tip strong {
  font: 500 15px/1.35 var(--serif);
  letter-spacing: 0.06em;
}

.tip span {
  color: var(--ink-2);
  font-size: 12px;
}

/* ---------- 按钮与输入 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 15px;
  border: 1px solid var(--hair-2);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn:hover {
  background: rgba(236, 228, 215, 0.07);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn--brass {
  border-color: transparent;
  background: var(--brass);
  color: var(--brass-ink);
  font-weight: 600;
}

.btn--brass:hover {
  background: #d5b47c;
}

.btn--quiet {
  border-color: var(--hair);
  color: var(--ink-2);
}

.text-btn,
.library__text-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-size: 13px;
  text-decoration: underline;
  text-decoration-color: var(--hair-2);
  text-underline-offset: 0.3em;
  cursor: pointer;
}

.text-btn:hover,
.library__text-btn:hover {
  color: var(--ink);
}

.field,
.library__search {
  position: relative;
  display: flex;
  align-items: center;
}

.field input,
.field select,
.library__search input,
.music-collection__toolbar select,
.form input:not([type="checkbox"]):not([type="file"]),
.form select,
.form textarea {
  width: 100%;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--hair);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.field input:focus,
.field select:focus,
.library__search input:focus,
.music-collection__toolbar select:focus,
.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--hair-2);
  background: rgba(0, 0, 0, 0.4);
}

.field select,
.music-collection__toolbar select,
.form select {
  padding-right: 34px;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

select option {
  background: #1a1714;
  color: var(--ink);
}

.field--search input,
.library__search input {
  padding-left: 36px;
}

.field--search::before,
.library__search::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -7px;
  border: 1.5px solid var(--ink-3);
  border-radius: 50%;
  pointer-events: none;
}

.field--search::after,
.library__search::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 50%;
  width: 6px;
  height: 1.5px;
  margin-top: 4px;
  background: var(--ink-3);
  transform: rotate(45deg);
  pointer-events: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chips button,
.music-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.chips button:hover,
.music-tabs button:hover {
  color: var(--ink);
  border-color: var(--hair-2);
}

.chips button span,
.music-tabs button span {
  color: var(--ink-3);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.chips button[aria-pressed="true"],
.music-tabs button[aria-selected="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--night);
}

.chips button[aria-pressed="true"] span,
.music-tabs button[aria-selected="true"] span {
  color: rgba(11, 10, 9, 0.55);
}

/* ---------- 面板：桌面在右侧，手机在底部 ---------- */

.panel {
  position: fixed;
  top: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: var(--panel-w);
  border: 1px solid var(--hair);
  border-radius: 18px;
  background: var(--glass-2);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.75);
  transform: translateX(calc(100% + 32px));
  transition: transform 0.6s var(--ease);
}

.panel--wide {
  --panel-w: min(560px, 46vw);
}

.panel.is-open {
  transform: none;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px 14px;
}

.panel__title {
  margin: 0;
  font: 500 26px/1.2 var(--serif);
  letter-spacing: 0.12em;
  outline: none;
}

.panel__close,
.sheet__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--hair);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}

.panel__close:hover,
.sheet__close:hover {
  border-color: var(--hair-2);
  color: var(--ink);
}

.panel__close svg,
.sheet__close svg {
  width: 13px;
  height: 13px;
}

.panel__body {
  flex: 1;
  padding: 2px 24px 30px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(236, 228, 215, 0.18) transparent;
}

.panel__lede {
  margin: 0 0 22px;
  color: var(--ink-2);
  font-size: 14px;
}

.panel__label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font: 500 16px/1.3 var(--serif);
  letter-spacing: 0.12em;
}

@media (max-width: 760px) {
  .panel,
  .panel--wide {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: 60vh;
    height: 60dvh;
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transform: translateY(100%);
  }

  .panel.is-open {
    transform: none;
  }

  .panel__head {
    padding: 18px 20px 10px;
  }

  .panel__body {
    padding: 2px 20px 26px;
  }

  .panel__title {
    font-size: 22px;
  }
}

/* ---------- 碟盒（面板里的游戏封面） ---------- */

.case {
  position: relative;
  display: block;
  width: 100%;
  padding: 6px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(160deg, #24262b, #141518 55%, #1c1d21);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 14px 26px -18px rgba(0, 0, 0, 0.95);
  text-align: left;
  cursor: pointer;
  transition: transform 0.35s var(--ease);
}

.case:hover {
  transform: translateY(-2px);
}

.case::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.12), transparent 38%, transparent 70%, rgba(255, 255, 255, 0.05));
  pointer-events: none;
}

/* 碟盒顶上的色带：只写类型 */
.case__band {
  display: flex;
  align-items: center;
  height: 22px;
  margin-bottom: 5px;
  padding: 0 8px;
  border-radius: 3px;
  background: #24262b;
}

.case--own .case__band {
  background: #6c5434;
}

.case__cat {
  overflow: hidden;
  color: var(--ink-2);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.case--own .case__cat {
  color: #f3e6cc;
}

.library-card__cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 3px;
  background: #1d1e22;
}

.library-card__cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.library-card__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  padding: 10px;
  background: #27292e;
  color: var(--ink-2);
  font: 500 13px/1.45 var(--serif);
  text-align: center;
}

.library-card__fallback > span {
  display: none;
}

.library-card.is-current .case,
.own.is-current .case {
  box-shadow: 0 0 0 1.5px var(--brass), 0 14px 26px -18px rgba(0, 0, 0, 0.95);
}

/* ---------- 游戏柜面板 ---------- */

.own-works {
  margin-bottom: 30px;
}

.own-list {
  display: grid;
  gap: 12px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.own {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--hair);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.own__body h4 {
  margin: 0;
  font: 500 18px/1.3 var(--serif);
  letter-spacing: 0.06em;
}

.own__body p {
  margin: 6px 0 14px;
  color: var(--ink-2);
  font-size: 13px;
}

.library__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.library__total {
  color: var(--ink-3);
  font: 400 13px/1 var(--sans);
  letter-spacing: 0;
}

.library__toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  margin: 16px 0 12px;
}

.library__density {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--hair);
  border-radius: 10px;
}

.library__density button {
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-size: 13px;
  cursor: pointer;
}

.library__density button[aria-pressed="true"] {
  background: rgba(236, 228, 215, 0.1);
  color: var(--ink);
}

.library__summary {
  margin: 14px 0 12px;
  color: var(--ink-3);
  font-size: 12.5px;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
  gap: 24px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.library-grid.is-compact {
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 14px 10px;
}

.library-grid.is-compact .library-card__category,
.library-grid.is-compact .library-card__review-trigger,
.library-grid.is-compact .library-card__review,
.library-grid.is-compact .library-card__review-text {
  display: none;
}

.library-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.library-card__favorite {
  position: absolute;
  top: 36px;
  right: 10px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 9, 8, 0.62);
  color: var(--ink-2);
  font-size: 14px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}

.library-card:hover .library-card__favorite,
.library-card:focus-within .library-card__favorite,
.library-card__favorite[aria-pressed="true"] {
  opacity: 1;
}

.library-card__favorite[aria-pressed="true"] {
  color: var(--brass);
}

@media (hover: none) {
  .library-card__favorite {
    opacity: 1;
  }
}

.library-card__title {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  font: 500 14px/1.4 var(--serif);
  letter-spacing: 0.03em;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.library-card__category {
  margin: 0;
  color: var(--ink-3);
  font-size: 12px;
}

.library-card__review-trigger {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-3);
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.library-card__review-trigger:hover {
  color: var(--ink);
}

.library-card__rating strong {
  color: var(--brass);
  font: 600 14px/1 var(--serif);
}

.library-card__review-text {
  margin: 4px 0 0;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.65;
}

.library-card__review summary {
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.65;
  list-style: none;
  cursor: pointer;
}

.library-card__review summary::-webkit-details-marker {
  display: none;
}

.library-card__review summary > span {
  color: var(--brass);
}

.library-card__review[open] summary {
  display: none;
}

.library-card__edit {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.library-card__edit button {
  flex: 1;
  padding: 4px 0;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 12px;
  cursor: pointer;
}

.library-card__edit button[data-remove] {
  color: var(--warn);
}

.library__empty {
  padding: 30px 0;
  color: var(--ink-2);
  text-align: center;
}

.library__empty p {
  margin: 0 0 12px;
}

.library__foot {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
}

.library-settings {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 13px;
}

.library-settings p {
  margin: 0 0 12px;
}

.library-settings__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.library__notice {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 0;
  padding: 10px 14px;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: var(--glass-2);
  font-size: 13px;
}

/* ---------- 唱片机面板 ---------- */

.records {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.record {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.record__sleeve {
  position: relative;
  display: block;
  aspect-ratio: 1;
}

.record__sleeve img,
.record__art {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 12px 24px -12px #000;
}

.record__art {
  display: grid;
  place-content: center;
  padding: 10px;
  background: #2c3646;
  font: 500 14px/1.4 var(--serif);
  text-align: center;
}

.record__disc {
  position: absolute;
  top: 4%;
  right: -16%;
  width: 92%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brass) 0 13%, #0d0d0e 13.5% 15%, #171718 15.5% 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 0.6s var(--ease);
}

.record:hover .record__disc,
.record.is-playing .record__disc {
  transform: translateX(12%) rotate(40deg);
}

.record__body h3 {
  margin: 0;
  font: 500 19px/1.3 var(--serif);
  letter-spacing: 0.06em;
}

.record.is-playing h3::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 10px;
  border-radius: 50%;
  background: var(--brass);
  vertical-align: middle;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}

.record__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 6px 0 0;
  color: var(--ink-3);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.record__note {
  margin: 10px 0 0;
  color: var(--ink-2);
  font-size: 13.5px;
}

.record__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.records__msg {
  margin: 18px 0 0;
  color: var(--warn);
  font-size: 13px;
}

/* ---------- 唱片架面板（网易云收藏） ---------- */

.music-featured {
  margin-bottom: 30px;
}

.music-featured__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.music-featured__head h3 {
  margin: 0;
  font: 500 16px/1.3 var(--serif);
  letter-spacing: 0.12em;
}

.music-featured__head > span {
  color: var(--ink-3);
  font-size: 12.5px;
}

.music-picks {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hair);
}

.music-picks > li {
  border-bottom: 1px solid var(--hair);
}

.music-pick {
  display: grid;
  grid-template-columns: 22px 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 6px;
  border-radius: 8px;
  text-decoration: none;
}

.music-pick:hover,
.music-picks > li.is-current > .music-pick {
  background: rgba(236, 228, 215, 0.06);
}

.music-pick__number {
  color: var(--ink-3);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.music-pick__cover {
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 3px;
  background: #222;
}

.music-pick__cover img,
.music-table__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.music-pick__body {
  display: grid;
  min-width: 0;
}

.music-pick__title {
  overflow: hidden;
  font: 500 14.5px/1.4 var(--serif);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.music-pick__artist {
  overflow: hidden;
  color: var(--ink-3);
  font-size: 12.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.music-pick__open {
  color: var(--ink-3);
  font-size: 13px;
}

.music-covers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 22px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.music-cover {
  min-width: 0;
}

.music-cover__art {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 3px;
  background: #222;
  box-shadow: 0 12px 24px -16px #000;
}

.music-cover__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.music-cover__art:hover img {
  transform: scale(1.03);
}

.music-cover__open {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(10, 9, 8, 0.66);
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.2s;
}

.music-cover__art:hover .music-cover__open,
.music-cover__art:focus-visible .music-cover__open {
  opacity: 1;
}

.music-cover h3 {
  margin: 10px 0 0;
  overflow: hidden;
  font: 500 13.5px/1.4 var(--serif);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.music-cover h3 a {
  text-decoration: none;
}

.music-cover__artist {
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--ink-3);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.music-cover.is-current .music-cover__art {
  box-shadow: 0 0 0 1.5px var(--brass), 0 12px 24px -16px #000;
}

.music-archive {
  padding-top: 4px;
  border-top: 1px solid var(--hair);
}

.music-archive > summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  font: 500 16px/1.3 var(--serif);
  letter-spacing: 0.12em;
  list-style: none;
  cursor: pointer;
}

.music-archive > summary::-webkit-details-marker {
  display: none;
}

.music-archive__count {
  color: var(--ink-3);
  font: 400 12.5px/1 var(--sans);
  letter-spacing: 0;
}

.music-archive__toggle {
  width: 9px;
  height: 9px;
  margin-left: auto;
  border-right: 1.5px solid var(--ink-3);
  border-bottom: 1.5px solid var(--ink-3);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}

.music-archive[open] .music-archive__toggle {
  transform: rotate(-135deg);
}

.music-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.music-collection__toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.music-collection__status {
  margin: 12px 0;
  color: var(--ink-3);
  font-size: 12.5px;
}

.music-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}

.music-table th {
  padding: 8px 6px;
  border-bottom: 1px solid var(--hair);
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 400;
  text-align: left;
}

.music-table th:first-child {
  width: 36px;
}

.music-table th:last-child {
  width: 54px;
  text-align: right;
}

.music-table td {
  padding: 8px 6px;
  overflow: hidden;
  border-bottom: 1px solid var(--hair);
  vertical-align: middle;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.music-table tbody tr:hover {
  background: rgba(236, 228, 215, 0.04);
}

.music-table .music-table__artist,
.music-table .music-table__album {
  display: none;
}

.music-table__number,
.music-table__duration {
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.music-table__duration {
  text-align: right;
}

.music-table__song {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.music-table__cover {
  flex: none;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 3px;
  background: #222;
}

.music-table__song-text {
  display: grid;
  min-width: 0;
}

.music-table__title {
  overflow: hidden;
  font-family: var(--serif);
  text-overflow: ellipsis;
}

.music-table__mobile-artist {
  overflow: hidden;
  color: var(--ink-3);
  font-size: 12px;
  text-overflow: ellipsis;
}

.music-pages {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  color: var(--ink-3);
  font-size: 12.5px;
}

.music-show-more {
  width: 100%;
  margin-top: 16px;
}

.music-collection__empty {
  padding: 20px 0;
  color: var(--ink-2);
  text-align: center;
}

/* ---------- 碎碎念 ---------- */

.notes {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.note {
  padding: 18px 0;
  border-top: 1px solid var(--hair);
}

.note__meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
}

.note__meta time {
  font: 500 15px/1 var(--serif);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.note__meta span {
  color: var(--ink-3);
  font-size: 12px;
}

.note__text {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.9;
}

.note__text p {
  margin: 0 0 0.7em;
}

.note__text p:last-child {
  margin: 0;
}

.note__text strong {
  color: #f7efe2;
  font-weight: 600;
}

.note__imgs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.note__imgs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
}

/* ---------- 电视画面：位置由脚本对齐到 3D 屏幕 ---------- */

.tv {
  position: fixed;
  inset: 0;
  z-index: 15;
  pointer-events: none;
}

.tv__screen {
  position: absolute;
  overflow: hidden;
  border-radius: 2px;
  background: #04050a;
  pointer-events: auto;
  container-type: size;
}

.tv__screen[data-mode="off"] {
  display: none;
}

.tv-boot,
.tv-home,
.tv-game,
.tv-flat {
  position: absolute;
  inset: 0;
  display: none;
}

/* 开机：没有任何字，只有一团光慢慢亮起再退下去 */
.tv__screen[data-mode="boot"] .tv-boot {
  display: block;
  overflow: hidden;
  background: #04060b;
}

.tv__screen[data-mode="boot"] .tv-boot::before {
  content: "";
  position: absolute;
  inset: -10%;
  background: radial-gradient(ellipse 46% 38% at 50% 52%, rgba(198, 212, 255, 0.4), rgba(52, 70, 120, 0.16) 48%, transparent 76%);
  animation: boot 1.7s var(--ease) both;
}

@keyframes boot {
  0% {
    opacity: 0;
    transform: scale(0.55);
  }
  42% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

.tv__screen[data-mode="home"] .tv-home {
  display: block;
  animation: fade 0.8s var(--ease) both;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.tv-home__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.tv-home__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: drift 26s ease-in-out infinite alternate;
}

@keyframes drift {
  to {
    transform: scale(1.06) translateX(-1.5%);
  }
}

.tv-home__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 5, 10, 0.92) 0%, rgba(4, 5, 10, 0.72) 38%, rgba(4, 5, 10, 0.1) 76%),
    linear-gradient(0deg, rgba(4, 5, 10, 0.86), transparent 46%);
}

.tv-home__top {
  position: absolute;
  top: 4.5cqh;
  left: 4.5cqw;
  right: 4.5cqw;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--ink-2);
  font-size: 2.6cqh;
}

.tv-home__clock {
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.tv-home__hero {
  position: absolute;
  top: 21cqh;
  left: 4.5cqw;
  width: 48cqw;
}

.tv-home__title {
  margin: 0;
  font: 600 7.6cqh/1.15 var(--serif);
  letter-spacing: 0.06em;
}

.tv-home__tagline {
  margin: 2.2cqh 0 0;
  color: var(--ink-2);
  font-size: 2.9cqh;
  line-height: 1.6;
}

.tv-home__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1cqh 2.4cqw;
  margin: 2.6cqh 0 0;
  color: var(--ink-2);
  font-size: 2.3cqh;
}

.tv-home__facts em {
  margin-right: 0.6em;
  color: var(--ink-3);
  font-style: normal;
}

.tv-home__actions {
  display: flex;
  gap: 1.2cqw;
  margin-top: 4.4cqh;
}

.tv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 6.8cqh;
  padding: 0 2.8cqw;
  border: 1px solid rgba(236, 228, 215, 0.3);
  border-radius: 999px;
  background: rgba(10, 10, 14, 0.42);
  color: var(--ink);
  font-size: 2.6cqh;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.tv-btn:hover {
  background: rgba(236, 228, 215, 0.12);
}

.tv-btn--primary {
  border-color: transparent;
  background: var(--ink);
  color: #08080b;
  font-weight: 600;
}

.tv-btn--primary:hover {
  background: #fff;
}

.tv-home__hint,
.tv-home__msg {
  max-width: 46cqw;
  margin: 2.6cqh 0 0;
  color: var(--ink-2);
  font-size: 2.3cqh;
  line-height: 1.6;
}

.tv-home__msg {
  color: var(--warn);
}

.tv-home__rail {
  position: absolute;
  left: 4.5cqw;
  right: 4.5cqw;
  bottom: 5cqh;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2cqw;
}

.tv-home__tiles,
.tv-home__shots {
  display: flex;
  gap: 1cqw;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tv-home__shots {
  margin-left: auto;
}

.tv-home__tiles button,
.tv-home__shots button {
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(236, 228, 215, 0.18);
  border-radius: 4px;
  background: #111;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.2s, border-color 0.2s;
}

.tv-home__tiles button {
  width: 9cqw;
  aspect-ratio: 16 / 9;
}

.tv-home__shots button {
  width: 11cqw;
  aspect-ratio: 16 / 9;
}

.tv-home__tiles button:hover,
.tv-home__shots button:hover,
.tv-home__tiles button[aria-pressed="true"],
.tv-home__shots button[aria-pressed="true"] {
  border-color: var(--ink);
  opacity: 1;
}

.tv-home__tiles img,
.tv-home__shots img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tv__screen[data-mode="game"] .tv-game {
  display: block;
  background: #000;
}

.tv-game iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.tv__screen[data-mode="flat"] .tv-flat {
  display: block;
  width: 100%;
  height: 100%;
}

.tv-exit {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: none;
  min-height: 36px;
  font-size: 14px;
}

.tv__screen.is-pseudo-fs {
  position: fixed;
  inset: 0 !important;
  z-index: 60;
  width: auto !important;
  height: auto !important;
  border-radius: 0;
}

.tv__screen.is-pseudo-fs .tv-exit {
  display: inline-flex;
}

.tv__screen:fullscreen {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0;
}

.tv__bar {
  position: absolute;
  left: 50%;
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateX(-50%);
  pointer-events: auto;
}

.tv__bar button {
  padding: 8px 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 13.5px;
  white-space: nowrap;
  cursor: pointer;
}

.tv__bar button:hover {
  background: rgba(236, 228, 215, 0.08);
  color: var(--ink);
}

.tv__bar[data-mode="home"] [data-for="game"] {
  display: none;
}

#tv-off {
  color: var(--ink);
}

/* ---------- 正在播放 ---------- */

.np {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  z-index: 12;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "disc text actions"
    "disc time time";
  align-items: center;
  column-gap: 14px;
  row-gap: 2px;
  width: min(580px, calc(100vw - 28px));
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--hair);
  border-radius: 24px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  transform: translateX(-50%);
}

body[data-view="tv"] .np {
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
}

body:not([data-view="overview"]):not([data-view="tv"]) .np {
  display: none;
}

.np__disc {
  position: relative;
  grid-area: disc;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 50%;
  background: #141416;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.np__disc img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.np__disc::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px;
  border-radius: 50%;
  background: var(--night);
  box-shadow: 0 0 0 2px rgba(236, 228, 215, 0.4);
}

.np.is-playing .np__disc {
  animation: spin 5s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.np__text {
  display: grid;
  grid-area: text;
  min-width: 0;
}

.np__text strong {
  overflow: hidden;
  font: 500 15px/1.35 var(--serif);
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.np__text span {
  overflow: hidden;
  color: var(--ink-3);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.np__actions {
  display: flex;
  grid-area: actions;
  gap: 2px;
}

.np__actions button {
  padding: 6px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}

.np__actions button:hover {
  background: rgba(236, 228, 215, 0.08);
  color: var(--ink);
}

.np__time {
  display: grid;
  grid-area: time;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  color: var(--ink-3);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.np__seek {
  --p: 0%;
  width: 100%;
  height: 18px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.np__seek::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--ink) var(--p), rgba(236, 228, 215, 0.18) var(--p));
}

.np__seek::-webkit-slider-thumb {
  width: 10px;
  height: 10px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}

.np__seek::-moz-range-track {
  height: 2px;
  background: rgba(236, 228, 215, 0.18);
}

.np__seek::-moz-range-progress {
  height: 2px;
  background: var(--ink);
}

.np__seek::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
}

.np__note {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  color: var(--warn);
  font-size: 12.5px;
}

.media-host {
  position: fixed;
  top: 0;
  left: 0;
  width: 2px;
  height: 2px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ---------- 对话框（添加游戏、评价） ---------- */

dialog.sheet {
  width: min(640px, calc(100vw - 32px));
  max-height: min(86vh, 860px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--hair-2);
  border-radius: 18px;
  background: #151311;
  color: var(--ink);
  box-shadow: 0 40px 120px -40px #000;
}

dialog.sheet::backdrop {
  background: rgba(5, 4, 3, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.sheet__head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px 14px;
  background: #151311;
}

.sheet__head h2 {
  margin: 0;
  font: 500 22px/1.25 var(--serif);
  letter-spacing: 0.1em;
}

.sheet__sub {
  margin: 4px 0 0;
  color: var(--ink-2);
  font-size: 13px;
}

#game-picker,
.form,
.sheet__saved {
  padding-right: 24px;
  padding-left: 24px;
}

.seg {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 3px;
  border: 1px solid var(--hair);
  border-radius: 999px;
}

.seg button {
  padding: 6px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 13.5px;
  cursor: pointer;
}

.seg button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--night);
}

.sheet__search {
  display: flex;
  gap: 8px;
}

.sheet__search .field {
  flex: 1;
}

.sheet__hint {
  margin: 10px 0 0;
  color: var(--ink-3);
  font-size: 12.5px;
}

.sheet__credit {
  margin: 18px 0 20px;
  color: var(--ink-3);
  font-size: 12px;
}

.sheet__saved {
  margin: 0;
  padding-top: 14px;
  padding-bottom: 22px;
  border-top: 1px solid var(--hair);
  color: var(--ink-3);
  font-size: 12.5px;
}

.game-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 16px 14px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.game-result {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.game-result .library-card__cover {
  border-radius: 6px;
  box-shadow: 0 10px 20px -14px #000;
}

.game-result__title {
  font: 500 13px/1.4 var(--serif);
}

.game-result__action {
  color: var(--brass);
  font-size: 12px;
}

.game-result:disabled {
  cursor: default;
  opacity: 0.5;
}

.game-result:disabled .game-result__action {
  color: var(--ink-3);
}

.form {
  display: grid;
  gap: 14px;
  padding-bottom: 22px;
}

.form label {
  display: grid;
  gap: 6px;
  color: var(--ink-2);
  font-size: 13px;
}

.form small {
  color: var(--ink-3);
  font-size: 12px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--hair);
  border-radius: 12px;
}

.form legend {
  padding: 0 6px;
  color: var(--ink);
  font: 500 14px/1 var(--serif);
  letter-spacing: 0.08em;
}

.form textarea {
  min-height: 96px;
  resize: vertical;
}

.form .form__check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form__actions {
  display: flex;
  gap: 8px;
}

.form .is-over-limit {
  color: var(--warn);
}

.form__error {
  margin: 0;
  color: var(--warn);
  font-size: 13px;
}

/* ---------- 手机 ---------- */

@media (max-width: 760px) {
  .ident__name {
    font-size: 17px;
  }

  .ident__intro {
    font-size: 12px;
  }

  .hud__links {
    display: none;
  }

  .dock {
    left: 12px;
    right: 12px;
    justify-content: space-between;
    overflow-x: auto;
    transform: none;
  }

  body:not([data-view="overview"]) .dock {
    transform: translateY(14px);
  }

  .dock button {
    padding: 9px 11px;
    font-size: 13px;
    letter-spacing: 0.06em;
  }

  .np {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "disc text"
      "time time"
      "actions actions";
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }

  .np__actions {
    justify-content: space-between;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .tv__bar button {
    padding: 8px 11px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
