/**
 * DX Studio — layout/css/studio.css
 * 디자인 토큰 · 3단 레이아웃 · 레일 · 상단 바 · 덱 · FAB · 전환 표시
 *
 * 색은 default 와 같은 변수 이름(--bg-body, --bg-card, --text-main, --text-muted, --border, --hover-row)을
 * 스튜디오 값으로 다시 정의 → 게시판·회원·플러그인 화면이 자동으로 스튜디오 색을 따름
 * 다크: body.dark (코어 엔진·dx-ui.js) + html.dxs-dark / html.dx-dark-early (칠하기 전 결정)
 */

/* ══ 토큰 ═══════════════════════════════════════════════════ */
:root {
  --p: #8b5cf6;
  --dxs-acc2: #2dd4bf;
  --dxs-font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --dxs-disp: 'Orbitron', 'Montserrat', sans-serif;
  --font-body: var(--dxs-font);

  --bg-body:    #f3f2f8;
  --bg-card:    #ffffff;
  --bg-header:  #ffffff;
  --bg-topbar:  #ffffff;
  --text-main:  #17151f;
  --text-muted: #6b6880;
  --border:     #e6e4ee;
  --hover-row:  #f5f3fb;

  --dxs-glass:  rgba(255, 255, 255, .72);
  --dxs-glass-2: rgba(255, 255, 255, .9);
  --dxs-line:   rgba(23, 21, 31, .08);
  --dxs-glow-1: rgba(139, 92, 246, .10);
  --dxs-glow-2: rgba(45, 212, 191, .08);
  --dxs-shadow: 0 1px 2px rgba(23, 21, 31, .04), 0 8px 24px -12px rgba(23, 21, 31, .12);
  --dxs-r: 16px;
  --dxs-rail: 252px;
  --dxs-deck: 300px;
  --dxs-top: 64px;
}
html.dxs-dark, html.dx-dark-early, body.dark {
  --bg-body:    #0b0b13;
  --bg-card:    #14131e;
  --bg-header:  #14131e;
  --bg-topbar:  #14131e;
  --text-main:  #ecebf5;
  --text-muted: #8e8aa6;
  --border:     #262435;
  --hover-row:  #1b1a29;

  --dxs-glass:  rgba(20, 19, 31, .66);
  --dxs-glass-2: rgba(24, 23, 37, .92);
  --dxs-line:   rgba(255, 255, 255, .07);
  --dxs-glow-1: rgba(139, 92, 246, .16);
  --dxs-glow-2: rgba(45, 212, 191, .09);
  --dxs-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 18px 40px -24px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ══ 기본 ═══════════════════════════════════════════════════ */
html.dxs-root { scroll-padding-top: calc(var(--dxs-top) + 12px); }
body.dxs-body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-body);
  color: var(--text-main);
  font-family: var(--dxs-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* 스튜디오 조명 — 화면 뒤에 고정된 두 개의 은은한 빛 (유일한 배경 장식) */
body.dxs-body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 12% -8%, var(--dxs-glow-1), transparent 60%),
    radial-gradient(800px 600px at 100% 110%, var(--dxs-glow-2), transparent 60%);
}
.dxs-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.dxs-skip { position: fixed; left: 12px; top: -60px; z-index: 100000; padding: 10px 14px; border-radius: 10px; background: var(--p); color: #fff; font-weight: 700; transition: top .15s; }
.dxs-skip:focus { top: 12px; }
.dxs-body :focus-visible { outline: 2px solid var(--p); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--p) 35%, transparent); }

