/* Player, music, photos, and party surfaces. Tokens live in base.css. */

/* ============================= video player ============================= */
body.watch-open { overflow: hidden; background: #000; }
body.watch-open .app { display: block; }
body.watch-open .sidebar,
body.watch-open .topbar,
body.watch-open .app-footer,
body.watch-open .bottom-nav,
body.watch-open .scan-banner { display: none !important; }
body.watch-open .toasts { bottom: 108px; right: 18px; z-index: 500; }
body.watch-open #view { padding: 0; max-width: none; width: 100%; }
body.watch-open .has-mini-player .mp { display: none; }

.watch {
  position: fixed; inset: 0; z-index: 400; display: block;
  background: #000; color: #fff; overflow: hidden; outline: none;
  font-family: var(--font);
}
.watch-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; background: #000;
}
.watch-stage { position: absolute; inset: 0; }

.watch-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: flex-start; gap: 16px;
  padding: max(16px, env(safe-area-inset-top)) 22px 70px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.35) 55%, transparent);
  transition: opacity 0.22s ease;
}
.watch.controls-hidden .watch-top,
.watch.controls-hidden .watch-controls { opacity: 0; pointer-events: none; }
.watch-back {
  display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.82); font-weight: 650; font-size: 13px;
  padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(14px);
}
.watch-back:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.watch-head-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; padding-top: 5px; }
.watch-title { font-size: clamp(1rem, 2vw, 1.35rem); font-weight: 750; letter-spacing: -0.02em; color: #fff; line-height: 1.15; text-shadow: 0 2px 18px rgba(0,0,0,0.6); }
.watch-sub { color: rgba(255, 255, 255, 0.66); font-size: 11.5px; font-family: var(--mono); letter-spacing: 0.03em; }
.watch-top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.watch-badge {
  padding: 7px 12px; border-radius: 99px; font-size: 11px; font-weight: 750;
  font-family: var(--mono); letter-spacing: 0.03em; border: 1px solid transparent;
  backdrop-filter: blur(14px); white-space: nowrap;
}
.watch-badge.direct { color: #0d1a04; background: color-mix(in srgb, var(--accent) 92%, white); }
.watch-badge.transcode { color: var(--warning); background: rgba(0, 0, 0, 0.55); border-color: color-mix(in srgb, var(--warning) 55%, transparent); }
.watch-badge:hover { filter: brightness(1.08); }
.watch-party-chip {
  display: inline-flex; align-items: center; gap: 7px; max-width: 240px;
  padding: 7px 12px; border-radius: 99px; font-size: 11.5px; font-weight: 650;
  background: rgba(0, 0, 0, 0.55); color: #fff; border: 1px solid color-mix(in srgb, var(--accent-2) 55%, transparent);
  backdrop-filter: blur(14px);
}
.watch-party-chip .party-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }
.watch-party-chip .party-role { color: var(--accent-2); font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.1em; }
.watch-party-chip .party-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(255,255,255,0.82); }
.watch-party-chip.host { border-color: var(--accent); }
.watch-party-chip.host .party-role { color: var(--accent); }

