:root {
  color-scheme: light;
  --desktop: #d8cfba;
  --desktop-deep: #b6aa92;
  --panel: #faf1e8;
  --panel-bright: #fff9f0;
  --cream: #f9f0e9;
  --yellow: #faf4c6;
  --ink: #050505;
  --muted: #2a2421;
  --line: #050505;
  --aqua: #afe5dd;
  --pink: #f6d6d5;
  --shadow: rgba(33, 28, 20, .2);
  --newsprint: #d9cfb8;
  --newsprint-light: #eee3c7;
  --newsprint-ink: #1e1d19;
  --newsprint-fade: rgba(49, 43, 32, .18);
  --ui: "ZpixLocal", "Noto Sans SC", "Microsoft YaHei UI", "PingFang SC", "Source Han Sans SC", system-ui, sans-serif;
  --pixel: "ZpixLocal", "Zpix", "Fusion Pixel", "Noto Sans SC", "Microsoft YaHei UI", sans-serif;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
}

@font-face {
  font-family: "ZpixLocal";
  src: url("/assets/fonts/zpix.ttf") format("truetype");
  font-display: swap;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--desktop);
  font-family: var(--ui);
  font-size: 12px;
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: none;
  text-rendering: geometricPrecision;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid #ff4ea1; outline-offset: 2px; }

.home-page {
  height: 100vh;
  overflow: hidden;
}

.top-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  height: 32px;
  min-width: 380px;
  pointer-events: auto;
}

.top-member,
.top-clock {
  display: flex;
  height: 32px;
  font-family: var(--pixel);
  font-weight: 900;
}

.top-member {
  align-items: center;
  width: 204px;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--newsprint-light) 82%, white);
}

.top-sun {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-right: 0;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
}

.top-avatar-icon {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(1px 1px 0 rgba(0,0,0,.35));
}

.top-palm-icon {
  position: relative;
  display: block;
  width: 21px;
  height: 21px;
}

.top-palm-icon::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  width: 3px;
  height: 11px;
  background: #fff;
  box-shadow:
    -3px -4px 0 #fff,
    -6px -6px 0 #fff,
    3px -5px 0 #fff,
    6px -7px 0 #fff,
    0 -7px 0 #fff,
    -5px 3px 0 #fff,
    4px 5px 0 #fff;
  transform: skewX(-10deg);
}

.top-palm-icon::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  width: 3px;
  height: 3px;
  background: #fff;
  box-shadow:
    -4px 1px 0 #fff,
    -7px 3px 0 #fff,
    4px 0 0 #fff,
    7px 2px 0 #fff,
    1px -3px 0 #fff;
}

.top-member span:last-child {
  padding: 0 11px;
  white-space: nowrap;
}

.top-clock span {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 32px;
  padding: 0 10px;
  border-left: 1px solid var(--line);
  background: color-mix(in srgb, var(--newsprint-light) 82%, white);
}

.top-clock span:first-child { min-width: 118px; }
.top-clock .clock-dot {
  min-width: 28px;
  padding: 0;
  color: #e6002f;
  font-size: 16px;
}

.clock-pixel-icon {
  position: relative;
  display: block;
  width: 15px;
  height: 15px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 2px #e6002f;
}

.clock-pixel-icon::before,
.clock-pixel-icon::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 2px;
  height: 5px;
  background: var(--line);
  transform-origin: bottom center;
}

.clock-pixel-icon::after {
  top: 6px;
  width: 5px;
  height: 2px;
  transform: none;
}

.nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 90;
  display: flex;
  width: max-content;
  max-width: calc(100vw - 24px);
  height: 72px;
  overflow-x: auto;
  overflow-y: hidden;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-bottom: 0;
  background: color-mix(in srgb, var(--panel) 92%, var(--newsprint-light));
  box-shadow: 0 -5px 0 rgba(33, 28, 20, .08);
  font-family: var(--pixel);
  font-weight: 900;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 80px;
  min-width: 80px;
  height: 72px;
  padding: 9px 4px 8px;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 92%, var(--newsprint-light));
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.nav a:last-child { border-right: 0; }
.nav a:hover,
.nav a.active { background: var(--panel-bright); }
.nav-icon {
  display: block;
  width: 32px;
  height: 32px;
  transform: translate(var(--dock-x, 0), var(--dock-y, 0));
  image-rendering: pixelated;
}

