

.console { position: relative; margin-top: clamp(22px, 2.2vw, 30px); }
.cx { position: relative; display: grid; grid-template-columns: 212px minmax(0, 1fr) 340px;
      grid-template-rows: auto auto 1fr;
      grid-template-areas: "side head player" "side eps player" "side band player";
      background: var(--win); border-radius: 18px; box-shadow: var(--win-sh); overflow: hidden; isolation: isolate;
      font: 400 13.5px/1.35 var(--sans); color: var(--ink); letter-spacing: -.003em; }
.js .cx { opacity: 0; transform: translateY(12px); }
.js .cx.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .9s var(--out); }

.js .cx:not(.in) { animation: cx-fallback .4s 8s forwards; }
@keyframes cx-fallback { to { opacity: 1; transform: none; } }

.cx-side { grid-area: side; background: var(--side); border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; min-width: 0; }
.cx-world { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px; margin-bottom: 14px; }
.cx-world img { width: 30px; height: 30px; border-radius: 9px; object-fit: cover; flex: none; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); }
.cx-world .nm { font-size: 17.5px; line-height: 1.1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-places { display: grid; gap: 2px; }
.cx-places li { display: flex; align-items: center; gap: 11px; height: 36px; padding: 0 10px; border-radius: 9px; color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.cx-places li .i { width: 17px; height: 17px; color: var(--ink-3); }
.cx-places li.on { background: var(--raised); color: var(--ink); }
.cx-places li.on .i { color: var(--ink); }

.cx-head { grid-area: head; position: relative; height: 104px; margin: 18px 18px 0; border-radius: 13px; overflow: hidden; background: #0d0b09; color: #fff; }
.cx-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.cx-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(8 7 6 / .8) 0%, rgb(8 7 6 / .45) 46%, rgb(8 7 6 / 0) 78%), linear-gradient(0deg, rgb(8 7 6 / .45), rgb(8 7 6 / 0) 60%); }
.cx-head-in { position: absolute; z-index: 1; left: 22px; bottom: 17px; right: 20px; }
.cx-title { font-size: 28px; line-height: 1; letter-spacing: -.02em; }
.cx-meta { margin-top: 8px; font: 500 13px/1.2 var(--sans); color: rgb(255 255 255 / .84); letter-spacing: -.003em; }

.cx-eps { grid-area: eps; padding: 16px 18px 2px; min-width: 0; }
.cx-eps-top { display: flex; align-items: baseline; gap: 10px; padding: 0 4px 10px 6px; }
.cx-eps-top h4 { font: 700 16.5px/1 var(--sans); letter-spacing: -.012em; }
.cx-eps-top .season { font: 500 13px/1 var(--sans); color: var(--ink-4); }
.rows { display: flex; flex-direction: column; gap: 8px; }
.row { position: relative; width: 100%; display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 5px 14px 5px 12px; border-radius: 12px; background: var(--surface); box-shadow: var(--card-sh); transition: box-shadow .18s var(--ease), background-color .18s var(--ease); }
@media (hover: hover) { button.row:hover { box-shadow: 0 0 0 1px var(--line-3), 0 1px 2px rgb(16 16 24 / .05); } }
button.row:active { transform: scale(.995); }
.row[aria-pressed="true"], button.row[aria-pressed="true"]:hover { box-shadow: 0 0 0 1.5px var(--ink), 0 6px 18px -10px rgb(16 16 24 / .35); }
:root[data-theme="dark"] .row[aria-pressed="true"], :root[data-theme="dark"] button.row[aria-pressed="true"]:hover { box-shadow: 0 0 0 1.5px var(--ink); background: var(--raised); }
.row .num { width: 22px; flex: none; font: 500 13px/1 var(--sans); color: var(--ink-4); font-variant-numeric: tabular-nums; }
.row .pst { width: 30px; height: 44px; flex: none; border-radius: 6px; object-fit: cover; background: var(--raised); }
.row .body { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.row .tt { min-width: 0; font: 600 14.5px/1.25 var(--sans); letter-spacing: -.012em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font: 600 11.5px/1 var(--sans); white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line-3); color: var(--ink-2); flex: none; }
.chip.ok { color: var(--ok); background: var(--ok-bg); box-shadow: inset 0 0 0 1px var(--ok-line); }
.row .trail { width: 20px; margin-left: auto; flex: none; display: grid; place-items: center; color: var(--ink-4); }
.row .trail .i { width: 17px; height: 17px; }
.row .trail .i.f { width: 14px; height: 14px; }

.row.plan { min-height: 54px; background: none; box-shadow: none; outline: 1px dashed var(--line-3); outline-offset: -1px; color: var(--ink-3); cursor: default; }
.row.plan .pst { width: 30px; height: 38px; display: grid; place-items: center; color: var(--ink-4); border: 1px dashed var(--line-3); background: none; }
.row.plan .pst .i { width: 15px; height: 15px; }
.row.plan .body { position: relative; display: grid; align-items: center; min-height: 36px; }
.row.plan .body > span { grid-area: 1 / 1; min-width: 0; transition: opacity .35s var(--ease), transform .45s var(--out), filter .45s var(--ease); }
.p-empty { font: 500 14px/1.2 var(--sans); color: var(--ink-3); }
.p-live { display: inline-flex; align-items: center; gap: 8px; font: 500 13.5px/1.2 var(--sans); color: var(--ink-2); }
.p-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 1.2s var(--ease) infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.p-card { display: flex; flex-direction: column; gap: 4px; }
.p-k { font: 600 11px/1 var(--sans); color: var(--ink-4); letter-spacing: .01em; }
.p-line { font: 500 13.5px/1.25 var(--sans); color: var(--ink); letter-spacing: -.008em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-wrap: pretty; }
.p-acts { display: flex; gap: 6px; flex: none; transition: opacity .35s var(--ease) .1s; }
.p-btn { height: 28px; padding: 0 11px; display: inline-grid; place-items: center; border-radius: 8px; font: 600 12px/1 var(--sans); color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-3); white-space: nowrap; }
.row.plan:not([data-state="empty"]) .p-empty, .row.plan:not([data-state="writing"]) .p-live, .row.plan:not([data-state="pitch"]) .p-card { opacity: 0; transform: translateY(5px); filter: blur(3px); pointer-events: none; }
.row.plan:not([data-state="pitch"]) .p-acts { opacity: 0; pointer-events: none; }
@media (hover: hover) { .p-btn:hover { background: var(--hover); } }
.p-btn:active { transform: scale(.97); }
.row.plan[data-state="pitch"] { outline-style: solid; outline-color: var(--line-2); background: var(--surface); }