.watch-bigplay {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 4;
  width: 96px; height: 96px; border-radius: 50%; display: grid; place-content: center; gap: 0;
  background: rgba(10, 10, 14, 0.5); color: #fff; border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(18px); box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  transition: transform 0.18s ease, background 0.18s ease;
}
.watch-bigplay:hover { transform: translate(-50%, -50%) scale(1.06); background: rgba(10, 10, 14, 0.7); }
.watch-bigplay-icon { font-size: 34px; line-height: 1; padding-left: 5px; }
.watch-bigplay-label { font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); margin-top: 3px; }
.watch-spinner { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; }
.watch-spinner .spinner { width: 46px; height: 46px; border-width: 3px; border-top-color: #fff; border-color: rgba(255, 255, 255, 0.15); border-top-color: var(--accent); }

.watch-resume {
  position: absolute; left: max(24px, 6vw); bottom: clamp(150px, 24vh, 240px); z-index: 4;
  width: min(400px, calc(100vw - 48px)); padding: 22px;
  background: linear-gradient(160deg, rgba(18, 16, 28, 0.94), rgba(10, 9, 16, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6); backdrop-filter: blur(22px);
}
.watch-resume h2 { font-size: 22px; margin: 5px 0 4px; letter-spacing: -0.02em; }
.watch-resume p { font-size: 12.5px; margin-bottom: 14px; }
.watch-resume .resume-dismiss { margin-top: 12px; font-size: 11px; color: rgba(255,255,255,0.45); }
.watch-error {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 6;
  width: min(440px, calc(100vw - 40px)); padding: 26px; text-align: center;
  background: rgba(14, 12, 20, 0.92); border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.watch-error h3 { font-size: 18px; }
.watch-error-emoji { font-size: 32px; }
.watch-upnext {
  position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); z-index: 7;
  display: flex; align-items: center; gap: 14px; width: min(620px, calc(100vw - 36px));
  padding: 12px; border-radius: 16px;
  background: rgba(14, 12, 20, 0.92); border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.65); backdrop-filter: blur(20px);
}
.watch-upnext .upnext-art img { width: 106px; aspect-ratio: 16/9; object-fit: cover; border-radius: 9px; background: #111; }
.watch-upnext .upnext-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.watch-upnext .upnext-copy h3 { font-size: 14px; }
.watch-upnext .upnext-count { font-family: var(--mono); color: var(--accent); font-size: 11px; margin-top: 4px; }
.watch-upnext .upnext-actions { display: flex; flex-direction: column; gap: 6px; flex: 0 0 auto; }

.watch-controls {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  padding: 80px 22px max(14px, env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.55) 55%, transparent);
  transition: opacity 0.22s ease;
}
.watch-seek {
  position: relative; height: 24px; display: flex; align-items: center;
  cursor: pointer; touch-action: none; margin-bottom: 6px;
}
.watch-seek::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px;
  transform: translateY(-50%); border-radius: 99px; background: rgba(255, 255, 255, 0.2);
  transition: height 0.12s ease;
}
.watch-seek:hover::before, .watch-seek:focus-visible::before { height: 6px; }
.seek-buffers { position: absolute; left: 0; right: 0; top: 50%; height: 4px; transform: translateY(-50%); pointer-events: none; }
.seek-buffer { position: absolute; top: 0; height: 100%; background: rgba(255, 255, 255, 0.34); border-radius: 99px; }
.watch-seek:hover .seek-buffers, .watch-seek:focus-visible .seek-buffers { height: 6px; }
.seek-fill { position: absolute; left: 0; top: 50%; height: 4px; transform: translateY(-50%); background: var(--accent); border-radius: 99px; pointer-events: none; }
.watch-seek:hover .seek-fill, .watch-seek:focus-visible .seek-fill { height: 6px; }
.seek-hover { position: absolute; top: 50%; width: 1px; height: 14px; transform: translateY(-50%); background: rgba(255, 255, 255, 0.5); opacity: 0; transition: opacity 0.1s; }
.watch-seek:hover .seek-hover { opacity: 1; }
.seek-tip {
  position: absolute; bottom: 26px; transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.86); border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px; padding: 3px 7px; font-family: var(--mono); font-size: 10.5px;
  pointer-events: none; white-space: nowrap; box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.watch-ctrl-row { display: flex; align-items: center; gap: 10px; }
.watch-ctrl-group { display: flex; align-items: center; gap: 4px; min-width: 0; }
.watch-ctrl-group.right { margin-left: auto; gap: 2px; }
.watch-ctrl {
  min-width: 40px; height: 40px; padding: 0 6px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  color: rgba(255, 255, 255, 0.8); font-family: var(--mono); font-size: 12px; font-weight: 650;
  border: 1px solid transparent; position: relative; transition: background 0.13s, color 0.13s, transform 0.1s;
}
.watch-ctrl:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.watch-ctrl:active { transform: scale(0.94); }
.watch-ctrl:focus-visible { box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--accent); border-radius: 10px; }
.watch-ctrl.is-active { color: var(--accent); background: rgba(255, 255, 255, 0.1); }
.watch-ctrl .ctrl-icon { font-size: 17px; line-height: 1; }
.watch-ctrl .ctrl-hint { font-size: 8.5px; color: rgba(255, 255, 255, 0.5); position: absolute; bottom: 6px; right: 5px; }
.watch-play { background: var(--accent); color: var(--accent-ink); border-radius: 50%; width: 44px; height: 44px; }
.watch-play:hover { background: color-mix(in srgb, var(--accent) 85%, white); color: var(--accent-ink); }
.watch-play .ctrl-icon { font-size: 19px; }
.watch-volume { display: flex; align-items: center; gap: 2px; }
.watch-vol {
  --vol: 100%; width: 86px; height: 4px; appearance: none; -webkit-appearance: none;
  background: linear-gradient(90deg, var(--accent) var(--vol), rgba(255,255,255,0.24) var(--vol));
  border-radius: 99px; outline: none; cursor: pointer;
}
.watch-vol::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(0,0,0,0.3); }
.watch-vol::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }
.watch-time { display: inline-flex; gap: 5px; font-family: var(--mono); font-size: 11px; color: rgba(255, 255, 255, 0.75); font-variant-numeric: tabular-nums; padding: 0 6px; white-space: nowrap; }
.watch-time-sep { color: rgba(255,255,255,0.3); }