.nav a > span:last-child {
  display: block;
  max-width: 74px;
  overflow: hidden;
  padding: 3px 3px 2px;
  text-overflow: ellipsis;
  text-align: center;
}

.nav-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-top: 0;
}

.settings-pink-chip {
  display: none;
}

.desktop-app {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-width: 380px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.26), transparent 24%),
    linear-gradient(110deg, rgba(0,0,0,.05), transparent 34%, rgba(0,0,0,.07)),
    var(--desktop);
}

.newspaper-backdrop {
  position: absolute;
  inset: 32px 0 72px;
  z-index: 0;
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 54px);
  pointer-events: none;
  overflow: hidden;
}

.newspaper-backdrop::before,
.newspaper-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.newspaper-backdrop::before {
  background:
    radial-gradient(rgba(28,24,18,.18) .7px, transparent .8px) 0 0 / 5px 5px,
    radial-gradient(rgba(255,255,255,.2) .8px, transparent .9px) 2px 3px / 7px 7px;
  opacity: .38;
  mix-blend-mode: multiply;
}

.newspaper-backdrop::after {
  background:
    linear-gradient(90deg, rgba(54,45,29,.08), transparent 18%, transparent 72%, rgba(54,45,29,.1)),
    linear-gradient(0deg, rgba(54,45,29,.08), transparent 14%, transparent 78%, rgba(54,45,29,.09));
}

.newspaper-sheet {
  position: relative;
  width: min(1180px, 86vw);
  min-height: min(720px, calc(100vh - 150px));
  padding: clamp(18px, 2.3vw, 34px);
  border: 1px solid rgba(30,29,25,.46);
  color: var(--newsprint-ink);
  background:
    linear-gradient(90deg, rgba(30,29,25,.09) 1px, transparent 1px) 0 0 / 34px 100%,
    linear-gradient(0deg, rgba(30,29,25,.045) 1px, transparent 1px) 0 0 / 100% 19px,
    radial-gradient(circle at 20% 16%, rgba(255,255,255,.52), transparent 28%),
    radial-gradient(circle at 80% 76%, rgba(88,68,42,.16), transparent 32%),
    var(--newsprint-light);
  box-shadow:
    22px 24px 0 rgba(45, 38, 26, .11),
    inset 0 0 80px rgba(75, 58, 37, .16);
  transform: rotate(-.65deg);
}

.newspaper-sheet::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 3px double rgba(30,29,25,.7);
  opacity: .52;
}

.newspaper-sheet::after {
  content: "人民日报";
  position: absolute;
  left: 50%;
  top: 46%;
  color: rgba(30,29,25,.055);
  font-family: var(--serif);
  font-size: clamp(86px, 13vw, 210px);
  font-weight: 900;
  letter-spacing: .08em;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(-5deg);
}

.newspaper-masthead,
.newspaper-lead,
.newspaper-grid,
.newspaper-columns {
  position: relative;
  z-index: 1;
}

.newspaper-masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 18px;
  padding: 3px 0 10px;
  border-bottom: 5px solid var(--newsprint-ink);
  font-family: var(--serif);
}

.newspaper-masthead strong {
  display: block;
  font-size: clamp(58px, 8vw, 112px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: .08em;
  text-shadow:
    1px 0 0 rgba(30,29,25,.42),
    -1px 0 0 rgba(30,29,25,.2);
}

.newspaper-meta {
  display: block;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(30,29,25,.75);
  font-family: var(--pixel);
  font-size: clamp(9px, 1vw, 12px);
  font-weight: 900;
  text-align: center;
}

.newspaper-rule {
  position: relative;
  z-index: 1;
  height: 7px;
  margin: 4px 0 12px;
  border-top: 1px solid rgba(30,29,25,.75);
  border-bottom: 2px solid rgba(30,29,25,.75);
}

.newspaper-lead {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 10px 0 14px;
  border-bottom: 2px solid rgba(30,29,25,.82);
  text-align: center;
  font-family: var(--serif);
}

.newspaper-lead p {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 38px);
  font-weight: 900;
  letter-spacing: .08em;
}

