/* Экран входа */
.login-layer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-center-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* КИБЕР КНОПКА HOLD TO ENTER */
.cyber-hold-wrapper {
  background: #0d0d0d;
  border: 1px solid var(--border-color);
  padding: 30px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  position: relative;
}
.hold-trigger {
  background: transparent;
  border: none;
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
}
.progress-ring__circle {
  transition: stroke-dashoffset 0.1s linear;
  stroke-dasharray: 389.55;
  stroke-dashoffset: 389.55;
}
.hold-inner-btn {
  width: 110px;
  height: 110px;
  background: #141414;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, border-color 0.2s;
}
.hold-trigger:linear-gradient .hold-inner-btn {
  background: #1a1a1a;
}
.fingerprint-icon {
  font-size: 28px;
  color: var(--text-muted);
  transition: color 0.2s, transform 0.2s;
}
.hold-trigger:hover .fingerprint-icon {
  color: var(--accent);
}
.hold-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
}

.input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
}

.input-wrapper input {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: 'JetBrains Mono', monospace;
  outline: none;
  margin-left: 10px;
  font-size: 16px;
}

.boot-container {
  width: 80%;
  max-width: 600px;
  height: 400px;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  padding: 20px;
  overflow-y: auto;
}

.mono-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.5;
  color: #a8ffb2;
}

/* Окна */
.window {
  position: absolute;
  width: 650px;
  height: 420px;
  min-width: 320px;
  min-height: 220px;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 50px rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
  z-index: 1;
  overflow: hidden;
}

.window.maximized {
  border-radius: 0 !important;
  box-shadow: none;
}

.window.active-focus {
  border-color: var(--border-focus);
}

.window-header {
  height: 38px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  flex-shrink: 0;
  cursor: grab;
  touch-action: none;
}

.window-header:active { cursor: grabbing; }
.window.maximized .window-header { cursor: grab; }

.win-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  pointer-events: none;
}

.window.active-focus .win-title {
  color: var(--text-main);
}

.win-controls {
  display: flex;
  gap: 8px;
}

.win-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.win-btn:hover { color: var(--text-main); }
.win-btn.close-btn:hover { color: #ff4a4a; }
.win-btn.max-btn:hover { color: var(--accent); }

.window-body {
  flex: 1;
  padding: 20px;
  overflow: auto;
  user-select: text;
  min-height: 0;
}

/* Resize handles */
.resize-handle {
  position: absolute;
  z-index: 5;
  background: transparent;
  touch-action: none;
}
.resize-n { top: -3px; left: 8px; right: 8px; height: 6px; cursor: n-resize; }
.resize-s { bottom: -3px; left: 8px; right: 8px; height: 6px; cursor: s-resize; }
.resize-e { right: -3px; top: 8px; bottom: 8px; width: 6px; cursor: e-resize; }
.resize-w { left: -3px; top: 8px; bottom: 8px; width: 6px; cursor: w-resize; }
.resize-ne { top: -4px; right: -4px; width: 12px; height: 12px; cursor: ne-resize; }
.resize-nw { top: -4px; left: -4px; width: 12px; height: 12px; cursor: nw-resize; }
.resize-se { bottom: -4px; right: -4px; width: 14px; height: 14px; cursor: se-resize; }
.resize-sw { bottom: -4px; left: -4px; width: 12px; height: 12px; cursor: sw-resize; }
.window.maximized .resize-handle { pointer-events: none; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 20px;
}
.social-links {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.fav-quote {
  font-style: italic;
  color: var(--accent);
  margin: 12px 0;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 4px 8px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
}

/* Проекты */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.2s;
}

.project-card:hover { border-color: var(--accent); }

.card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255,255,255,0.03), transparent 40%);
  pointer-events: none;
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 12px;
}

.card-content h4 {
  font-size: 16px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-main);
}

.card-content p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  flex-grow: 1;
}

.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card-actions { display: flex; gap: 10px; margin-top: 4px; }
.sys-btn.mini { padding: 6px 12px; font-size: 11px; }

/* Терминал */
.terminal-body {
  background: #0d0d0d;
  color: #e0e0e0;
}
.terminal-input-line { display: flex; align-items: center; margin-top: 8px; }
.t-user { color: var(--accent); margin-right: 8px; }
#terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
}

.neofetch-output {
  margin: 0;
  padding: 0;
  line-height: 1.15;
  font-size: 13px;
  white-space: pre;
  overflow-x: auto;
  color: #fff;
}

.terminal-easter-wrap {
  display: block;
  width: max-content;
  max-width: none;
  margin: 8px 0;
  overflow: auto;
  flex-shrink: 0;
}

.terminal-easter-img {
  display: block;
  width: 320px;
  height: auto;
  max-width: 320px;
  object-fit: contain;
  object-position: top left;
  flex-shrink: 0;
  image-rendering: auto;
}

