/* Пати: native Essence Music look (tokens from style.css: --card, --bg2, --border, --muted, --text) */
.pt-hero { margin: 6px 0 18px; text-align: left; }
.pt-over { font-family: 'Unbounded', 'Onest', system-ui, sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: #fff; margin: 0 0 12px; }
.pt-title { font-family: 'Unbounded', 'Onest', system-ui, sans-serif; font-size: clamp(36px, 14vw, 72px); font-weight: 800; letter-spacing: -0.045em; line-height: 0.92; text-transform: uppercase; margin: 0; }
.pt-sub { margin: 12px 0 0; font-size: 13px; color: rgba(241, 241, 236, 0.62); max-width: 22em; }

.pt-panel { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 16px; }
.pt-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.pt-label { font-size: 13px; color: var(--muted); margin: 0; }
.pt-val { font-family: 'Unbounded', 'Onest', system-ui, sans-serif; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pt-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 6px; padding: 0; border: 0; border-radius: 6px; outline: 0; background: linear-gradient(90deg, #fff var(--p, 17%), #2c2c32 var(--p, 17%)); }
.pt-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.14); }
.pt-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 0; }
.pt-range:focus-visible { outline: 2px solid #fff; outline-offset: 6px; }
.pt-create { margin-top: 18px; padding: 14px 16px; font-size: 16px; border-radius: 14px; }

.pt-code { display: block; width: 100%; margin-top: 12px; padding: 22px 16px 18px; text-align: center; border: 2px dashed var(--border); border-radius: 16px; background: var(--bg2); color: var(--text); font: inherit; }
.pt-code-ic { display: inline-flex; width: 46px; height: 46px; border-radius: 50%; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.08); color: var(--accent2); }
.pt-dashes { display: flex; justify-content: center; gap: 12px; margin: 14px 0 12px; }
.pt-dashes i { display: block; width: 26px; height: 5px; border-radius: 3px; background: #fff; }
.pt-code-hint { font-size: 12.5px; color: var(--muted); margin: 0; }
.pt-center { text-align: center; margin-top: 10px; }
.pt-code.on { border-style: solid; border-color: #3a3a42; cursor: pointer; font-family: 'Unbounded', 'Onest', system-ui, sans-serif; font-size: clamp(30px, 10vw, 42px); font-weight: 800; letter-spacing: 0.06em; padding: 26px 16px; margin-top: 0; }
.pt-code.on:active { background: #1b1b1f; }
.pt-code.on:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.pt-or { display: flex; align-items: center; gap: 12px; margin: 22px 2px 16px; color: var(--muted2); font-size: 12.5px; }
.pt-or::before, .pt-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.pt-join { display: flex; gap: 10px; }
.pt-join input { flex: 1; min-width: 0; margin: 0; text-align: center; font-size: 20px; font-weight: 600; letter-spacing: 0.14em; }
.pt-join .btn.primary { width: auto; padding: 0 22px; flex: none; border-radius: 12px; }
.pt-join .btn.primary:disabled { opacity: 0.4; cursor: default; }
.pt-hint { min-height: 18px; margin-top: 10px; font-size: 12.5px; color: var(--muted); text-align: center; }

.pt-sh { margin: 26px 0 10px; }
.pt-members { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pt-members li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); font-size: 15px; font-weight: 600; min-width: 0; }
.pt-members li > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-members .avatar { width: 38px; height: 38px; font-size: 16px; }
.pt-members em { margin-left: auto; flex: none; font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #000; background: #fff; border-radius: 999px; padding: 4px 9px; }
.pt-nowbox { margin-top: 18px; }
.pt-now { font-size: 16px; font-weight: 600; line-height: 1.3; margin: 6px 0 0; overflow-wrap: anywhere; }
.pt-role { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }
.pt-leave { display: block; width: 100%; margin-top: 14px; padding: 13px 16px; border-radius: 14px; font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .pt-code.on { transition: none; } }

/* ---- room (extends party2.css) */
.pt-codeline { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 8px 6px 4px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg2); }
.pt-codebtn { flex: 1; min-width: 0; text-align: left; border: 0; background: none; color: var(--text); cursor: pointer; padding: 10px 12px; border-radius: 12px; font-family: 'Unbounded', 'Onest', system-ui, sans-serif; font-size: clamp(22px, 7.5vw, 30px); font-weight: 800; letter-spacing: 0.06em; }
.pt-codebtn:active { background: #1b1b1f; }
.pt-codebtn:focus-visible { outline: 2px solid #fff; }
.pt-cnt { flex: none; padding: 7px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pt-link { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--border); font-size: 12.5px; color: var(--muted); overflow: hidden; white-space: nowrap; }
.pt-link span { overflow: hidden; text-overflow: ellipsis; }
.pt-link svg { flex: none; }
.pt-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.pt-two .btn { margin: 0; padding: 12px 10px; border-radius: 12px; font-size: 14.5px; }

.pt-player { margin-top: 14px; }
.pt-pl { display: flex; align-items: center; gap: 12px; }
.pt-cv { position: relative; display: block; width: 40px; height: 40px; flex: none; border-radius: 10px; overflow: hidden; background: linear-gradient(140deg, #3a3a42, #1b1b1f); }
.pt-cv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pt-pcover { width: 84px; height: 84px; border-radius: 14px; }
.pt-pm { min-width: 0; text-align: left; }
.pt-pm b { display: block; font-size: 15px; line-height: 1.25; overflow-wrap: anywhere; }
.pt-pm small { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; }
.pt-bar { position: relative; height: 4px; border-radius: 4px; background: #2c2c32; margin: 14px 0 6px; }
.pt-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 4px; background: #fff; }
.pt-tm { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted2); font-variant-numeric: tabular-nums; }
.pt-ctl { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 12px; }
.pt-ctl[hidden], .pt-guest[hidden], .pt-add[hidden], .pt-empty[hidden] { display: none; }
.pt-ctl button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid var(--border); background: var(--bg2); color: var(--text); cursor: pointer; }
.pt-ctl .pt-pp { width: 56px; height: 56px; background: #fff; color: #000; border: 0; }
.pt-pp .i-play { display: none; }
.pt-pp.paused .i-play { display: block; margin-left: 2px; }
.pt-pp.paused .i-pause { display: none; }
.pt-ctl button:active { transform: scale(0.95); }
.pt-ctl button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.pt-guest { font-size: 12px; color: var(--muted); text-align: center; margin: 12px 0 0; }

.pt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pt-list li { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); min-width: 0; }
.pt-qt { min-width: 0; flex: 1; text-align: left; }
.pt-qt b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-qt small { display: block; margin-top: 1px; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-x, .pt-plus { flex: none; width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 1px solid var(--border); background: var(--bg2); color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer; }
.pt-plus { background: #fff; color: #000; border: 0; font-size: 20px; font-weight: 600; }
.pt-plus:disabled { opacity: 0.5; }
.pt-x:hover { color: #fff; }
.pt-x:focus-visible, .pt-plus:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pt-none { color: var(--muted); font-size: 13px; justify-content: center; }
.pt-empty { margin: 4px 2px 0; font-size: 12.5px; color: var(--muted2); text-align: center; }
.pt-addbtn { display: block; width: 100%; margin-top: 10px; padding: 12px 16px; border-radius: 14px; font-size: 15px; }
.pt-add { margin-top: 10px; padding: 10px; border-radius: 18px; background: var(--bg2); border: 1px solid var(--border); }
.pt-add-head { display: flex; gap: 8px; margin-bottom: 8px; }
.pt-add-head input { flex: 1; min-width: 0; margin: 0; font-size: 15px; }
.pt-add-head .btn { flex: none; padding: 0 14px; border-radius: 12px; font-size: 14px; }
.pt-add .pt-list { max-height: 320px; overflow-y: auto; }

.pt-members .pt-mname { min-width: 0; flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-members li > .pt-x { margin-left: auto; }