.newspaper-lead h2 {
  margin: 0;
  font-size: clamp(28px, 4.4vw, 72px);
  line-height: 1.04;
  letter-spacing: .04em;
}

.newspaper-grid {
  display: grid;
  grid-template-columns: 1.15fr .9fr .95fr;
  gap: 16px;
  min-height: 190px;
}

.newspaper-grid article {
  padding-right: 14px;
  border-right: 1px solid rgba(30,29,25,.58);
  font-family: var(--serif);
}

.newspaper-grid article:last-child {
  border-right: 0;
}

.newspaper-grid h3 {
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(30,29,25,.7);
  font-size: clamp(17px, 1.4vw, 25px);
  line-height: 1.15;
  letter-spacing: .04em;
}

.newspaper-grid p {
  margin: 0 0 7px;
  color: rgba(30,29,25,.76);
  font-size: clamp(10px, .9vw, 14px);
  line-height: 1.72;
  text-align: justify;
  word-break: break-all;
}

.newspaper-columns {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 13px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 2px solid rgba(30,29,25,.82);
}

.newspaper-columns i {
  display: block;
  min-height: 118px;
  background:
    repeating-linear-gradient(0deg, rgba(30,29,25,.48) 0 1px, transparent 1px 5px),
    linear-gradient(90deg, transparent 0 47%, rgba(30,29,25,.4) 47% 48%, transparent 48%);
  opacity: .42;
}

.desktop-window {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 1;
  width: min(var(--w), calc(100vw - 24px));
  height: min(var(--h), calc(100vh - 112px));
  display: none;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: 14px 16px 0 var(--shadow);
  overflow: hidden;
}

.desktop-window.is-open {
  display: flex;
}

.desktop-window.is-active {
  z-index: 20;
}

.desktop-window.is-maximized {
  left: 8px !important;
  top: 40px !important;
  width: calc(100vw - 16px) !important;
  height: calc(100vh - 122px) !important;
  transform: none !important;
}

.player-window {
  transform: translateX(-50%);
}

.window-titlebar {
  display: flex;
  align-items: center;
  min-height: 31px;
  padding: 5px 6px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  font-family: var(--pixel);
  font-weight: 900;
  user-select: none;
}

.drag-handle { cursor: grab; }
.drag-handle:active { cursor: grabbing; }

.window-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.window-control {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: var(--pixel);
  line-height: 1;
}

.dark-control {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel-bright);
  cursor: pointer;
}
.dark-control:hover,
.dark-control[aria-pressed="true"] {
  background: #fffaf1;
}
.maximize-control::before {
  content: "";
  width: 12px;
  height: 10px;
  border: 2px solid var(--line);
  background:
    linear-gradient(var(--line), var(--line)) 0 2px / 100% 2px no-repeat,
    var(--panel-bright);
}
.desktop-window.is-maximized .maximize-control::before {
  width: 11px;
  height: 9px;
  box-shadow: 3px -3px 0 -1px var(--panel-bright), 3px -3px 0 1px var(--line);
}
.mark-control { border-color: transparent; background: transparent; }
.window-title {
  margin-left: auto;
  padding-right: 2px;
}

.resize-handle {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  cursor: nwse-resize;
  background:
    linear-gradient(135deg, transparent 0 45%, var(--line) 45% 52%, transparent 52%),
    linear-gradient(135deg, transparent 0 66%, var(--line) 66% 73%, transparent 73%);
  opacity: .75;
}

.broadcast-panel {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 5px 3px;
  border: 1px solid var(--line);
  border-top: 0;
  overflow: hidden;
  background: #050505;
}

.snow-canvas,
.broadcast-video,
.broadcast-iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.snow-canvas {
  z-index: 1;
  background: #111;
  image-rendering: pixelated;
}

.broadcast-video,
.broadcast-iframe {
  z-index: 2;
  border: 0;
  object-fit: cover;
  background: #050505;
}