.cx-player { grid-area: player; padding: 18px 18px 18px 0; display: flex; flex-direction: column; min-width: 0; }
.pl-card { flex: 1; display: flex; flex-direction: column; border-radius: 15px; background: var(--surface); box-shadow: var(--card-sh); padding: 12px 12px 12px; }
.pl-top { display: flex; align-items: baseline; gap: 8px; padding: 2px 4px 11px; min-width: 0; }
.pl-num { font: 500 12px/1 var(--sans); color: var(--ink-4); flex: none; font-variant-numeric: tabular-nums; }
.pl-title { font-size: 18px; line-height: 1.1; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-top .chip { align-self: center; flex: none; }
.pl-stage { position: relative; width: 100%; flex: 1 1 auto; min-height: 0; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: var(--stage); }
.pl-stage > img, .pl-stage > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s var(--ease); }
.pl-stage > .on { opacity: 1; }
.pl-stage::after { content: ""; position: absolute; inset: auto 0 0 0; height: 42%; background: linear-gradient(0deg, rgb(0 0 0 / .62), rgb(0 0 0 / 0)); pointer-events: none; z-index: 1; }
.pl-sub { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 32px; text-align: center; font: 500 15px/1.3 var(--sans); color: #fff; letter-spacing: -.005em; text-shadow: 0 1px 2px rgb(0 0 0 / .6), 0 0 18px rgb(0 0 0 / .35); text-wrap: balance; opacity: 0; transform: translateY(4px); transition: opacity .25s var(--ease), transform .35s var(--out); }
.pl-sub.on { opacity: 1; transform: none; }
.pl-sub .who { display: block; margin-bottom: 4px; font: 600 10.5px/1 var(--sans); letter-spacing: .08em; color: rgb(255 255 255 / .72); }

.pl-plan { position: absolute; z-index: 3; top: 10px; left: 10px; height: 24px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 999px; background: rgb(0 0 0 / .42); color: rgb(255 255 255 / .92); font: 600 11px/1 var(--sans); letter-spacing: .01em; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16); white-space: nowrap; }