/* ══ 레이아웃 ════════════════════════════════════════════════ */
.dxs-app {
  display: grid;
  grid-template-columns: var(--dxs-rail) minmax(0, 1fr) var(--dxs-deck);
  min-height: 100vh;
}
.dxs-app--nodeck, html.dxs-no-player .dxs-app { grid-template-columns: var(--dxs-rail) minmax(0, 1fr); }
.dxs-stage { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.dxs-page { flex: 1; display: flex; flex-direction: column; outline: none; min-width: 0; }
.dxs-page > footer { margin-top: auto; }

/* ══ 좌측 레일 ═══════════════════════════════════════════════ */
.dxs-rail-wrap { position: relative; z-index: 60; }
.dxs-rail {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; flex-direction: column;
  padding: 18px 14px 16px;
  border-right: 1px solid var(--dxs-line);
  background: var(--dxs-glass);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.dxs-brand-row { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 18px; }
.dxs-brand { display: flex; align-items: center; gap: 11px; color: var(--text-main); text-decoration: none; min-width: 0; }
.dxs-brand-mark {
  display: flex; align-items: flex-end; justify-content: center; gap: 2.5px;
  width: 34px; height: 34px; padding: 9px 8px; flex-shrink: 0;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--p), var(--dxs-acc2));
  box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--p) 70%, transparent);
}
.dxs-brand-mark i { width: 3px; border-radius: 2px; background: #fff; height: 40%; }
.dxs-brand-mark i:nth-child(2) { height: 85%; }
.dxs-brand-mark i:nth-child(3) { height: 60%; }
.dxs-brand-mark i:nth-child(4) { height: 100%; }
html.dxs-playing .dxs-brand-mark i { animation: dxs-eq 1.1s ease-in-out infinite; }
html.dxs-playing .dxs-brand-mark i:nth-child(2) { animation-delay: -.35s; }
html.dxs-playing .dxs-brand-mark i:nth-child(3) { animation-delay: -.7s; }
html.dxs-playing .dxs-brand-mark i:nth-child(4) { animation-delay: -.15s; }
@keyframes dxs-eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
.dxs-brand-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.dxs-brand-txt small { font: 700 9px/1 var(--dxs-disp); letter-spacing: .28em; color: var(--dxs-acc2); text-transform: uppercase; }
.dxs-brand-txt b { margin-top: 4px; font: 800 15px/1.15 var(--dxs-disp); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dxs-rail-sec { padding: 6px 0 10px; }
.dxs-rail-label { margin: 10px 10px 6px; font: 700 10px/1 var(--dxs-disp); letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); opacity: .8; }
.dxs-nav-link {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  width: 100%;
  padding: 9px 10px;
  border: 0; border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font: 600 13.5px/1.3 var(--dxs-font);
  text-align: left; text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.dxs-nav-link > i:first-child { width: 18px; text-align: center; font-size: 14px; opacity: .85; }
.dxs-nav-link span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dxs-nav-link:hover { background: var(--hover-row); color: var(--text-main); }
.dxs-nav-link.is-active { color: var(--text-main); background: color-mix(in srgb, var(--p) 12%, transparent); }
.dxs-nav-link.is-active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--p); }
.dxs-nav-link.is-active > i:first-child { color: var(--p); opacity: 1; }
.dxs-caret { font-size: 10px !important; opacity: .6; transition: transform .2s; }
.dxs-group.is-open .dxs-caret { transform: rotate(180deg); }
.dxs-sub { display: none; margin: 2px 0 6px 20px; padding-left: 12px; border-left: 1px solid var(--border); }
.dxs-group.is-open .dxs-sub { display: block; }
.dxs-sub-link {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 10px; border-radius: 8px;
  color: var(--text-muted); font-size: 13px; font-weight: 500; text-decoration: none;
  transition: background-color .15s, color .15s;
}
.dxs-sub-link:hover { background: var(--hover-row); color: var(--text-main); }
.dxs-sub-link.is-active { color: var(--p); font-weight: 700; }
.dxs-n {
  display: inline-grid; place-items: center;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 5px; background: #f43f5e; color: #fff;
  font: 800 9px/1 var(--dxs-disp); font-style: normal;
}