.broadcast-panel.is-media-ready .snow-canvas {
  opacity: 0;
}

.broadcast-panel[data-media-type="snow"] .snow-canvas,
.broadcast-panel:not(.is-media-ready) .snow-canvas {
  opacity: 1;
}

.scan-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.24) 1px, transparent 1px) 0 0 / 3px 3px,
    linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px) 0 0 / 3px 3px;
  mix-blend-mode: screen;
  opacity: .78;
  image-rendering: pixelated;
}

.pool-tv-mark {
  position: absolute;
  left: 9px;
  top: 8px;
  z-index: 4;
  display: grid;
  gap: 0;
  color: #fff;
  font-family: var(--pixel);
  font-size: 13px;
  font-weight: 900;
  line-height: .9;
  text-shadow: 1px 1px 0 #050505;
  pointer-events: none;
}

.pool-tv-mark b {
  margin-left: 22px;
  color: #ff6fc2;
  font-size: 19px;
  transform: translateY(-2px) skewX(-10deg);
}

.video-readout {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 18px;
  padding: 0 6px;
  border-top: 1px solid #fff;
  background: #050505;
  color: #fff;
  font-family: var(--pixel);
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.video-readout-left {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.video-readout-left i {
  display: block;
  width: 8px;
  height: 8px;
  border: 1px solid #fff;
}

.video-readout-left i:first-child::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin: 1px 0 0 2px;
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  border-left: 3px solid #fff;
}

.track-card {
  position: relative;
  min-height: 56px;
  margin: 0 5px 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel-bright);
  overflow: hidden;
}

.track-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 31px, rgba(42, 42, 36, .12) 31px 32px, transparent 32px 63px) 0 0 / 64px 100%,
    linear-gradient(0deg, rgba(255, 255, 255, .38), transparent 54%);
}

.meter-face {
  position: relative;
  display: block;
  min-height: 42px;
  padding: 5px;
  border: 1px solid #3d3a34;
  border-radius: 3px;
  background:
    linear-gradient(90deg, rgba(50,44,38,.18) 1px, transparent 1px) 0 0 / 18px 100%,
    linear-gradient(#eee6da, #d8d0c3);
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,.65),
    inset -1px -1px 0 rgba(50,44,39,.18);
  z-index: 1;
}

.meter-bars {
  display: grid;
  grid-template-columns: repeat(360, minmax(1px, 1fr));
  align-items: end;
  gap: 0;
  height: 31px;
  min-width: 0;
  padding: 3px 4px;
  border: 1px solid #5d574f;
  border-radius: 2px;
  background:
    linear-gradient(90deg, rgba(0,0,0,.14) 1px, transparent 1px) 0 0 / 9px 100%,
    linear-gradient(#9fa89f, #737f79);
  box-shadow: inset 1px 1px 0 rgba(0,0,0,.28);
}

.meter-bars i {
  display: block;
  width: 100%;
  height: calc(var(--level, .08) * 100%);
  min-height: 2px;
  border: 0;
  border-radius: 1px 1px 0 0;
  background: #4ec36d;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.32),
    0 0 0 1px rgba(8, 17, 10, .16);
  transform-origin: bottom;
  transition: height .08s steps(3, end), background-color .08s steps(2, end);
}

.meter-bars i:nth-child(n+229) { background: #d6ce52; }
.meter-bars i:nth-child(n+307) { background: #ef6b5a; }

.reduced-motion .meter-bars i {
  transition: none;
}

.track-card.is-quiet .meter-bars i {
  height: calc((.03 + (var(--bar) % 9) * .007) * 100%);
  background: #7a9d79;
}

.track-card.is-simulated .meter-bars i {
  animation: meter-sim 1.34s steps(7, end) infinite;
  animation-delay: calc(var(--bar) * -7ms);
}

@keyframes meter-sim {
  0%, 100% { height: 18%; }
  20% { height: 72%; }
  48% { height: 36%; }
  70% { height: 88%; }
}

@media (prefers-reduced-motion: reduce) {
  .track-card.is-simulated .meter-bars i {
    animation: none;
  }
}

.transport-row {
  display: grid;
  grid-template-columns: 1fr 198px;
  gap: 4px;
  margin: 0 5px 4px;
}

.track-progress {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 28px;
  padding: 11px 8px 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel-bright);
  font-family: var(--pixel);
  font-weight: 900;
  font-size: 10px;
}

.mini-play {
  width: 15px;
  height: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--pixel);
  font-weight: 900;
}

.progress-track {
  position: absolute;
  left: 7px;
  right: 7px;
  top: 7px;
  height: 2px;
  background: #c9c3bd;
}

.progress-track i {
  display: block;
  width: 0;
  height: 2px;
  background: var(--line);
}

.transport-buttons {
  display: flex;
  justify-content: center;
  align-items: stretch;
  min-height: 28px;
}
.transport {
  display: grid;
  place-items: center;
  width: 31px;
  min-width: 31px;
  height: 28px;
  margin-left: -1px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--panel-bright);
  font-family: var(--pixel);
  font-size: 0;
  font-weight: 900;
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,.52),
    inset -1px -1px 0 rgba(51,45,39,.12);
}