.watch-pop {
  position: absolute; right: 18px; bottom: 88px; z-index: 9;
  width: min(300px, calc(100vw - 32px)); max-height: 56vh; overflow: auto;
  background: rgba(16, 14, 24, 0.96); border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 15px; padding: 8px; box-shadow: 0 22px 70px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(24px);
}
.watch-pop-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 4px 8px; color: rgba(255,255,255,0.6); font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.12em; }
.watch-pop-head .icon-btn { width: 26px; height: 26px; font-size: 12px; color: rgba(255,255,255,0.5); }
.watch-pop-note { color: rgba(255, 255, 255, 0.42); font-size: 10.5px; padding: 8px 6px 3px; line-height: 1.45; }
.watch-pop-divider { height: 1px; background: rgba(255, 255, 255, 0.1); margin: 7px 2px; }
.watch-menu-item {
  display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 7px; align-items: center;
  width: 100%; padding: 9px 8px; border-radius: 9px; text-align: left; color: rgba(255,255,255,0.82);
  font-size: 12.5px; font-weight: 550;
}
.watch-menu-item:hover { background: rgba(255, 255, 255, 0.09); color: #fff; }
.watch-menu-item.active { color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, transparent); }
.menu-check { font-size: 11px; }
.menu-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-meta { font-family: var(--mono); font-size: 9px; color: rgba(255, 255, 255, 0.42); white-space: nowrap; }
.watch-burn { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px; border-radius: 9px; color: rgba(255,255,255,0.82); font-size: 12px; }
.watch-burn:hover { background: rgba(255,255,255,0.08); }
.watch-burn.active { color: var(--accent); }
.burn-switch { width: 28px; height: 16px; border-radius: 99px; background: rgba(255,255,255,0.2); position: relative; flex: 0 0 auto; transition: background 0.15s; }
.burn-switch i { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
.watch-burn.active .burn-switch { background: var(--accent); }
.watch-burn.active .burn-switch i { transform: translateX(12px); background: var(--accent-ink); }
.watch-burn .menu-meta { margin-left: auto; }

.watch-stats {
  position: absolute; top: 78px; right: 20px; z-index: 8; width: min(340px, calc(100vw - 36px));
  max-height: calc(100vh - 220px); overflow: auto;
  background: rgba(14, 12, 20, 0.94); border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 15px; padding: 16px; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(24px);
}
.watch-stats-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.watch-stats-head h2 { font-size: 13px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.7); }
.watch-stats .kv { grid-template-columns: minmax(75px, auto) 1fr; gap: 6px 12px; font-size: 11.5px; }
.watch-stats .kv dt { color: rgba(255, 255, 255, 0.43); }
.watch-stats .kv dd { color: rgba(255, 255, 255, 0.85); font-family: var(--mono); font-size: 11px; }
.watch-reasons { margin-top: 12px; border-top: 1px solid rgba(255,255,255,0.09); padding-top: 10px; }
.watch-reasons ul { margin: 6px 0 0; padding-left: 16px; color: rgba(255,255,255,0.6); font-size: 11px; display: flex; flex-direction: column; gap: 3px; }

.watch-fatal {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 10px; min-height: min(70vh, 620px); padding: 40px 20px;
}
.watch-fatal-emoji { font-size: 54px; filter: drop-shadow(0 0 30px color-mix(in srgb, var(--accent-2) 45%, transparent)); }
.watch-fatal h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.watch-fatal p { max-width: 520px; }
.watch-fatal .eyebrow { color: var(--accent-2); }

.watch video::cue {
  background: rgba(0, 0, 0, 0.72); color: #fff; font-family: var(--font);
  font-size: clamp(15px, 2.2vw, 24px); text-shadow: 0 1px 4px #000;
}
.watch:fullscreen, .watch:fullscreen .watch-video { width: 100%; height: 100%; }

@media (max-width: 900px) {
  .watch-vol { width: 58px; }
  .watch-ctrl-group.right .watch-audio,
  .watch-ctrl-group.right .watch-subs { font-size: 10px; }
}
@media (max-width: 680px) {
  .watch-top { padding: 12px 12px 54px; gap: 10px; }
  .watch-head-copy { padding-top: 2px; }
  .watch-sub { font-size: 10px; }
  .watch-top-right { gap: 5px; }
  .watch-badge { padding: 5px 8px; font-size: 9.5px; }
  .watch-party-chip { max-width: 130px; padding: 5px 8px; }
  .watch-party-chip .party-name { display: none; }
  .watch-back-text { display: none; }
  .watch-back { padding: 8px 10px; }
  .watch-controls { padding: 50px 10px max(10px, env(safe-area-inset-bottom)); }
  .watch-ctrl-row { gap: 4px; }
  .watch-ctrl { min-width: 36px; height: 38px; }
  .watch-play { width: 40px; height: 40px; }
  .watch-vol { display: none; }
  .watch-time { font-size: 10px; padding: 0 2px; }
  .watch-ctrl-group.right .watch-rate,
  .watch-ctrl-group.right .watch-stats-btn { display: none; }
  .watch-bigplay { width: 76px; height: 76px; }
  .watch-bigplay-icon { font-size: 27px; }
  .watch-resume { left: 12px; right: 12px; bottom: 150px; width: auto; padding: 18px; }
  .watch-upnext { bottom: 96px; gap: 10px; }
  .watch-upnext .upnext-art img { width: 74px; }
  .watch-upnext .upnext-copy p { display: none; }
  .watch-stats { top: 58px; right: 8px; }
  .watch-pop { right: 8px; bottom: 76px; }
  .seek-tip { bottom: 22px; }
  body.watch-open .toasts { bottom: 148px; right: 10px; }
}