.pl-dip { position: absolute; inset: 0; z-index: 2; background: #000; opacity: 0; pointer-events: none; }
.pl-made { position: absolute; z-index: 2; left: 0; right: 0; bottom: 11px; text-align: center; font: 500 10.5px/1 var(--sans); color: rgb(255 255 255 / .6); letter-spacing: .01em; }
.pl-ctl { position: absolute; z-index: 3; top: 10px; right: 10px; display: flex; gap: 6px; }
.pl-ctl button { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgb(0 0 0 / .42); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16); transition: background-color .15s var(--ease), transform .12s var(--ease); }
@media (hover: hover) { .pl-ctl button:hover { background: rgb(0 0 0 / .62); } }
.pl-ctl button:active { transform: scale(.94); }
.pl-ctl .i.f { width: 12px; height: 12px; }
.pl-foot { display: flex; align-items: center; gap: 10px; padding: 11px 4px 0; }
.pl-scene { flex: 1; min-width: 0; font: 500 12.5px/1.2 var(--sans); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-scene b { font-weight: 600; color: var(--ink); }
.pl-time { font: 400 11px/1 var(--mono); color: var(--ink-4); font-variant-numeric: tabular-nums; flex: none; }
.pl-strip { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; padding: 9px 3px 1px; }
.pl-strip i { position: relative; height: 3px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.pl-strip i.has { background: var(--line-3); }
.pl-strip i b { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: var(--ink); border-radius: inherit; }

.cx-band { grid-area: band; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; padding: 10px 18px 18px; }
.card.cast { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 0 22px; }
.card.cast .card-h { margin-bottom: 0; }
.card.cast .cast-line { margin-top: 0; min-height: 0; }
.card { border-radius: 14px; background: var(--surface); box-shadow: var(--card-sh); padding: 15px 16px 16px; min-width: 0; }
.card-h { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.card-h h4 { font: 600 14px/1 var(--sans); letter-spacing: -.01em; }
.card-h .i { width: 16px; height: 16px; color: var(--ink-3); }

.cast-faces { display: flex; align-items: center; gap: 10px; }
.cf { position: relative; width: 38px; height: 38px; flex: none; border-radius: 50%; }
.cf img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--raised); transition: filter .2s var(--ease), opacity .2s var(--ease); }
.cf:not(.on) img { filter: saturate(.75); opacity: .78; }
@media (hover: hover) { .cf:hover img { filter: none; opacity: 1; } }
.cf::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--ink); opacity: 0; transition: opacity .2s var(--ease); }
.cf.on::before { opacity: 1; }
.cf::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px var(--surface); opacity: 0; transform: scale(.6); transition: opacity .2s var(--ease), transform .25s var(--out); }
.cf.talk::after { opacity: 1; transform: none; }
.cast-line { margin-top: 11px; min-height: 36px; transition: opacity .2s var(--ease), filter .25s var(--ease); }
.cast-line.swap { opacity: 0; filter: blur(3px); }
.cast-line .n { display: block; font-size: 14.5px; line-height: 1.15; }
.cast-line .r { display: block; margin-top: 3px; font: 400 12.5px/1.35 var(--sans); color: var(--ink-2); text-wrap: pretty; }

.cx-apphead, .cx-tabs { display: none; }

@media (max-width: 1340px) {
  .cx { grid-template-columns: 196px minmax(0, 1fr) 320px; }
}
@media (max-width: 1240px) {
  .cx { grid-template-columns: 184px minmax(0, 1fr) 300px; }
}
@media (max-width: 1120px) {
  .cx { grid-template-columns: minmax(0, 1fr) 290px; grid-template-areas: "head player" "eps player" "band player"; }
  .cx-side { display: none; }
}
@media (max-width: 900px) {
  .card.cast { grid-template-columns: auto minmax(0, 1fr); gap: 12px 18px; }
  .card.cast .cast-line { grid-column: 1 / -1; }
  .row.plan .p-acts { display: none; }
}

@media (max-width: 760px) {
  .console { margin-top: 22px; }
  .cx { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "apphead" "player" "eps" "band" "tabs"; border-radius: 22px; }
  .cx-side, .cx-head { display: none; }
  .cx-apphead { display: flex; grid-area: apphead; align-items: center; gap: 10px; height: 52px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--side); }
  .cx-apphead img { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; }
  .cx-apphead .nm { font-size: 17px; flex: 1; }
  .cx-apphead .faces { display: flex; }
  .cx-apphead .faces img { width: 24px; height: 24px; border-radius: 50%; margin-left: -6px; box-shadow: 0 0 0 2px var(--side); }
  .cx-player { padding: 10px 10px 0; }
  .pl-card { padding: 9px 9px 10px; }
  .pl-top { padding: 2px 3px 8px; }
  .pl-stage { aspect-ratio: 4 / 5; }
  .pl-stage > img, .pl-stage > video { object-position: 50% 30%; }
  .cx-eps { padding: 14px 10px 0; }
  .cx-eps-top { padding: 0 4px 9px; }
  .rows { gap: 6px; }
  .row { min-height: 50px; padding: 4px 12px 4px 9px; gap: 11px; }
  .row .num { width: 20px; font-size: 12px; }
  .row .pst { width: 27px; height: 40px; }
  .row .tt { font-size: 14px; }
  .row.plan .p-acts { display: none; }
  .row.plan .pst { height: 34px; }
  .cx-band { padding: 10px 10px 12px; }
  .card { padding: 13px 14px 14px; }
  .cx-tabs { display: grid; grid-area: tabs; grid-template-columns: repeat(5, 1fr); height: 58px; border-top: 1px solid var(--line); background: var(--side); padding: 0 4px; }
  .cx-tabs span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font: 500 10.5px/1 var(--sans); color: var(--ink-4); white-space: nowrap; }
  .cx-tabs span.on { color: var(--ink); }
  .cx-tabs .i { width: 20px; height: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .cx { opacity: 1; transform: none; }
  .p-live .dot { animation: none; }
  .pl-stage > img, .pl-stage > video, .pl-sub, .pl-dip, .cast-line, .row.plan .body > span { transition-duration: .15s; }
}