.transport.is-playing,
.transport.active { background: var(--aqua); }
.transport.is-playing {
  background: var(--aqua);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
}
.transport.play-button,
.transport.pink { width: 43px; }
.transport.pink { background: var(--pink); }

.pixel-icon {
  position: relative;
  color: var(--line);
}

.pixel-icon::before,
.pixel-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.pixel-icon[data-icon="play"]::before {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
  margin-left: 1px;
}

.pixel-icon[data-icon="pause"]::before {
  width: 3px;
  height: 11px;
  background: currentColor;
  box-shadow: 6px 0 0 currentColor;
}

.pixel-icon[data-icon="prev"]::before,
.pixel-icon[data-icon="next"]::before {
  width: 3px;
  height: 12px;
  background: currentColor;
}

.pixel-icon[data-icon="prev"]::before { margin-left: -6px; }
.pixel-icon[data-icon="next"]::before { margin-left: 6px; }

.pixel-icon[data-icon="prev"]::after,
.pixel-icon[data-icon="next"]::after {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.pixel-icon[data-icon="prev"]::after {
  border-right: 9px solid currentColor;
  margin-left: 2px;
}

.pixel-icon[data-icon="next"]::after {
  border-left: 9px solid currentColor;
  margin-left: -2px;
}

.pixel-icon[data-icon="plus"]::before {
  width: 12px;
  height: 4px;
  background: currentColor;
}

.pixel-icon[data-icon="plus"]::after {
  width: 4px;
  height: 12px;
  background: currentColor;
}

.channel-row {
  display: grid;
  grid-template-columns: 1fr 236px;
  gap: 4px;
  margin: 0 5px 5px;
}

.channel-select {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 26px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel-bright);
  font-family: var(--pixel);
  font-size: 10px;
  font-weight: 900;
}

.channel-select select {
  min-width: 0;
  border: 0;
  padding: 0 22px 0 0;
  background: transparent;
  font: inherit;
}

.volume-control {
  display: grid;
  grid-template-columns: 30px 1fr;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--panel-bright);
}

.volume-control.is-disabled {
  opacity: .62;
}

.speaker {
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--panel-bright);
  font-family: var(--pixel);
  font-size: 0;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.48);
}

.speaker[data-icon="speaker"]::before {
  width: 6px;
  height: 8px;
  margin-left: -4px;
  background: currentColor;
  box-shadow:
    -4px 2px 0 -1px currentColor,
    6px -2px 0 -2px currentColor,
    8px 0 0 -2px currentColor,
    10px 2px 0 -2px currentColor,
    8px 4px 0 -2px currentColor,
    6px 6px 0 -2px currentColor;
}

.speaker[data-muted="true"]::after {
  width: 13px;
  height: 2px;
  background: #d94949;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.volume-track {
  position: relative;
  cursor: pointer;
  background:
    radial-gradient(#050505 1px, transparent 1px) 0 0 / 4px 4px,
    var(--aqua);
}

.volume-track i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 70%;
  border-right: 2px solid var(--line);
  background: rgba(250, 241, 232, .84);
}