/* ================================ music ================================ */
.music-view { padding-bottom: 116px; }
.music-head { align-items: flex-end; }
.music-title { font-size: clamp(1.8rem, 4.4vw, 3.2rem); line-height: 0.98; letter-spacing: -0.045em; display: flex; flex-direction: column; margin-top: 4px; }
.music-title-accent { color: var(--accent); }
.music-head .sub { margin-top: 10px; max-width: 560px; }
.music-stats { align-self: flex-end; gap: 5px; }
.music-tabs { margin-bottom: 24px; }
.music-body { min-height: 320px; display: flex; flex-direction: column; gap: 30px; }
.music-section { margin: 0; }
.music-rail {
  display: flex; gap: 16px; overflow-x: auto; padding: 4px 5px 12px; margin: 0 -5px;
  scroll-snap-type: x proximity; scrollbar-width: none;
}
.music-rail::-webkit-scrollbar { display: none; }
.music-rail > * { scroll-snap-align: start; flex: 0 0 auto; }
.music-hint { margin-top: -10px; }
.music-loading { display: flex; align-items: center; gap: 12px; padding: 60px 0; justify-content: center; color: var(--muted); font-family: var(--mono); font-size: 12px; }

.track-card {
  width: 176px; display: flex; flex-direction: column; gap: 7px; text-align: left;
  border-radius: 12px; padding: 0; color: var(--fg);
}
.track-card-art { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); box-shadow: 0 10px 26px rgba(0,0,0,0.25); transition: transform 0.18s, border-color 0.18s; }
.track-card-art img { width: 100%; height: 100%; object-fit: cover; }
.track-card:hover .track-card-art { transform: translateY(-3px); border-color: var(--border-strong); }
.track-card-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,0.38); opacity: 0; transition: opacity 0.15s; font-size: 26px; color: #fff; }
.track-card:hover .track-card-play, .track-card:focus-visible .track-card-play { opacity: 1; }
.track-card strong { font-size: 12.5px; font-weight: 650; line-height: 1.3; }
.track-card > span:last-child { font-size: 10.5px; }

