/* Игроки шоу-матчей: список под историей ставок и профиль во всплывающем окне (players.js).
   Двигаются только transform, opacity и длины дуг; при prefers-reduced-motion всё стоит на месте. */

/* --- список игроков */
.pl { position: relative; overflow: hidden; margin-top: 0; padding: 20px 26px 24px; }
.pl::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--green), #2aabee 45%, transparent 80%); }
.plhead { display: flex; align-items: center; gap: 10px; }
.plnote { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--muted); text-align: right; }
.plgrid { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.plcard { --c: var(--green); position: relative; display: grid; justify-items: center; gap: 6px; padding: 20px 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-dark);
  color: var(--white); font: inherit; text-align: center; cursor: pointer; overflow: hidden; animation: bx-in 0.5s cubic-bezier(0.2, 0.9, 0.3, 1) both; transition: transform 0.2s ease, border-color 0.2s ease; }
.plcard:nth-child(2) { animation-delay: 0.06s; } .plcard:nth-child(3) { animation-delay: 0.12s; } .plcard:nth-child(4) { animation-delay: 0.18s; } .plcard:nth-child(n+5) { animation-delay: 0.24s; }
.plcard::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0, rgba(0, 231, 1, 0.16), transparent 62%); opacity: 0; transition: opacity 0.25s ease; }
.plcard::after { content: ""; position: absolute; left: -40%; top: 0; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.07), transparent); transform: translateX(-120%); }
.plcard:hover, .plcard:focus-visible { transform: translateY(-4px); border-color: var(--c); outline: none; }
.plcard:hover::before, .plcard:focus-visible::before { opacity: 1; }
.plcard:hover::after { transform: translateX(480%); transition: transform 0.7s ease; }
.plcard > * { position: relative; }
.plcard.top { --c: #f5c542; }
.plrank { position: absolute !important; left: 10px; top: 10px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; color: var(--c); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--c); }
.plface { position: relative; width: 96px; height: 96px; display: grid; place-items: center; }
.plface img, .plface u { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; text-decoration: none; font-size: 32px; font-weight: 800; color: #05080a;
  background: radial-gradient(circle at 32% 28%, #7dff7e, #00b801 60%, #006b01); }
.plring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.plring .t { fill: none; stroke: var(--line); stroke-width: 4; }
.plring .v { fill: none; stroke: var(--c, var(--green)); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.plname { max-width: 100%; margin-top: 4px; font-size: 17px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plrate { display: flex; align-items: baseline; gap: 6px; }
.plrate b { font-size: 26px; font-weight: 800; line-height: 1; color: var(--c); font-variant-numeric: tabular-nums; }
.plrate small { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.plline { font-size: 13px; font-weight: 600; color: var(--muted); }
.plcard .bform i { width: 20px; height: 20px; border-radius: 6px; font-size: 11px; }
.plgo { margin-top: 4px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); transition: color 0.2s ease; }
.plgo i { width: 7px; height: 7px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.2s ease; }
.plcard:hover .plgo { color: var(--c); } .plcard:hover .plgo i { transform: translateX(4px) rotate(45deg); }

/* --- окно профиля */
html.pp-open { overflow: hidden; }
dialog.pp { --c: var(--green); margin: auto; padding: 0; width: calc(100% - 28px); max-width: 860px; max-height: calc(100vh / var(--zoom, 1) - 40px); max-height: calc(100dvh / var(--zoom, 1) - 40px);
  border: 1px solid rgba(0, 231, 1, 0.45); border-radius: 22px; background: #06141d; color: var(--white); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75), 0 0 60px rgba(0, 231, 1, 0.16); }
dialog.pp[open] { animation: pp-open 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.1) both; }
dialog.pp::backdrop { background: rgba(2, 10, 15, 0.84); animation: pp-fade 0.3s ease both; }
@keyframes pp-open { from { opacity: 0; transform: translateY(26px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes pp-fade { from { opacity: 0; } to { opacity: 1; } }
.ppin { position: relative; padding: 26px 28px 24px; overflow-x: clip; }
.ppin > *:not(.ppbg) { position: relative; }
.ppbg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ppbg .grid { position: absolute; inset: -40px; background-image: linear-gradient(rgba(47, 69, 83, 0.35) 1px, transparent 1px), linear-gradient(90deg, rgba(47, 69, 83, 0.35) 1px, transparent 1px);
  background-size: 34px 34px; -webkit-mask-image: radial-gradient(ellipse at 50% 0, #000, transparent 72%); mask-image: radial-gradient(ellipse at 50% 0, #000, transparent 72%); animation: pp-grid 14s linear infinite; }
.ppbg .scan { position: absolute; left: 0; right: 0; top: 0; height: 120px; background: linear-gradient(rgba(0, 231, 1, 0), rgba(0, 231, 1, 0.09) 70%, rgba(0, 231, 1, 0.3)); animation: pp-scan 5.5s linear infinite; }
.ppbg .glow { position: absolute; left: -80px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 231, 1, 0.2), transparent 68%); animation: pp-breathe 5s ease-in-out infinite; }
@keyframes pp-grid { to { transform: translateY(34px); } }
@keyframes pp-scan { from { transform: translateY(-140px); opacity: 1; } 80% { opacity: 1; } to { transform: translateY(1500px); opacity: 0; } }
@keyframes pp-breathe { 50% { opacity: 0.45; transform: scale(1.12); } }
/* крестик едет вместе с прокруткой: окно длинное, закрыть его можно с любого места */
.ppx { position: sticky !important; display: block; top: 14px; z-index: 3; width: 38px; height: 38px; margin: 0 0 -38px auto; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: rgba(15, 33, 46, 0.9); cursor: pointer; transition: transform 0.2s ease, border-color 0.2s ease; }
.ppx::before, .ppx::after { content: ""; position: absolute; left: 10px; right: 10px; top: 17px; height: 2px; border-radius: 2px; background: var(--white); transform: rotate(45deg); }
.ppx::after { transform: rotate(-45deg); }
.ppx:hover { transform: rotate(90deg); border-color: var(--green); }
.ppload { position: relative; padding: 70px 20px; display: grid; justify-items: center; gap: 16px; font-size: 15px; font-weight: 700; color: var(--muted); }
.ppload i { width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--green); animation: pp-spin 0.8s linear infinite; }
@keyframes pp-spin { to { transform: rotate(360deg); } }
.ppnone { padding: 18px; border-radius: 14px; background: rgba(15, 33, 46, 0.7); font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--muted); text-align: center; }
.ppnone.big { position: relative; margin: 26px 28px; padding: 34px 18px; font-size: 16px; }
.ppin .ppnone.big { margin: 22px 0 0; }

/* шапка: фото в двух вращающихся орбитах, имя, рейтинг */
.pphero { display: flex; align-items: center; gap: 22px; padding-right: 48px; }
.ppface { position: relative; flex: 0 0 124px; width: 124px; height: 124px; display: grid; place-items: center; animation: pp-pop 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.3) 0.1s both; }
.ppface img, .ppface u { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; text-decoration: none; font-size: 42px; font-weight: 800; color: #05080a;
  background: radial-gradient(circle at 32% 28%, #7dff7e, #00b801 60%, #006b01); }
.ppface .orbit { position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--green); border-right-color: rgba(0, 231, 1, 0.35); animation: pp-spin 3.2s linear infinite; }
.ppface .orbit.b { inset: 7px; border-top-color: transparent; border-right-color: transparent; border-bottom-color: #2aabee; border-left-color: rgba(42, 171, 238, 0.35); animation-duration: 4.6s; animation-direction: reverse; }
@keyframes pp-pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
.ppid { flex: 1 1 auto; min-width: 0; animation: pp-rise 0.5s ease 0.18s both; }
.ppid .label { font-size: 13px; }
.ppid h3 { margin-top: 4px; font-size: 34px; font-weight: 800; line-height: 1.1; letter-spacing: 0.02em; text-transform: uppercase; overflow-wrap: break-word; }      /* имя — данные: переносится, только если само не влезает */
.ppchips { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.ppchips span { padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; color: var(--muted); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line); }
.ppchips .rank { color: #f5c542; box-shadow: inset 0 0 0 1px rgba(245, 197, 66, 0.6); }
.ppchips .win { color: var(--green); box-shadow: inset 0 0 0 1px rgba(0, 231, 1, 0.5); } .ppchips .loss { color: var(--red); box-shadow: inset 0 0 0 1px rgba(237, 65, 99, 0.5); }
.ppchips .sample.solid { color: #2aabee; box-shadow: inset 0 0 0 1px rgba(42, 171, 238, 0.5); }
.pprating { flex: 0 0 auto; min-width: 150px; padding: 14px 18px; border-radius: 16px; background: rgba(15, 33, 46, 0.82); box-shadow: inset 0 0 0 1px var(--line); text-align: right; animation: pp-rise 0.5s ease 0.26s both; }
.pprating small { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; color: var(--muted); }
.pprating b { display: block; font-size: 46px; font-weight: 800; line-height: 1.05; color: var(--green); font-variant-numeric: tabular-nums; }
.pprating em { display: block; font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); }
.pprating em.plus { color: var(--green); } .pprating em.minus { color: var(--red); }
.pprating span { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--muted); }
@keyframes pp-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* три кольца: победы, партии, шары */
.ppgauges { margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; animation: pp-rise 0.5s ease 0.32s both; }
.ppgauge { position: relative; display: grid; justify-items: center; padding: 18px 10px 14px; border-radius: 16px; background: rgba(15, 33, 46, 0.82); box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.ppgauge.g { --c: var(--green); } .ppgauge.b { --c: #2aabee; } .ppgauge.y { --c: #f5c542; }
.ppgauge .plring { position: relative; inset: auto; width: 112px; height: 112px; }
.ppgauge .plring .t { stroke-width: 6; } .ppgauge .plring .v { stroke-width: 6; transition-duration: 1.6s; }
.ppgin { position: absolute; left: 0; right: 0; top: 18px; height: 112px; display: grid; place-items: center; }
.ppgin b { font-size: 28px; font-weight: 800; color: var(--c); font-variant-numeric: tabular-nums; }
.ppgauge span { margin-top: 10px; font-size: 13px; font-weight: 800; }
.ppgauge small { margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--muted); }

/* доверительный интервал доли побед */
.ppconf { margin-top: 12px; padding: 16px 18px; border-radius: 16px; background: rgba(15, 33, 46, 0.82); box-shadow: inset 0 0 0 1px var(--line); animation: pp-rise 0.5s ease 0.38s both; }
.ppchead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 800; }
.ppchead b { font-size: 18px; color: #2aabee; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ppctrack { position: relative; height: 12px; margin-top: 12px; border-radius: 999px; background: var(--bg-dark); box-shadow: inset 0 0 0 1px var(--line); }
.ppctrack .band { position: absolute; top: 0; bottom: 0; left: 50%; width: 0; border-radius: 999px; background: linear-gradient(90deg, rgba(42, 171, 238, 0.35), #2aabee, rgba(42, 171, 238, 0.35)); transition: left 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ppctrack .dot { position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--green); border: 3px solid #06141d; transition: left 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ppcscale { margin-top: 6px; display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: var(--muted); }
.ppconf p { margin-top: 8px; font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--muted); }

/* фигура профиля и график рейтинга */
.ppduo { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; animation: pp-rise 0.5s ease 0.44s both; }
.ppbox { padding: 16px 16px 14px; border-radius: 16px; background: rgba(15, 33, 46, 0.82); box-shadow: inset 0 0 0 1px var(--line); }
.pptitle { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.pptitle.sec { margin: 22px 0 10px; }
.ppradar { display: block; width: 100%; height: auto; margin-top: 6px; }
.ppradar .grid polygon { fill: none; stroke: var(--line); stroke-width: 1; }
.ppradar .grid line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 3; }
.ppradar .shape { transform-box: view-box; transform-origin: 150px 118px; animation: pp-radar 1.1s cubic-bezier(0.2, 0.9, 0.3, 1.15) 0.55s both; }
.ppradar .shape polygon { fill: rgba(0, 231, 1, 0.2); stroke: var(--green); stroke-width: 2; stroke-linejoin: round; }
.ppradar .shape circle { fill: var(--green); }
.ppradar text { fill: var(--muted); font-size: 11px; font-weight: 700; }
.ppradar text tspan { fill: var(--white); font-size: 12px; font-weight: 800; }
@keyframes pp-radar { from { opacity: 0; transform: scale(0.1) rotate(-40deg); } to { opacity: 1; transform: none; } }
.ppchart { display: block; width: 100%; height: auto; margin-top: 10px; overflow: visible; }
.ppchart .g { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.ppchart .area { fill: url(#ppfill); animation: pp-fade 0.9s ease 1.3s both; }
.ppchart .line { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: pp-draw 1.5s cubic-bezier(0.3, 0.7, 0.2, 1) 0.6s forwards; }
.ppchart circle { fill: #06141d; stroke: var(--green); stroke-width: 2; animation: pp-fade 0.4s ease 1.6s both; }
.ppchart circle.down { stroke: var(--red); }
.ppchart circle.now { fill: var(--green); }
.ppchart .ping { fill: none; stroke: var(--green); transform-box: fill-box; transform-origin: center; animation: pp-ping 2s ease-out 2s infinite; opacity: 0; }
@keyframes pp-draw { to { stroke-dashoffset: 0; } }
@keyframes pp-ping { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(3.4); } }
.ppaxis { margin-top: 8px; display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.ppaxis b { color: var(--green); }

/* плитки */
.pptiles { margin-top: 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pptile { padding: 14px 8px 12px; border-radius: 14px; background: rgba(15, 33, 46, 0.82); box-shadow: inset 0 0 0 1px var(--line); text-align: center; animation: pp-rise 0.45s ease both; animation-delay: 0.5s; }
.pptile:nth-child(4n+2) { animation-delay: 0.55s; } .pptile:nth-child(4n+3) { animation-delay: 0.6s; } .pptile:nth-child(4n) { animation-delay: 0.65s; }
.pptile b { display: block; font-size: 24px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pptile b.plus { color: var(--green); } .pptile b.minus { color: var(--red); }
.pptile span { display: block; margin-top: 5px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; line-height: 1.3; text-transform: uppercase; color: var(--muted); }

/* разбор игры: выводы, ход последних партий */
.ppbasis { margin: -4px 0 10px; font-size: 12px; font-weight: 600; color: var(--muted); }
.ppnotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ppnote { --c: #2aabee; position: relative; display: flex; gap: 12px; padding: 14px 14px 14px 16px; border-radius: 14px; background: rgba(15, 33, 46, 0.82); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; animation: pp-rise 0.45s ease both; animation-delay: 0.5s; }
.ppnote:nth-child(2) { animation-delay: 0.58s; } .ppnote:nth-child(3) { animation-delay: 0.66s; } .ppnote:nth-child(4) { animation-delay: 0.74s; } .ppnote:nth-child(n+5) { animation-delay: 0.82s; }
.ppnote.plus { --c: var(--green); } .ppnote.minus { --c: var(--red); }
.ppnote::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); }
.ppnote i { flex: 0 0 10px; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--c); animation: pp-blink 2.4s ease-in-out infinite; }
.ppnote b { display: block; font-size: 15px; font-weight: 800; color: var(--c); }
.ppnote span { display: block; margin-top: 4px; font-size: 13px; font-weight: 500; line-height: 1.45; color: var(--muted); }
@keyframes pp-blink { 50% { opacity: 0.35; transform: scale(0.8); } }
.ppsub { margin: 16px 0 8px; font-size: 13px; font-weight: 800; }
.ppsub small { margin-left: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.ppflows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ppflow { --c: var(--green); padding: 12px 12px 10px; border-radius: 14px; background: rgba(15, 33, 46, 0.82); box-shadow: inset 0 0 0 1px var(--line); animation: pp-rise 0.45s ease 0.6s both; }
.ppflow.loss { --c: var(--red); }
.ppfhead { display: flex; align-items: baseline; gap: 8px; }
.ppfhead b { font-size: 18px; font-weight: 800; color: var(--c); font-variant-numeric: tabular-nums; }
.ppfhead span { min-width: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ppflow svg { display: block; width: 100%; height: auto; margin-top: 6px; overflow: visible; }
.ppflow .zero { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.ppflow .line { fill: none; stroke: var(--c); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: pp-draw 1.3s cubic-bezier(0.3, 0.7, 0.2, 1) 0.9s forwards; }
.ppflow circle { fill: var(--c); animation: pp-fade 0.3s ease 2.1s both; }
.ppffoot { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 6px; font-size: 11px; font-weight: 600; color: var(--muted); }
/* пометка словами («отыгрался, уступая 4 шара»): на узкой карточке уходит под дату и переносится по словам */
.ppffoot i { font-style: normal; padding: 2px 8px; border-radius: 10px; font-weight: 800; }
.ppffoot i.plus { color: var(--green); background: rgba(0, 231, 1, 0.12); } .ppffoot i.minus { color: var(--red); background: rgba(237, 65, 99, 0.12); }
.pptiles.flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* соперники и матчи */
.pprivals, .pphist { display: grid; gap: 8px; }
.pprival { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 14px; background: rgba(15, 33, 46, 0.82); box-shadow: inset 0 0 0 1px var(--line); }
.pprival .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pprival .who img, .pprival .who u { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; text-decoration: none; font-size: 16px; font-weight: 800; color: #05080a; background: radial-gradient(circle at 32% 28%, #8fd4ff, #2aabee 60%, #0b5f8f); }
.pprival .who b { font-size: 15px; font-weight: 800; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pprival .bar { display: flex; gap: 3px; height: 10px; }
.pprival .bar i { width: 0; border-radius: 999px; transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s; }
.pprival .bar .a { background: var(--green); } .pprival .bar .b { background: var(--red); opacity: 0.75; }
.pprival .sc { text-align: right; }
.pprival .sc b { display: block; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pprival .sc small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.pprow { --c: var(--muted); position: relative; display: grid; grid-template-columns: 86px minmax(0, 1fr) auto 44px 96px; align-items: center; gap: 12px; padding: 10px 14px 10px 18px; border-radius: 12px; background: rgba(15, 33, 46, 0.82); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; font-size: 14px; }
.pprow::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.pprow.win { --c: var(--green); } .pprow.loss { --c: var(--red); }
.pprow > span { font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.pprow b { min-width: 0; font-weight: 800; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pprow b small { display: block; font-size: 11px; font-weight: 600; text-transform: none; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.pprow em { font-style: normal; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pprow u { text-decoration: none; text-align: right; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pprow u.plus { color: var(--green); } .pprow u.minus { color: var(--red); }
.pprow i { font-style: normal; text-align: right; font-size: 12px; font-weight: 800; color: var(--c); }
.ppfoot { margin-top: 18px; font-size: 12px; font-weight: 500; line-height: 1.5; color: var(--muted); }

@media (max-width: 700px) {
  .pl { padding: 16px; }
  .plnote { display: none; }
  .plgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .plcard { padding: 16px 8px 12px; }
  .plface { width: 82px; height: 82px; } .plface img, .plface u { width: 64px; height: 64px; font-size: 26px; }
  .plname { font-size: 15px; } .plrate b { font-size: 22px; }
  dialog.pp { width: calc(100% - 12px); max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); border-radius: 18px; }
  .ppin { padding: 18px 14px 18px; }
  .ppx { top: 8px; }
  .pphero { flex-wrap: wrap; gap: 12px 14px; padding-right: 0; }
  .ppface { flex-basis: 92px; width: 92px; height: 92px; } .ppface img, .ppface u { width: 70px; height: 70px; font-size: 30px; }
  .ppid { flex: 1 1 0; padding-right: 40px; } .ppid h3 { font-size: 24px; }
  .pprating { flex: 1 1 100%; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 14px; text-align: left; padding: 12px 16px; }
  .pprating small { grid-column: 1 / -1; } .pprating b { grid-row: 2 / 4; font-size: 40px; } .pprating em, .pprating span { text-align: right; margin: 0; }
  .ppgauges { gap: 6px; margin-top: 14px; }
  .ppgauge { padding: 12px 4px 10px; } .ppgauge .plring { width: 78px; height: 78px; } .ppgin { top: 12px; height: 78px; } .ppgin b { font-size: 20px; }
  .ppgauge span { font-size: 11px; line-height: 1.25; } .ppgauge small { font-size: 11px; }
  .ppduo { grid-template-columns: minmax(0, 1fr); }
  .pptiles, .pptiles.flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ppnotes { grid-template-columns: minmax(0, 1fr); }
  .ppflows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ppsub small { display: block; margin: 2px 0 0; }
  .ppfhead { flex-wrap: wrap; gap: 0 8px; } .ppfhead span { flex: 1 1 100%; }
  .pprival { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; } .pprival .bar { grid-column: 1 / -1; grid-row: 2; }
  .pprow { grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 10px; padding: 10px 12px 10px 16px; }
  .pprow > span { grid-column: 1 / -1; font-size: 12px; } .pprow i { display: none; } .pprow u { min-width: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .plcard, dialog.pp[open], dialog.pp::backdrop, .ppbg i, .ppface, .ppface .orbit, .ppid, .pprating, .ppgauges, .ppconf, .ppduo, .pptile, .ppradar .shape, .ppchart .area, .ppchart circle, .ppchart .ping, .ppload i { animation: none !important; }
  .ppchart .line, .ppflow .line { animation: none !important; stroke-dashoffset: 0; }
  .ppnote, .ppnote i, .ppflow, .ppflow circle { animation: none !important; }
  .ppchart .ping { display: none; }
  .plring .v, .ppctrack i, .pprival .bar i { transition: none; }
}

/* --- разбор матча: блок «Последний матч» под шапкой профиля и раскрывающиеся строки истории */
.pplast { --c: var(--muted); position: relative; margin-top: 18px; padding: 16px 18px 16px 20px; border-radius: 16px; background: rgba(15, 33, 46, 0.82); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; animation: pp-rise 0.45s ease both; animation-delay: 0.2s; }
.pplast.win { --c: var(--green); } .pplast.loss { --c: var(--red); }
.pplast::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.pplhead { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.pplhead > div:first-child { min-width: 0; }
.pplhead b { display: block; margin-top: 6px; font-size: 18px; font-weight: 800; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pplhead small { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--muted); }
.pplscore { flex: 0 0 auto; display: grid; justify-items: end; gap: 2px; }
.pplscore em { font-style: normal; font-size: 26px; font-weight: 800; line-height: 1; color: var(--c); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pplscore i { font-style: normal; font-size: 12px; font-weight: 800; color: var(--c); }
.pplscore u { text-decoration: none; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--muted); }
.pplscore u.plus { color: var(--green); } .pplscore u.minus { color: var(--red); }
.pplscore u::after { content: " к рейтингу"; font-weight: 600; color: var(--muted); }
.ppm { margin-top: 12px; }
.ppmf { display: flex; flex-wrap: wrap; gap: 6px; }
.ppmf span { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 8px; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line); }
.ppmf span.win { color: var(--green); box-shadow: inset 0 0 0 1px rgba(0, 231, 1, 0.45); } .ppmf span.loss { color: var(--red); box-shadow: inset 0 0 0 1px rgba(237, 65, 99, 0.45); }
.ppmf small { font-size: 10px; font-weight: 700; color: var(--muted); }
.ppml { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.ppml li { --c: #2aabee; position: relative; padding-left: 16px; font-size: 13px; font-weight: 500; line-height: 1.45; color: var(--white); }
.ppml li.plus { --c: var(--green); } .ppml li.minus { --c: var(--red); }
.ppml li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.ppmore > summary { list-style: none; cursor: pointer; padding-right: 34px; }
.ppmore > summary::-webkit-details-marker { display: none; }
.ppmore > summary::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s ease; }
.ppmore[open] > summary::after { transform: translateY(4px) rotate(-135deg); }
.ppmore > .ppm { margin: 6px 0 4px; padding: 12px 14px; border-radius: 12px; background: rgba(7, 29, 42, 0.7); box-shadow: inset 0 0 0 1px var(--line); animation: pp-rise 0.3s ease both; }
@media (max-width: 700px) {
  .pplast { padding: 14px 14px 14px 18px; }
  .pplhead b { font-size: 16px; } .pplscore em { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .pplast, .ppmore > .ppm { animation: none !important; } .ppmore > summary::after { transition: none !important; } }