.content-window {
  background:
    linear-gradient(90deg, rgba(5,5,5,.055) 1px, transparent 1px) 0 0 / 12px 12px,
    var(--cream);
}

.window-body {
  flex: 1;
  min-height: 0;
  padding: 14px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.content-window h2 {
  margin: 0 0 10px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--line);
  font-size: 20px;
  line-height: 1.08;
  font-family: var(--pixel);
}

.headline-link,
.mini-list a,
.mini-list article,
.mini-list button,
.tape-card {
  display: grid;
  gap: 5px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.48), transparent 55%),
    var(--panel-bright);
  box-shadow: 3px 4px 0 rgba(0,0,0,.08);
}

.reader-trigger,
.gallery-trigger {
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.reader-trigger:hover {
  background: var(--yellow);
}

.tape-card.reader-trigger::after,
.headline-link.reader-trigger::after {
  content: "阅读全文";
  width: fit-content;
  margin-top: 2px;
  padding: 3px 5px 2px;
  border: 1px solid var(--line);
  background: var(--aqua);
  font-family: var(--pixel);
  font-size: 9px;
  font-weight: 900;
}

.headline-link.reader-trigger,
.tape-card.reader-trigger {
  border: 1px solid var(--line);
}

.headline-link strong {
  font-size: 18px;
  line-height: 1.15;
}

.headline-link span,
.compact-copy p,
.event-list p,
.event-stream p,
.guestbook-copy p {
  color: var(--muted);
}

.mini-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.mini-list a,
.mini-list article {
  grid-template-columns: 82px 1fr;
  align-items: center;
}

.tape-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.tape-card {
  grid-template-columns: 42px 1fr;
  align-items: center;
}

.disc {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: conic-gradient(#ff5aa8, #faf4c6, #afe5dd, #ff5aa8);
  font-family: var(--pixel);
  font-size: 10px;
}

.tape-card small {
  grid-column: 2;
}

.member-window,
.guestbook-window { background: var(--cream); }
.event-window { background: var(--yellow); }
.photo-window { background: var(--panel); }
.settings-window { background: var(--pink); }

.compact-copy h2 { margin: 0 0 10px; }
.pixel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin-top: 10px;
  padding: 7px 12px;
  border: 2px solid var(--line);
  border-bottom-width: 3px;
  border-radius: 4px;
  background: var(--aqua);
  font-family: var(--pixel);
  font-weight: 900;
  box-shadow: 2px 3px 0 rgba(0,0,0,.12);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.photo-grid i,
.photo-tile {
  min-height: 100px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    linear-gradient(135deg, #afe5dd 0 48%, #fff9f0 48% 52%, #f6d6d5 52%),
    var(--panel);
}

.photo-grid i:nth-child(even),
.photo-tile:nth-child(even) {
  background:
    radial-gradient(circle at 50% 42%, #faf4c6 0 22%, transparent 23%),
    linear-gradient(160deg, #f6d6d5, #afe5dd);
}

.photo-tile {
  display: grid;
  align-content: end;
  gap: 6px;
  margin: 0;
  overflow: hidden;
  padding: 6px;
  box-shadow: 3px 4px 0 rgba(0,0,0,.08);
}

.photo-tile img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid var(--line);
  border-radius: 3px;
}

.gallery-trigger {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
}

.photo-tile figcaption {
  font-family: var(--pixel);
  font-size: 10px;
  font-weight: 900;
}

.inline-link {
  width: fit-content;
  color: var(--ink);
  font-family: var(--pixel);
  font-size: 11px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vacation-note + .vacation-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 2px solid var(--line);
}

.vacation-note h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.guestbook-copy label,
.settings-body label {
  display: grid;
  gap: 6px;
  margin-top: 9px;
  font-weight: 800;
}

textarea {
  width: 100%;
  resize: vertical;
  border: 2px solid var(--line);
  border-radius: 4px;
  background: var(--panel-bright);
  padding: 8px;
  font-size: 11px;
}

.guestbook-form input {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 4px;
  background: var(--panel-bright);
  padding: 8px;
  font-size: 11px;
}

.guestbook-list {
  display: grid;
  gap: 6px;
  margin: 8px 0 10px;
  max-height: 104px;
  overflow: auto;
}

.guestbook-list article {
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel-bright);
}

.guestbook-list strong,
.guestbook-list span {
  display: inline-block;
  font-family: var(--pixel);
  font-size: 10px;
}

.guestbook-list span {
  color: var(--muted);
}

.guestbook-list p {
  margin: 4px 0 0;
  color: var(--muted);
}

.trap-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.settings-body label {
  display: flex;
  align-items: center;
}

.event-stream {
  column-count: 2;
  column-gap: 8px;
}

.event-stream h2,
.event-stream > p {
  column-span: all;
}

.event-post {
  display: inline-block;
  width: 100%;
  margin: 0 0 8px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel-bright);
  box-shadow: 3px 4px 0 rgba(0,0,0,.08);
}

.event-post time {
  display: block;
  margin-bottom: 5px;
  font-family: var(--pixel);
  font-size: 10px;
  font-weight: 900;
}

.event-post strong {
  display: block;
  font-size: 14px;
}

.event-post img {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.reader-dialog,
.gallery-dialog {
  width: min(920px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 2px solid var(--line);
  background: transparent;
  color: var(--ink);
  z-index: 300;
}

.reader-dialog::backdrop,
.gallery-dialog::backdrop {
  background: rgba(20, 17, 12, .58);
}

.reader-paper {
  position: relative;
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: clamp(22px, 5vw, 54px);
  background:
    linear-gradient(90deg, rgba(30,29,25,.08) 1px, transparent 1px) 0 0 / 28px 100%,
    radial-gradient(circle at 20% 12%, rgba(255,255,255,.48), transparent 30%),
    var(--newsprint-light);
  box-shadow: inset 0 0 64px rgba(75,58,37,.16);
  font-family: var(--serif);
}

.reader-close,
.gallery-close {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: 2px solid var(--line);
  background: var(--panel-bright);
  font-family: var(--pixel);
  font-weight: 900;
}

.reader-paper time {
  display: block;
  border-bottom: 3px double var(--line);
  padding-bottom: 8px;
  font-family: var(--pixel);
  font-size: 11px;
  font-weight: 900;
}

.reader-paper h2 {
  margin: 14px 0 10px;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.05;
}

.reader-paper > p {
  font-size: 16px;
  font-weight: 700;
}

.reader-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.9;
}

.reader-body p,
.reader-body ul,
.reader-body ol,
.reader-body blockquote,
.reader-body pre {
  margin: 0 0 1em;
}

.reader-body h2,
.reader-body h3,
.reader-body blockquote {
  break-inside: avoid;
}

.reader-body code {
  display: inline-block;
  padding: 0 5px;
  border: 1px solid rgba(38, 34, 26, .42);
  background: rgba(255, 250, 235, .72);
  font-family: var(--pixel);
  font-size: .88em;
  line-height: 1.55;
}

.reader-body pre {
  overflow-x: auto;
  padding: 14px 16px;
  border: 2px solid var(--line);
  background:
    linear-gradient(rgba(32, 29, 23, .05) 1px, transparent 1px) 0 0 / 100% 22px,
    rgba(238, 232, 211, .92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .42), 5px 5px 0 rgba(40, 32, 20, .16);
  white-space: pre;
}

.reader-body pre code {
  display: block;
  min-width: max-content;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--pixel);
  font-size: 13px;
  line-height: 1.7;
}

.gallery-dialog {
  width: min(980px, calc(100vw - 20px));
  background: #090909;
}

.gallery-stage {
  display: grid;
  place-items: center;
  min-height: min(76vh, 720px);
  margin: 0;
  padding: 38px 50px 72px;
}

.gallery-stage img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  image-rendering: auto;
}

.gallery-stage figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid #fff;
  background: #050505;
  color: #fff;
  font-family: var(--pixel);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 34px;
  height: 48px;
  border: 2px solid #fff;
  background: #050505;
  color: #fff;
  font-size: 30px;
}