.dxs-rail-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--dxs-line); }
.dxs-me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; color: var(--text-main); text-decoration: none; }
.dxs-me:hover { background: var(--hover-row); }
.dxs-me-av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(140deg, var(--p), var(--dxs-acc2)); color: #fff; font-weight: 800; }
.dxs-me-txt { display: flex; flex-direction: column; min-width: 0; }
.dxs-me-txt b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dxs-me-txt small { font: 600 10.5px/1.4 var(--dxs-disp); color: var(--text-muted); letter-spacing: .03em; }
.dxs-rail-acts { display: flex; gap: 6px; padding: 8px 4px 0; flex-wrap: wrap; }
.dxs-rail-util { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 8px 0; font-size: 12px; }
.dxs-rail-util a, .dxs-rail-util button { color: var(--text-muted); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.dxs-rail-util a:hover, .dxs-rail-util button:hover { color: var(--text-main); }
.dxs-rail-search { display: flex; align-items: center; gap: 8px; margin: 0 4px 10px; padding: 0 12px; height: 40px; border-radius: 12px; background: var(--hover-row); color: var(--text-muted); }
.dxs-rail-search input { flex: 1; min-width: 0; border: 0 !important; background: none !important; color: var(--text-main); font: inherit; font-size: 14px; outline: none; padding: 0 !important; }

/* ══ 버튼 공통 ═══════════════════════════════════════════════ */
.dxs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 16px;
  border: 1px solid var(--border); border-radius: 11px;
  background: var(--bg-card); color: var(--text-main);
  font: 700 13px/1 var(--dxs-font); text-decoration: none; cursor: pointer;
  transition: border-color .15s, background-color .15s, filter .15s;
}
.dxs-btn:hover { border-color: var(--p); }
.dxs-btn-p { border-color: transparent; background: var(--p); color: #fff !important; }
.dxs-btn-p:hover { filter: brightness(1.08); }
.dxs-rail-acts .dxs-btn { flex: 1; }
.dxs-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-muted); font-size: 12px; font-weight: 600; text-decoration: none; }
.dxs-chip:hover { color: var(--text-main); border-color: var(--text-muted); }
.dxs-ibtn {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; padding: 0;
  border: 1px solid var(--border); border-radius: 11px;
  background: var(--bg-card); color: var(--text-muted);
  cursor: pointer; font-size: 15px;
  transition: color .15s, border-color .15s;
}
.dxs-ibtn:hover { color: var(--text-main); border-color: var(--text-muted); }
.dxs-link { border: 0; background: none; padding: 0; color: var(--text-muted); font: 600 12px/1 var(--dxs-font); cursor: pointer; }
.dxs-link:hover { color: var(--p); }
.dxs-only-m { display: none !important; }