.music-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 22px 18px; }
.music-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.music-art-wrap { position: relative; }
.music-art-btn {
  width: 100%; aspect-ratio: 1; border-radius: 13px; overflow: hidden; display: block;
  background: var(--surface-2); border: 1px solid var(--border); box-shadow: 0 10px 26px rgba(0,0,0,0.22);
  transition: transform 0.18s, border-color 0.18s;
}
.music-art-btn img { width: 100%; height: 100%; object-fit: cover; }
.music-art-btn:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.music-art-btn.round { border-radius: 50%; }
.artist-card .music-art-btn.round { width: 100%; aspect-ratio: 1; }
.music-play-btn {
  position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-content: center; background: var(--accent); color: var(--accent-ink);
  font-size: 15px; padding-left: 3px; opacity: 0; transform: translateY(5px);
  transition: opacity 0.15s, transform 0.15s; box-shadow: 0 6px 20px rgba(0,0,0,0.45);
}
.music-card:hover .music-play-btn, .music-card:focus-within .music-play-btn { opacity: 1; transform: translateY(0); }
.music-card-title { text-align: left; font-size: 13px; font-weight: 650; color: var(--fg); padding: 0; }
.music-card-title:hover { color: var(--accent); }
.music-card-meta { text-align: left; font-size: 10.5px; color: var(--faint); font-family: var(--mono); }
.playlist-card { position: relative; }
.playlist-card .music-card-title { font-size: 13px; }
.playlist-count { position: absolute; left: 9px; bottom: 9px; padding: 3px 7px; border-radius: 99px; background: rgba(0,0,0,0.6); color: #fff; font-family: var(--mono); font-size: 9px; backdrop-filter: blur(8px); }

.music-list-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.music-list-head h2 { font-size: 20px; }
.music-list-head p { margin-top: 2px; }
.music-rails-skeleton { display: flex; flex-direction: column; gap: 20px; }
.music-track-skeleton { height: 58px; margin-bottom: 6px; }

.music-tracklist { display: flex; flex-direction: column; gap: 2px; }
.music-track {
  display: grid; grid-template-columns: 40px 40px minmax(0, 1fr) auto 38px; gap: 10px; align-items: center;
  padding: 7px 9px; border-radius: 10px; border: 1px solid transparent;
  transition: background 0.13s, border-color 0.13s;
}
.music-track:hover { background: var(--surface); border-color: var(--border); }
.music-track.is-playing { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.mt-play { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; position: relative; color: var(--faint); font-family: var(--mono); font-size: 10.5px; }
.mt-play:hover { background: var(--accent); color: var(--accent-ink); }
.mt-icon { display: none; font-size: 12px; }
.music-track:hover .mt-num { display: none; }
.music-track:hover .mt-icon { display: block; }
.mt-art { width: 38px; height: 38px; border-radius: 7px; object-fit: cover; background: var(--surface-2); border: 1px solid var(--border); }
.mt-body { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mt-body strong { font-size: 13px; font-weight: 600; }
.mt-body span { font-size: 10.5px; }
.mt-dur { font-family: var(--mono); font-size: 11px; color: var(--faint); white-space: nowrap; }
.mt-menu { width: 32px; height: 32px; border-radius: 8px; color: var(--faint); font-size: 17px; }
.mt-menu:hover { background: var(--surface-3); color: var(--fg); }
.load-more { display: flex; justify-content: center; margin-top: 24px; }

/* album/artist sheet */
body.music-sheet-open { overflow: hidden; }
.music-sheet-backdrop {
  position: fixed; inset: 0; z-index: 650; background: rgba(2, 2, 8, 0.78);
  backdrop-filter: blur(12px); display: grid; place-items: center; padding: 20px; animation: fade-in 0.18s;
}
.music-sheet {
  position: relative; width: min(920px, 96vw); max-height: 92vh; overflow: auto;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong); border-radius: 22px; padding: 28px 28px 104px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
}
.sheet-close { position: absolute; right: 14px; top: 14px; z-index: 2; }
.sheet-hero { display: flex; gap: 24px; align-items: flex-end; margin-bottom: 22px; padding-right: 36px; }
.sheet-art { width: 216px; flex: 0 0 auto; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--surface-3); border: 1px solid var(--border-strong); box-shadow: var(--shadow); }
.sheet-art.round { border-radius: 50%; width: 190px; }
.sheet-art img { width: 100%; height: 100%; object-fit: cover; }
.sheet-copy { min-width: 0; display: flex; flex-direction: column; gap: 7px; padding-bottom: 4px; }
.sheet-title { font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -0.03em; line-height: 1.02; }
.sheet-artist { font-size: 13px; }
.sheet-artist-row { display: flex; align-items: center; }
.sheet-actions { margin-top: 8px; }
.sheet-sub { font-size: 12px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin: 22px 0 10px; }
.sheet-tracks { margin-top: 6px; }
.sheet-empty { padding: 24px 0; }
.sheet-block { margin-top: 6px; }
.sheet-albums { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

/* persistent mini-player */
.mp {
  position: fixed; left: calc(var(--sidebar-w) + 16px); right: 16px; bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 660; background: color-mix(in srgb, var(--surface) 90%, transparent);
  border: 1px solid var(--border-strong); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); backdrop-filter: blur(26px);
  padding: 9px 12px;
}
.mp-main {
  display: grid;
  grid-template-columns: 50px minmax(110px, 1fr) auto minmax(160px, 1.15fr) auto auto;
  gap: 14px; align-items: center;
}
.mp-art { width: 50px; height: 50px; border-radius: 10px; overflow: hidden; background: var(--surface-3); border: 1px solid var(--border); padding: 0; flex: 0 0 auto; }
.mp-art img { width: 100%; height: 100%; object-fit: cover; }
.mp-now { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mp-title { font-size: 12.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-meta { font-size: 10px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-transport { display: flex; align-items: center; gap: 2px; }
.mp-btn { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.mp-btn:hover { color: var(--fg); background: var(--surface-3); }
.mp-btn.small { width: 28px; height: 28px; font-size: 12px; }
.mp-btn.active { color: var(--accent); }
.mp-play { width: 38px; height: 38px; background: var(--accent); color: var(--accent-ink); font-size: 14px; }
.mp-play:hover { background: color-mix(in srgb, var(--accent) 84%, white); color: var(--accent-ink); }
.mp-progress { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mp-time { font-family: var(--mono); font-size: 9.5px; color: var(--faint); font-variant-numeric: tabular-nums; width: 34px; }
.mp-time:last-child { text-align: right; }
.mp-seek {
  --played: 0%; flex: 1; height: 4px; appearance: none; -webkit-appearance: none; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent) var(--played), var(--surface-3) var(--played));
  cursor: pointer; outline: none;
}
.mp-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 11px; height: 11px; border-radius: 50%; background: var(--fg); }
.mp-seek::-moz-range-thumb { width: 11px; height: 11px; border: 0; border-radius: 50%; background: var(--fg); }
.mp-bars { display: flex; align-items: flex-end; gap: 2px; height: 24px; width: 56px; overflow: hidden; }
.mp-bars i { flex: 1; height: 100%; min-width: 2px; background: color-mix(in srgb, var(--accent) 75%, transparent); border-radius: 2px; transform: scaleY(0.16); transform-origin: bottom; }
.mp-actions { display: flex; align-items: center; gap: 2px; }
.mp-vol {
  --vol: 85%; width: 64px; height: 3px; appearance: none; -webkit-appearance: none; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent) var(--vol), var(--surface-3) var(--vol)); margin: 0 4px; cursor: pointer;
}
.mp-vol::-webkit-slider-thumb { -webkit-appearance: none; width: 9px; height: 9px; border-radius: 50%; background: var(--fg); }
.mp-vol::-moz-range-thumb { width: 9px; height: 9px; border: 0; border-radius: 50%; background: var(--fg); }
.mp-queue-panel {
  position: absolute; right: 12px; bottom: calc(100% + 10px); width: min(440px, calc(100vw - 24px));
  max-height: min(52vh, 460px); overflow: auto; background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 16px; padding: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); backdrop-filter: blur(24px);
}
.mpq-head { display: flex; justify-content: space-between; align-items: center; padding: 3px 4px 9px; font-size: 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.mpq-empty { padding: 22px 10px; text-align: center; color: var(--faint); font-size: 12px; }
.mpq-row { display: flex; align-items: center; gap: 4px; border-radius: 9px; }
.mpq-row.playing { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.mpq-main { flex: 1; min-width: 0; display: grid; grid-template-columns: 22px 32px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 5px 6px; text-align: left; color: var(--fg); }
.mpq-num { font-family: var(--mono); font-size: 9.5px; color: var(--faint); text-align: center; }
.mpq-main img { width: 30px; height: 30px; border-radius: 5px; object-fit: cover; background: var(--surface-3); }
.mpq-copy { min-width: 0; display: flex; flex-direction: column; gap: 0; }
.mpq-copy strong { font-size: 11.5px; }
.mpq-copy span { font-size: 9.5px; color: var(--faint); }
.mpq-dur { font-family: var(--mono); font-size: 9.5px; color: var(--faint); }
.mpq-remove { width: 26px; height: 26px; border-radius: 6px; color: var(--faint); font-size: 11px; }
.mpq-remove:hover { color: var(--error); background: color-mix(in srgb, var(--error) 12%, transparent); }

body.has-mini-player #view { padding-bottom: 128px; }
body.has-mini-player .toasts { bottom: calc(104px + env(safe-area-inset-bottom)); }
body.watch-open .mp { display: none !important; }

@media (max-width: 1100px) {
  .mp { left: calc(76px + 12px); }
  .mp-main { grid-template-columns: 44px minmax(90px, 1fr) auto minmax(120px, 1fr) auto; gap: 10px; }
  .mp-bars { display: none; }
  .mp-vol { width: 46px; }
}
@media (max-width: 820px) {
  .mp { left: 10px; right: 10px; bottom: calc(78px + env(safe-area-inset-bottom)); padding: 8px 10px; border-radius: 16px; }
  .mp-main {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    grid-template-areas: "art now transport" "progress progress actions";
    gap: 6px 10px;
  }
  .mp-art { width: 42px; height: 42px; grid-area: art; }
  .mp-now { grid-area: now; }
  .mp-transport { grid-area: transport; }
  .mp-progress { grid-area: progress; }
  .mp-actions { grid-area: actions; position: absolute; right: 10px; bottom: 46px; }
  .mp-vol, .mp-bars { display: none; }
  .mp-queue-panel { right: 0; width: 100%; }
  .music-view { padding-bottom: 150px; }
  body.has-mini-player #view { padding-bottom: 180px; }
  body.has-mini-player .toasts { bottom: calc(170px + env(safe-area-inset-bottom)); }
  .music-grid { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 16px 12px; }
  .track-card { width: 138px; }
  .music-title { font-size: 1.8rem; }
  .music-stats { align-self: flex-start; }
  .music-track { grid-template-columns: 34px 36px minmax(0, 1fr) auto; gap: 8px; padding: 6px; }
  .mt-menu { display: none; }
  .mt-dur { font-size: 9.5px; }
  .music-sheet { padding: 20px 20px 120px; border-radius: 18px; }
  .sheet-hero { flex-direction: column; align-items: flex-start; gap: 14px; }
  .sheet-art, .sheet-art.round { width: 132px; }
  .music-tracklist .music-track:nth-child(n) { grid-template-columns: 32px 34px minmax(0, 1fr) auto; }
}
@media (max-width: 520px) {
  .mp-actions .mp-btn.small:first-child { display: none; }
  .mp-actions { bottom: 44px; }
}

/* ================================ photos ================================ */
.photos-view { padding-bottom: 40px; }
.photos-head { align-items: flex-end; }
.photos-head h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.photo-folders { margin-bottom: 26px; }
.chip-count { font-family: var(--mono); font-size: 9px; opacity: 0.7; }
.photos-loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 70px 0; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.photo-timeline { display: flex; flex-direction: column; gap: 34px; }
.photo-month-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.photo-month-head h2 { font-size: clamp(1.1rem, 2vw, 1.45rem); letter-spacing: -0.02em; }
.photo-month-head .pill { font-size: 9.5px; }
.photo-columns { column-width: 235px; column-gap: 12px; }
.photo-tile {
  width: 100%; display: block; break-inside: avoid; margin: 0 0 12px; padding: 0;
  border-radius: 10px; overflow: hidden; background: var(--surface-2);
  border: 1px solid var(--border); position: relative; cursor: zoom-in;
  transition: border-color 0.15s, transform 0.15s;
}
.photo-tile:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.photo-tile img { width: 100%; height: auto; display: block; }
.photo-zoom {
  position: absolute; right: 8px; bottom: 8px; width: 26px; height: 26px; border-radius: 7px;
  display: grid; place-content: center; background: rgba(0, 0, 0, 0.5); color: #fff; font-size: 12px;
  opacity: 0; transition: opacity 0.15s; backdrop-filter: blur(8px);
}
.photo-tile:hover .photo-zoom, .photo-tile:focus-visible .photo-zoom { opacity: 1; }
.photo-month-status { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 0; color: var(--faint); font-family: var(--mono); font-size: 11px; }
.photo-folder-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.photo-flat-status { display: flex; justify-content: center; padding: 22px 0; }
.photo-folder-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; }

body.photo-lightbox-open { overflow: hidden; }
.photo-lightbox {
  position: fixed; inset: 0; z-index: 700; display: flex; flex-direction: column;
  background: rgba(4, 3, 9, 0.97); backdrop-filter: blur(20px); animation: fade-in 0.15s;
}
.plb-top { display: flex; align-items: center; gap: 14px; padding: max(12px, env(safe-area-inset-top)) 18px 10px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.plb-close { flex: 0 0 auto; background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14); color: #fff; }
.plb-crumb { min-width: 0; display: flex; flex-direction: column; gap: 1px; flex: 1; }
.plb-title { font-size: 13px; font-weight: 650; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plb-date { font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,0.5); }
.plb-counter { font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,0.55); white-space: nowrap; }
.plb-stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; padding: 12px 68px; touch-action: pan-y; }
.plb-img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  border-radius: 6px; box-shadow: 0 30px 90px rgba(0,0,0,0.65);
  transition: transform 0.24s ease; cursor: zoom-in;
}
.plb-img.is-zoomed { transform: scale(2.4); cursor: zoom-out; }
.plb-spinner { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-width: 3px; border-top-color: var(--accent); }
.plb-error {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px; padding: 22px 26px;
  color: var(--muted); font-size: 12px;
}
.plb-error span:first-child { font-size: 34px; }
.plb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px;
  display: grid; place-content: center; border-radius: 12px; font-size: 28px;
  color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
}
.plb-nav:hover { background: rgba(255,255,255,0.16); color: #fff; }
.plb-nav:disabled { opacity: 0.25; cursor: default; }
.plb-nav.prev { left: 14px; }
.plb-nav.next { right: 14px; }
.plb-bar {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,0.08);
}
.plb-tool {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-width: 40px; height: 36px; padding: 0 12px; border-radius: 9px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8); font-size: 12px; font-weight: 600;
}
.plb-tool:hover { background: rgba(255,255,255,0.15); color: #fff; }
.plb-tool.active { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.plb-info {
  position: absolute; right: 22px; top: 62px; width: 290px; max-height: calc(100% - 140px); overflow: auto;
  background: rgba(16, 14, 24, 0.94); border: 1px solid rgba(255,255,255,0.14); border-radius: 14px;
  padding: 16px; backdrop-filter: blur(20px); box-shadow: 0 24px 60px rgba(0,0,0,0.55); z-index: 3;
}
.plb-info h3 { font-size: 12px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.65); margin-bottom: 10px; }
.plb-info .kv { grid-template-columns: 70px 1fr; gap: 6px 10px; font-size: 11px; }
.plb-info .kv dt { color: rgba(255,255,255,0.42); }
.plb-info .kv dd { color: rgba(255,255,255,0.86); word-break: break-word; }

/* ================================ party ================================ */
.party-view { padding-bottom: 40px; }
.party-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; position: relative; }
.party-back { position: absolute; top: -6px; left: 0; font-size: 11px; }
.party-head-copy { display: flex; flex-direction: column; gap: 5px; padding-top: 16px; }
.party-title { font-size: clamp(1.7rem, 4vw, 2.8rem); letter-spacing: -0.04em; line-height: 1.03; }
.party-head-right { padding-bottom: 6px; }
.party-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) 340px; gap: 22px; align-items: start; }
.party-nowplaying {
  position: relative; min-height: 520px; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--border-strong); background: var(--surface);
  display: flex; align-items: flex-end; isolation: isolate;
}
.party-art { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.55; transform: scale(1.02); }
.party-np-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,4,9,0.96) 6%, rgba(5,4,9,0.72) 48%, rgba(5,4,9,0.15) 80%); }
.party-np-copy { position: relative; z-index: 1; width: 100%; padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 9px; color: #fff; }
.party-np-copy h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.035em; line-height: 1.05; color: #fff; }
.party-np-meta { font-family: var(--mono); font-size: 11.5px; color: rgba(255,255,255,0.62); }
.party-np-desc { color: rgba(255,255,255,0.68); font-size: 12.5px; max-width: 560px; }
.party-progress { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; max-width: 620px; }
.party-progress-bar { height: 5px; border-radius: 99px; background: rgba(255,255,255,0.18); overflow: hidden; }
.party-progress-bar > i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 99px; transition: width 0.3s linear; }
.party-progress .row { color: rgba(255,255,255,0.48); }
.party-np-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.party-follower-note { color: rgba(255,255,255,0.52); max-width: 480px; }
.party-host-controls {
  display: flex; align-items: center; gap: 14px; margin-top: 12px; max-width: 680px;
  padding: 12px 14px; border-radius: 14px; background: rgba(10, 8, 16, 0.62);
  border: 1px solid rgba(255,255,255,0.14); backdrop-filter: blur(16px);
}
.party-host-controls.is-host { border-color: color-mix(in srgb, var(--accent) 32%, transparent); }
.party-play { width: 46px; height: 46px; flex: 0 0 auto; background: var(--accent); color: var(--accent-ink); border: 0; font-size: 17px; }
.party-play:hover { background: color-mix(in srgb, var(--accent) 84%, white); }
.party-seek-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.party-seek {
  width: 100%; height: 4px; appearance: none; -webkit-appearance: none; border-radius: 99px;
  background: rgba(255,255,255,0.25); cursor: pointer;
}
.party-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); }
.party-seek::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: var(--accent); }
.party-sync-position { color: rgba(255,255,255,0.78); font-size: 11px; }
.party-side { display: flex; flex-direction: column; gap: 16px; }
.party-member-list { display: flex; flex-direction: column; gap: 2px; }
.party-member { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 10px; }
.party-member:hover { background: var(--surface-2); }
.party-member .avatar { width: 34px; height: 34px; font-size: 12px; }
.party-member-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 0; }
.party-member-copy strong { font-size: 12.5px; display: flex; align-items: center; gap: 5px; }
.party-member-copy span { font-size: 10px; }
.you-pill { font-family: var(--mono); font-size: 8px; text-transform: uppercase; letter-spacing: 0.08em; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); border-radius: 4px; padding: 1px 4px; }
.party-sync-card .kv { grid-template-columns: 88px 1fr; gap: 7px 10px; font-size: 12px; }
.party-ended-banner {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 18px;
  border-radius: 12px; background: color-mix(in srgb, var(--warning) 10%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--warning) 30%, transparent); color: var(--warning); font-size: 12.5px;
}
.party-loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 80px 0; color: var(--muted); font-family: var(--mono); font-size: 12px; }
.party-fatal { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 70px 20px; }
.party-landing { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; min-height: 60vh; padding: 40px 16px; }
.party-landing-emoji { font-size: 56px; }
.party-landing h1 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
.party-landing p { max-width: 520px; }