.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }

.article-page {
  min-height: 100vh;
  background: var(--desktop);
  overflow: auto;
}

.article-wrap {
  min-height: 100svh;
  padding: 72px 16px 110px;
}

.article {
  width: min(880px, 100%);
  margin: 0 auto;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: 14px 16px 0 var(--shadow);
  overflow: hidden;
}

.article .window-body {
  padding: clamp(22px, 5vw, 52px);
  background: var(--panel-bright);
}

.back-link { margin-bottom: 18px; }
.article h1 { font-size: clamp(34px, 5vw, 64px); line-height: 1.12; }
.article-excerpt { margin: 0 0 34px; color: var(--muted); font-size: 18px; }
.article-body {
  max-width: 68ch;
  font-family: var(--ui);
  font-size: 18px;
  line-height: 1.8;
}
.article-body h2,
.article-body h3 {
  margin: 34px 0 12px;
  font-family: var(--ui);
  line-height: 1.16;
}
.article-body h2 { font-size: 30px; }
.article-body h3 { font-size: 24px; }
.article-body p { margin: 0 0 20px; }
.article-body a { text-decoration: underline; text-underline-offset: 4px; }
.article-body blockquote {
  margin: 26px 0;
  padding: 14px 18px;
  border: 2px solid var(--line);
  border-radius: 4px;
  background: var(--yellow);
}
.article-body ul { padding-left: 24px; }