/* ══ 상단 바 ═════════════════════════════════════════════════ */
.dxs-top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  height: var(--dxs-top);
  padding: 0 24px;
  border-bottom: 1px solid var(--dxs-line);
  background: var(--dxs-glass);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
}
.dxs-search {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  flex: 1; max-width: 460px;
  height: 40px; padding: 0 12px 0 14px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg-card);
  color: var(--text-muted);
  transition: border-color .15s, box-shadow .15s;
}
.dxs-search:focus-within { border-color: var(--p); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p) 18%, transparent); }
.dxs-search input { flex: 1; min-width: 0; height: 100%; border: 0 !important; background: none !important; color: var(--text-main) !important; font: 500 14px var(--dxs-font); outline: none; padding: 0 !important; }
.dxs-search input::placeholder { color: var(--text-muted); }
.dxs-search kbd { padding: 2px 7px; border: 1px solid var(--border); border-radius: 6px; font: 600 11px/1.4 var(--dxs-disp); color: var(--text-muted); }
.dxs-top-r { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.dxs-user { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 6px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-card); color: var(--text-main); text-decoration: none; font-size: 13px; font-weight: 700; }
.dxs-user:hover { border-color: var(--p); }
.dxs-lv { padding: 4px 8px; border-radius: 999px; background: color-mix(in srgb, var(--p) 15%, transparent); color: var(--p); font: 700 10.5px/1 var(--dxs-disp); }
.dxs-user-name { max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 재생 중 표시 (상단 바) */
.dxs-eq-live { display: none; align-items: flex-end; gap: 2px; height: 14px; margin-right: 6px; }
html.dxs-playing .dxs-eq-live { display: flex; }
.dxs-eq-live i { width: 3px; border-radius: 1px; background: var(--dxs-acc2); animation: dxs-eq 1s ease-in-out infinite; }
.dxs-eq-live i:nth-child(2) { animation-delay: -.3s; } .dxs-eq-live i:nth-child(3) { animation-delay: -.6s; }
.dxs-eq-live i:nth-child(4) { animation-delay: -.15s; } .dxs-eq-live i:nth-child(5) { animation-delay: -.45s; }

/* 알림 */
.dxs-notif { position: relative; }
.dxs-badge { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; border: 2px solid var(--bg-body); background: #f43f5e; color: #fff; font: 800 9px/13px var(--dxs-disp); text-align: center; }
.dxs-pop { position: absolute; top: calc(100% + 10px); right: 0; z-index: 9999; width: 340px; border: 1px solid var(--border); border-radius: 16px; background: var(--dxs-glass-2); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .45); overflow: hidden; }
.dxs-pop-head, .dxs-pop-mhead { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 12px; border-bottom: 1px solid var(--border); font-weight: 800; font-size: 14px; }
.dxs-pop-head button { border: 0; background: none; padding: 0 0 0 10px; color: var(--p); font: 700 12px var(--dxs-font); cursor: pointer; }
.dxs-pop-head button.mute { color: var(--text-muted); }
.dxs-pop-list { max-height: 340px; overflow-y: auto; }
.dxs-pop-foot { display: block; padding: 11px; border-top: 1px solid var(--border); text-align: center; font-size: 12.5px; font-weight: 700; color: var(--text-muted); text-decoration: none; }
.dxs-pop-foot:hover { color: var(--p); }
.dxs-toast-wrap { position: fixed; bottom: 110px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 99999; pointer-events: none; }

/* ══ 우측 덱 ═════════════════════════════════════════════════ */
.dxs-deck {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; flex-direction: column; gap: 18px;
  padding: 18px 16px 110px;
  border-left: 1px solid var(--dxs-line);
  background: var(--dxs-glass);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  overflow-y: auto;
  scrollbar-width: thin;
}
.dxs-deck[hidden] { display: none; }
.dxs-np { padding: 14px; border: 1px solid var(--dxs-line); border-radius: 20px; background: var(--bg-card); box-shadow: var(--dxs-shadow); }
.dxs-np-art { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: linear-gradient(140deg, color-mix(in srgb, var(--p) 55%, #000), color-mix(in srgb, var(--dxs-acc2) 45%, #000)); }
.dxs-np-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.34); }
.dxs-np-disc { position: absolute; inset: 22%; border-radius: 50%; background: repeating-radial-gradient(circle, rgba(255,255,255,.08) 0 1px, transparent 1px 5px), radial-gradient(circle, #111 0 18%, #1c1c24 19% 100%); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.dxs-np-art img:not([hidden]) + .dxs-np-disc { display: none; }
.dxs-np-t { margin: 14px 2px 2px; font-size: 15px; font-weight: 800; letter-spacing: -.01em; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dxs-np-a { margin: 0 2px; font-size: 12.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dxs-np-bar { height: 4px; margin: 14px 2px 6px; border-radius: 999px; background: var(--border); overflow: hidden; }
.dxs-np-bar span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--p), var(--dxs-acc2)); transition: width .5s linear; }
.dxs-np-time { display: flex; justify-content: space-between; margin: 0 2px; font: 500 10px/1 var(--dxs-disp); color: var(--text-muted); letter-spacing: .04em; }
.dxs-np-ctrls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; }
.dxs-np-ctrls .dxs-ibtn { border-color: transparent; background: transparent; }
.dxs-np-play { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--text-main); color: var(--bg-card); font-size: 16px; cursor: pointer; transition: transform .15s; }
.dxs-np-play:hover { transform: scale(1.06); }
.dxs-upnext-h { display: flex; align-items: center; justify-content: space-between; }
.dxs-upnext-h .dxs-rail-label { margin-left: 4px; }
.dxs-upnext-list { list-style: none; margin: 0; padding: 0; }
.dxs-un { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 6px; border: 0; border-radius: 10px; background: none; color: inherit; text-align: left; cursor: pointer; }
.dxs-un:hover { background: var(--hover-row); }
.dxs-un img { width: 42px; height: 42px; border-radius: 9px; object-fit: cover; flex-shrink: 0; background: var(--border); }
.dxs-un-tx { display: flex; flex-direction: column; min-width: 0; }
.dxs-un-tx b, .dxs-un-tx small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dxs-un-tx b { font-size: 13px; font-weight: 700; }
.dxs-un-tx small { font-size: 11.5px; color: var(--text-muted); }

/* ══ FAB — studio-skin.css 에서 (#dx-fab-wrap 우선순위) ══ */
.dxs-fab-ring { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); transform: rotate(-90deg); }
.dxs-fab-ring circle { fill: none; stroke-width: 2; }
.dxs-fab-ring .t { stroke: var(--border); }
.dxs-fab-ring .r { stroke: var(--p); stroke-linecap: round; transition: stroke-dashoffset .1s linear; }