/* Чат */
.chat-window-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 0 !important;
  overflow: hidden;
  background: #090909;
}
.online-badge {
  color: #34c759;
  font-size: 10px;
  margin-left: 8px;
  font-weight: bold;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  max-height: none;
}
.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  font-size: 13px;
  line-height: 1.4;
}
.chat-msg.system-type { align-self: flex-start; background: var(--bg-surface); }
.chat-msg.user-type { align-self: flex-end; background: #121b24; border-color: rgba(57, 168, 255, 0.3); }
.msg-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.msg-author {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.msg-reply-btn {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
}
.msg-reply-btn:hover { color: var(--accent); }
.msg-reply-quote {
  border-left: 2px solid var(--accent);
  padding: 4px 8px;
  margin-bottom: 6px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 0 2px 2px 0;
}
.msg-reply-author {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  margin-bottom: 2px;
}
.msg-reply-text {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
.chat-reply-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-left: 3px solid var(--accent);
  font-size: 12px;
  flex-shrink: 0;
}
.chat-reply-preview.hidden { display: none; }
.reply-preview-content { flex: 1; min-width: 0; }
.reply-preview-label { color: var(--text-muted); }
.reply-preview-label strong { color: var(--accent); }
.reply-preview-text {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.reply-cancel-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 6px;
  font-size: 12px;
}
.reply-cancel-btn:hover { color: var(--text-main); }
.chat-input-area { display: flex; align-items: center; border-top: 1px solid var(--border-color); background: var(--bg-panel); flex-shrink: 0; }
#chat-input { flex: 1; background: transparent; border: none; outline: none; color: var(--text-main); padding: 14px; font-size: 13px; min-width: 0; }
.chat-char-count { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono, monospace); padding-right: 8px; white-space: nowrap; user-select: none; }
.chat-char-count.at-limit { color: #ff6b6b; }

/* Музыка */
.music-body { background: #0d0d0d; }
.player-container { display: flex; gap: 24px; align-items: center; }
.track-cover {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  color: var(--text-muted);
  overflow: hidden;
  position: relative;
}
.track-cover .cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease, transform 8s linear;
}
.track-cover.has-cover .cover-fallback { display: none; }
.track-cover.has-cover .cover-img { display: block; }
.playing .track-cover.has-cover .cover-img {
  animation: coverPulse 8s linear infinite;
}
.disc-rotation { animation: rotateDisc 8s linear infinite; animation-play-state: paused; }
.playing .disc-rotation { animation-play-state: running; }
@keyframes rotateDisc { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes coverPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
.track-info { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.track-name { font-family: 'JetBrains Mono', monospace; font-size: 15px; font-weight: bold; }
.track-author { font-size: 12px; color: var(--text-muted); }
.player-progress-block { margin-top: 6px; }
.custom-slider {
  position: relative;
  width: 100%;
  height: 18px;
  display: flex;
  align-items: center;
}
.sys-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 18px;
  background: transparent;
  outline: none;
  margin: 0;
  --fill: 0%;
}
.sys-range::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--accent) 0%,
    var(--accent) var(--fill),
    rgba(255, 255, 255, 0.08) var(--fill),
    rgba(255, 255, 255, 0.08) 100%
  );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.sys-range::-moz-range-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.sys-range::-moz-range-progress {
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
}
.sys-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim), 0 2px 8px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sys-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim), 0 2px 8px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sys-range:hover::-webkit-slider-thumb,
.sys-range:active::-webkit-slider-thumb {
  transform: scale(1.15);
  box-shadow: 0 0 0 4px var(--accent-dim), 0 0 12px color-mix(in srgb, var(--accent) 55%, transparent);
}
.sys-range:hover::-moz-range-thumb,
.sys-range:active::-moz-range-thumb {
  transform: scale(1.15);
  box-shadow: 0 0 0 4px var(--accent-dim), 0 0 12px color-mix(in srgb, var(--accent) 55%, transparent);
}
.volume-slider { flex: 1; min-width: 0; }
.time-stamps { display: flex; justify-content: space-between; font-size: 10px; font-family: 'JetBrains Mono', monospace; color: var(--text-muted); margin-top: 4px; }
.player-controls { display: flex; gap: 20px; margin: 10px 0; }
.player-icon-btn { background: transparent; border: none; color: var(--text-muted); font-size: 16px; }
.player-icon-btn:hover { color: var(--text-main); }
.player-icon-btn.main-play { color: var(--accent); font-size: 20px; }
.volume-container { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--text-muted); width: 160px; }

/* Credits / helpers */
.helpers-intro {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}
.helpers-intro code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 1px 6px;
}
.helpers-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.helper-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  transition: border-color 0.2s;
}
.helper-item:hover { border-color: var(--border-focus); }
.helper-item.helper-template {
  border-style: dashed;
  opacity: 0.72;
}
.helper-avatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 14px;
}
.helper-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.helper-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}
.helper-note {
  font-size: 12px;
  color: var(--text-muted);
}