@media (prefers-reduced-motion: no-preference) {
  .desktop-window.is-open {
    animation: window-pop .18s steps(3, end);
  }
  .player-window.is-open {
    animation: none;
  }
  .live-dot {
    animation: live-blink 1.2s steps(2, end) infinite;
  }
}

.reduced-motion .desktop-window,
.reduced-motion .live-dot,
.reduced-motion .volume-track i {
  animation: none !important;
}

@keyframes window-pop {
  from { opacity: .4; transform: translateX(-50%) scale(.98); }
  to { opacity: 1; transform: translateX(-50%) scale(1); }
}

@keyframes live-blink { 50% { opacity: .25; } }
@keyframes volume-pulse {
  0% { width: 60%; }
  50% { width: 78%; }
  100% { width: 66%; }
}

@media (max-width: 720px) {
  .home-page {
    min-height: 100vh;
    overflow: auto;
  }

  .top-member span:last-child,
  .top-clock span:first-child {
    display: none;
  }

  .desktop-app {
    height: auto;
    min-height: 100vh;
    padding: 52px 12px 92px;
    overflow: visible;
  }

  .newspaper-backdrop {
    position: fixed;
    inset: 32px 0 72px;
    padding: 14px;
    place-items: start center;
  }

  .newspaper-sheet {
    width: min(620px, 112vw);
    min-height: calc(100vh - 118px);
    padding: 18px;
    opacity: .72;
    transform: rotate(-1deg) translateY(8px);
  }

  .newspaper-sheet::after {
    top: 34%;
    font-size: 88px;
    opacity: 1;
  }

  .newspaper-masthead {
    grid-template-columns: 1fr;
    gap: 6px;
    text-align: center;
  }

  .newspaper-masthead strong {
    font-size: 54px;
  }

  .newspaper-meta:last-child,
  .newspaper-lead,
  .newspaper-grid,
  .newspaper-columns {
    display: none;
  }

  .desktop-window,
  .player-window {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: 100%;
    height: auto;
    max-height: none;
    margin: 0 0 14px;
    transform: none !important;
  }

  .desktop-window.is-maximized {
    width: 100% !important;
    height: auto !important;
  }

  .resize-handle {
    display: none;
  }

  .desktop-window:not(.player-window):not(.is-open) {
    display: none;
  }

  .broadcast-panel {
    height: 245px;
    flex: 0 0 auto;
  }

  .transport-row,
  .channel-row {
    grid-template-columns: 1fr;
  }

  .transport-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
  }

  .transport,
  .transport.play-button,
  .transport.pink {
    width: auto;
  }

  .nav {
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    transform: none;
    border-left: 0;
    border-right: 0;
  }

  .nav a {
    width: 78px;
    min-width: 78px;
  }
}