.cx-places li, .cx-tabs span, .cx-world, .cx-head, .cx-apphead { cursor: default; user-select: none; }
.cast-line { cursor: default; }
.cf { cursor: pointer; transition: transform .16s var(--ease); }
.cf:focus-visible { transform: scale(1.08); }
.cf:focus-visible::before { opacity: .55; }
.cf.on:focus-visible::before { opacity: 1; }
@media (hover: hover) { .cf:hover { transform: scale(1.08); } .cf:hover::before { opacity: .55; } .cf.on:hover::before { opacity: 1; } }
.cf:focus-visible { outline: none; }
.cf:focus-visible::before { box-shadow: 0 0 0 2px var(--ink); opacity: 1; }
.row[data-ep] { cursor: pointer; }

@media (max-width: 700px) { .cx-tabs { display: none !important; } }

.pl-bigplay { position: absolute; z-index: 3; left: 50%; top: 46%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; display: grid; place-items: center; background: rgb(0 0 0 / .55); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25), 0 8px 24px -8px rgb(0 0 0 / .6); cursor: pointer; transition: transform .14s var(--ease), background-color .15s var(--ease); }
@media (hover: hover) { .pl-bigplay:hover { background: rgb(0 0 0 / .7); } }
.pl-bigplay:active { transform: scale(.94); }
.pl-bigplay .i { width: 22px; height: 22px; margin-left: 3px; }

.pl-ctl button { position: relative; }
.pl-ctl button::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; }
.cast-faces { gap: 4px; }
.cf { width: 44px; height: 44px; display: grid; place-items: center; }
.cf::before { inset: 0; }
.cf::after { right: 2px; bottom: 2px; }

.pl-sub .who, .pl-made { font-size: 11px; }

@media (max-width: 760px) and (max-height: 760px) {
  .cx-apphead { display: none !important; }
  .cx { grid-template-areas: "player" "eps" "band" "tabs"; }
  .pl-stage { aspect-ratio: auto; height: min(calc((100vw - 60px) * 1.25), 50svh); }
}

.row, .cf, .pl-ctl button, .p-btn, .pl-bigplay { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.row, .p-btn, .pl-ctl button, .pl-bigplay { transition: transform 180ms var(--press-rel, ease-out), opacity 180ms var(--press-rel, ease-out), box-shadow .18s var(--ease), background-color .18s var(--ease); }
.cf { transition: transform 180ms var(--press-rel, ease-out), opacity 180ms var(--press-rel, ease-out); }
.row:active, .p-btn:active, .pl-ctl button:active, .pl-bigplay:active, .cf:active { transform: scale(.97); opacity: .8; transition: none; }
.pl-stage img, .pl-stage video { -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
@media (max-width: 760px) { .row { min-height: 48px; } }

@media (max-width: 640px) {
  .rows > li:first-child, .rows > li:has(.row.plan) { display: none; }
  .row { min-height: 48px; }
  .cx-band { display: none; }
  .pl-plan, .pl-made, .p-k, .pl-sub .who { font-size: 12px; }
}
@media (max-width: 640px) {
  .pl-stage { aspect-ratio: auto; height: min(calc((100vw - 60px) * 1.25), 46svh); }
  .cx-eps { padding-top: 10px; }
  .cx-eps-top { padding-bottom: 6px; }
  .rows { gap: 4px; }
  .console { margin-top: 16px; }
}
@media (max-width: 640px) {
  .pl-stage { height: min(calc((100vw - 60px) * 1.25), 41svh); }
  .cx-player { padding-top: 8px; }
  .pl-top { padding-bottom: 6px; }
  .pl-foot { padding-top: 9px; }
}

.console { margin-top: 28px; }
@media (max-width: 640px) { .console { margin-top: 20px; } }