.party-create-view { display: grid; grid-template-columns: minmax(0, 1.35fr) 320px; gap: 24px; align-items: start; position: relative; max-width: 1180px; margin: 0 auto; }
.party-create-view .party-back { position: relative; top: auto; left: auto; grid-column: 1 / -1; margin-bottom: -6px; }
.party-active { grid-column: 1 / -1; min-width: 0; }
.party-active-hint { margin-left: auto; }
.party-active-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 6px; }
.party-active-card {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border);
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
}
.party-active-card:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-2px); }
.party-active-art { width: 76px; height: 50px; border-radius: 9px; background-color: var(--surface-3); background-size: cover; background-position: center; border: 1px solid var(--border); }
.party-active-copy { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.party-active-copy strong { font-size: 13.5px; }
.party-active-copy span { font-size: 11px; }
.party-active-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-align: center; padding: 22px 16px; border: 1px dashed var(--border-strong); border-radius: 14px;
  color: var(--muted);
}
.party-active-emoji { font-size: 30px; }
.party-create.card { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.party-create-title { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.party-create .field { margin-bottom: 0; }
.party-search-results { display: flex; flex-direction: column; gap: 3px; max-height: 260px; overflow: auto; margin-top: 4px; }
.party-search-hit { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px; border-radius: 9px; text-align: left; border: 1px solid transparent; }
.party-search-hit:hover { background: var(--surface-2); border-color: var(--border); }
.party-search-hit.active { border-color: var(--accent); }
.party-search-hit img { width: 56px; height: 32px; border-radius: 5px; object-fit: cover; background: var(--surface-3); }
.party-search-hit strong { font-size: 12.5px; }
.party-selected { background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 12px; padding: 9px; margin-top: 6px; }
.party-selected-art { width: 64px; height: 38px; border-radius: 6px; object-fit: cover; background: var(--surface-3); }
.party-create-side { align-self: start; }
.party-rules { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 12px; display: flex; flex-direction: column; gap: 7px; }

@media (max-width: 1100px) {
  .party-grid { grid-template-columns: 1fr; }
  .party-side { display: grid; grid-template-columns: 1fr 1fr; }
  .party-nowplaying { min-height: 420px; }
  .party-create-view { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .photo-columns { column-width: 170px; column-gap: 9px; }
  .photo-tile { margin-bottom: 9px; border-radius: 8px; }
  .party-side { grid-template-columns: 1fr; }
  .party-nowplaying { min-height: 460px; }
  .party-host-controls { flex-direction: column; align-items: stretch; }
  .party-play { width: 100%; border-radius: 10px; }
  .party-head-copy { padding-top: 20px; }
  .plb-stage { padding: 8px 46px; }
  .plb-nav { width: 38px; height: 52px; font-size: 22px; }
  .plb-nav.prev { left: 6px; }
  .plb-nav.next { right: 6px; }
  .plb-info { left: 10px; right: 10px; top: auto; bottom: 64px; width: auto; max-height: 40vh; }
  .plb-tool { padding: 0 9px; font-size: 11px; }
  .plb-tool:nth-child(1), .plb-tool:nth-child(2) { flex: 1; }
}
@media (max-width: 600px) {
  .photo-columns { column-count: 2; column-width: auto; }
  .plb-stage { padding: 8px 34px; }
  .plb-bar { gap: 6px; }
  .photo-month-head { gap: 8px; }
  .party-np-copy { padding: 18px; }
  .party-create.card { padding: 20px; }
}