/* ══ 플래시 ══════════════════════════════════════════════════ */
.dxs-flash-wrap { padding: 16px 24px 0; }
.dxs-flash { display: flex; align-items: center; gap: 10px; max-width: 1200px; margin: 0 auto; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg-card); font-size: 14px; font-weight: 600; transition: opacity .4s, transform .4s; }
.dxs-flash-ico { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 800; color: #fff; background: var(--p); flex-shrink: 0; }
.dxs-flash.dx-flash-success .dxs-flash-ico { background: #10b981; }
.dxs-flash.dx-flash-error .dxs-flash-ico { background: #f43f5e; }
.dxs-flash-x { margin-left: auto; border: 0; background: none; color: var(--text-muted); cursor: pointer; font-size: 14px; }

/* ══ 화면 전환 ═══════════════════════════════════════════════ */
.dxs-progress { position: fixed; left: 0; top: 0; z-index: 100001; height: 2px; width: 0; background: linear-gradient(90deg, var(--p), var(--dxs-acc2)); box-shadow: 0 0 10px var(--p); opacity: 0; pointer-events: none; }
.dxs-progress.run { opacity: 1; width: 72%; transition: width 6s cubic-bezier(.1, .8, .2, 1), opacity .1s; }
.dxs-progress.done { opacity: 0; width: 100%; transition: width .2s ease, opacity .35s ease .15s; }
html.dxs-loading .dxs-page { opacity: .6; transition: opacity .2s .15s; }
.dxs-page { transition: opacity .15s; }

/* ══ 반응형 ══════════════════════════════════════════════════ */
@media (max-width: 1360px) {
  :root { --dxs-deck: 272px; --dxs-rail: 232px; }
}
@media (max-width: 1200px) {
  .dxs-app { grid-template-columns: var(--dxs-rail) minmax(0, 1fr); }
  .dxs-deck { display: none; }
}
@media (max-width: 1024px) {
  .dxs-app, .dxs-app--nodeck { grid-template-columns: minmax(0, 1fr); }
  .dxs-only-m { display: inline-flex !important; }
  .dxs-rail-search.dxs-only-m { display: flex !important; }
  .dxs-hide-m { display: none !important; }
  .dxs-rail-wrap {
    position: fixed; inset: 0; z-index: 100000;
    background: rgba(5, 5, 10, .5);
    opacity: 0; visibility: hidden;
    transition: opacity .2s, visibility 0s linear .2s;
  }
  .dxs-rail-wrap.open { opacity: 1; visibility: visible; transition: opacity .2s; }
  .dxs-rail { width: min(86vw, 320px); background: var(--dxs-glass-2); transform: translateX(-100%); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
  .dxs-rail-wrap.open .dxs-rail { transform: none; }
  .dxs-top { padding: 0 14px; gap: 10px; }
  .dxs-top-brand { font: 800 14px/1 var(--dxs-disp); color: var(--text-main); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
  .dxs-search { display: none; }
  .dxs-user-name { display: none; }
  .dxs-flash-wrap { padding: 12px 14px 0; }
}
@media (max-width: 640px) {
  .dxs-pop { position: fixed; left: 8px; right: 8px; top: calc(var(--dxs-top) + 6px); width: auto; }
  .dxs-eq-live { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ══ DX 스튜디오 플레이어와 겹치지 않게 ═══════════════════════ */
html.dxsp-on .dxs-rail { padding-bottom: calc(var(--dxsp-h, 76px) + 30px); }
html.dxsp-on .dxs-deck { padding-bottom: calc(var(--dxsp-h, 76px) + 30px); }
@media (max-width: 1024px) {
  html.dxsp-on .dxs-rail { padding-bottom: 20px; }
}