/* Настройки */
.theme-picker { display: flex; gap: 10px; margin-top: 8px; }
.color-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid transparent; }
.color-dot.active { border-color: #fff; }
.color-blue { background: #39a8ff; }
.color-purple { background: #b163ff; }
.color-cyan { background: #00f5d4; }
.setting-item { margin: 14px 0; }
.switch-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
}
.switch-label { font-size: 13px; }
.sys-switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
  display: inline-block;
}
.sys-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  margin: 0;
}
.sys-switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  transition: background 0.2s, border-color 0.2s;
}
.sys-switch-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ddd;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, background 0.2s;
}
.sys-switch input:checked + .sys-switch-track {
  background: var(--accent-dim);
  border-color: var(--accent);
}
.sys-switch input:checked + .sys-switch-track::after {
  transform: translateX(18px);
  background: var(--accent);
}

/* Status ladder (desktop corner) */
.sys-status-ladder {
  position: absolute;
  right: 18px;
  bottom: calc(80px + 12px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  pointer-events: none;
  font-family: 'JetBrains Mono', monospace;
  user-select: none;
}
.status-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 5px 10px;
  background: rgba(17, 17, 17, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  line-height: 1;
}
.status-server {
  margin-right: 18px;
  opacity: 0.95;
}
.status-session {
  margin-right: 0;
}
.status-label {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.status-value {
  font-size: 12px;
  color: var(--accent);
  min-width: 7ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.status-session .status-value {
  color: var(--text-main);
}

/* Док */
.desktop-layer { position: relative; width: 100%; height: 100%; }
.workspace { position: absolute; inset: 0; bottom: 80px; }
.dock {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  height: 56px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 999;
}
.dock-item {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 18px;
  color: var(--text-muted);
  transition: color 0.2s, transform 0.2s;
}
.dock-item:hover { color: var(--text-main); transform: translateY(-4px); }
.dock-item.running { color: var(--accent); }
.dock-dot { position: absolute; bottom: -2px; width: 4px; height: 4px; background: transparent; }
.dock-item.running .dock-dot { background: var(--accent); }

@media (max-width: 768px) {
  .workspace { bottom: 72px; }
  .dock { width: 94%; gap: 8px; padding: 0 8px; height: 64px; overflow-x: auto; }
  .dock-item { font-size: 16px; width: 34px; }
  .about-grid { grid-template-columns: 1fr; }
  .sys-status-ladder {
    right: 10px;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px) + 10px);
  }
  .status-server { margin-right: 12px; }
  .status-row { padding: 4px 8px; }
  .status-value { font-size: 11px; }
}
body.no-animations .window, body.no-animations .chat-msg, body.no-animations .dock-item { animation: none !important; transition: none !important; }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .cyber-hold-wrapper { padding: 20px; }
  .hold-trigger { width: 120px; height: 120px; }
  .hold-inner-btn { width: 92px; height: 92px; }

  .boot-container {
    width: 92vw;
    height: 55vh;
    padding: 14px;
  }

  .workspace {
    inset: 0;
    bottom: 0;
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .window {
    position: absolute !important;
    top: auto;
    left: auto;
    right: auto;
    width: auto;
    height: auto;
    min-width: 260px !important;
    min-height: 200px !important;
    max-height: none;
    border-radius: 10px !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.55) !important;
  }

  .window.maximized {
    top: env(safe-area-inset-top, 0px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: calc(100dvh - 72px - env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    box-shadow: none !important;
  }

  .window-header {
    height: 48px;
    padding: 0 10px 0 14px;
    flex-shrink: 0;
    cursor: grab;
  }

  .win-title {
    font-size: 12px;
    max-width: 58%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .win-controls { gap: 4px; }
  .win-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .window-body {
    padding: 14px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .resize-handle {
    display: block !important;
  }
  .resize-n, .resize-s { height: 14px; }
  .resize-e, .resize-w { width: 14px; }
  .resize-ne, .resize-nw, .resize-se, .resize-sw {
    width: 22px;
    height: 22px;
  }

  .about-grid,
  .projects-grid {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
  }

  .social-links { flex-direction: column; }
  .skill-tags { gap: 8px; }

  .chat-window-body { min-height: 0; }
  .chat-messages {
    max-height: none;
    min-height: 0;
    flex: 1;
  }
  #chat-input { font-size: 16px; padding: 14px 12px; }
  .chat-input-area .sys-btn { min-width: 48px; }

  .player-container {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    text-align: center;
  }
  .track-cover {
    width: 180px;
    height: 180px;
    margin: 0 auto;
  }
  .player-controls {
    justify-content: center;
    gap: 28px;
  }
  .player-icon-btn {
    font-size: 20px;
    width: 44px;
    height: 44px;
  }
  .player-icon-btn.main-play { font-size: 28px; }
  .volume-container {
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
  }

  .helper-item { padding: 10px 12px; }

  .dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    max-width: none;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding: 0 6px env(safe-area-inset-bottom, 0px);
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-radius: 0;
    justify-content: space-around;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(17, 17, 17, 0.96);
    backdrop-filter: blur(12px);
  }

  .dock-item {
    flex: 1;
    min-width: 44px;
    height: 52px;
    font-size: 18px;
    transform: none !important;
  }
  .dock-item:hover { transform: none; }
}

@media (max-width: 380px) {
  .window-body { padding: 10px; }
  .hold-text { font-size: 8px; }
  .track-cover { width: 140px; height: 140px; }
}
