/* MyDoramy — вкладки страницы дорамы (.tp*): актёры-программка, кинозал, альбом кадров,
   «знаете ли вы», наградной лист, «что смотреть дальше», письма зрителей.
   Своя вёрстка, не KinoLumo. Токены — из dy.css. Карточка отзыва (.tp-lt) живёт и на обзоре. */

.tp { display: grid; gap: 30px; color: var(--fg); min-width: 0; }
.tp [hidden], .tp-lb[hidden] { display: none !important; }
:where(.tp, .tp-lb, .tp-letters) a { color: inherit; text-decoration: none; }
:where(.tp, .tp-lb, .tp-letters) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:where(.tp, .tp-letters) :is(h1, h2, h3, p, ul, ol, dl, dd) { margin: 0; padding: 0; }
:where(.tp) :is(ul, ol) { list-style: none; }
.tp .is-hidden { display: none !important; }

@keyframes tpIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── заголовок вкладки ── */
.tp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 40px; flex-wrap: wrap; }
.tp-head__l { min-width: 0; max-width: 820px; }
.tp-head h1 { font: 600 clamp(34px, 4.2vw, 56px)/1.02 var(--f-d); letter-spacing: -.01em; margin: 2px 0 10px; overflow-wrap: anywhere; }
.tp-head__sub { color: var(--fg-2); font-size: 15px; line-height: 1.55; }
.tp-head__intro { margin-top: 12px !important; color: var(--fg-2); font-size: 15px; line-height: 1.7; max-width: 760px; }
.tp-num { display: grid; justify-items: end; line-height: 1; padding-bottom: 4px; }
.tp-num b { font: 600 clamp(52px, 5.4vw, 80px)/.9 var(--f-d); font-variant-numeric: lining-nums; }
.tp-num span { margin-top: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); }
.tp-num.is-jade b { color: var(--jade); }
.tp-h2 { font: 600 clamp(26px, 2.6vw, 34px)/1.05 var(--f-d); }
.tp-h2 sup { font: 600 13px var(--f-b); color: var(--fg-3); vertical-align: super; margin-left: 2px; }
.tp-sec { display: grid; gap: 20px; min-width: 0; }

/* ── отбор: подчёркнутые слова и «пилюля» ── */
.tp-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; }
.tp-ink { display: flex; gap: 4px 26px; flex-wrap: wrap; border-bottom: 1px solid var(--line); min-width: 0; }
.tp-ink button { position: relative; display: inline-flex; align-items: baseline; gap: 7px; padding: 10px 0 12px; font-size: 15px; font-weight: 500; color: var(--fg-2); white-space: nowrap; transition: color .2s; }
.tp-ink button small { font-size: 12px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.tp-ink button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.tp-ink button:hover { color: var(--fg); }
.tp-ink button.is-on { color: var(--fg); font-weight: 600; }
.tp-ink button.is-on::after { transform: none; }
.tp-ink button.is-on small { color: var(--accent); }
.tp-pill { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--chip); border: 1px solid var(--line); }
.tp-pill button { height: 34px; padding: 0 16px; border-radius: 999px; font-size: 13px; color: var(--fg-2); font-weight: 500; transition: background-color .2s, color .2s; }
.tp-pill button.is-on { background: var(--fg); color: var(--bg); font-weight: 600; }

.tp-link { font-size: 13.5px; font-weight: 600; color: var(--accent); }
.tp-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.tp-link--danger { color: #ff7b8a; }
.tp-ib { border: 1px solid var(--line-2); color: var(--fg); }

.tp-more { display: grid; justify-items: center; gap: 12px; margin-top: 18px; font-size: 13px; color: var(--fg-3); }
.tp-more__bar { width: min(260px, 70%); height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.tp-more__bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .4s var(--ease); }
.tp-more__btn { height: 46px; border: 1px solid var(--line-2); color: var(--fg); }
.tp-more__btn:hover { border-color: var(--fg-3); transform: translateY(-2px); }

.tp-empty { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 64px 20px; border-radius: 28px; border: 1px dashed var(--line-2); color: var(--fg-2); font: 600 22px/1.2 var(--f-d); }
.tp-empty__moon { width: 56px; height: 56px; border-radius: 50%; box-shadow: inset -12px -5px 0 0 var(--accent); transform: rotate(-20deg); }

/* ── актёры: программка ── */
.tp-bill { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 6px 28px; }
.tp-bill__i { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); animation: tpIn .45s var(--ease) both; animation-delay: var(--d, 0ms); }
.tp-bill__ph { position: relative; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--surface-2); font: 600 28px var(--f-d); color: var(--fg-3); box-shadow: 0 0 0 1px var(--line-2); transition: box-shadow .3s; }
.tp-bill__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
a.tp-bill__i:hover .tp-bill__ph { box-shadow: 0 0 0 2px var(--accent); }
.tp-bill__t { display: grid; gap: 3px; min-width: 0; }
.tp-bill__t b { font: 600 21px/1.15 var(--f-d); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .2s; }
a.tp-bill__i:hover .tp-bill__t b { color: var(--accent); }
.tp-bill__t > span { font-size: 13.5px; color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-bill__t small { color: var(--fg-3); font-size: 12px; }
.tp-bill__t em { font: italic 600 16px var(--f-d); color: var(--fg); }

.tp-crew { columns: 2 340px; column-gap: 44px; }
.tp-dept { break-inside: avoid; display: grid; gap: 8px; padding: 0 0 26px; }
.tp-dept h3 { font: italic 600 22px/1.1 var(--f-d); color: var(--accent); margin: 0 0 4px; }
.tp-dept h3 small { font: 600 12px var(--f-b); color: var(--fg-3); font-style: normal; margin-left: 4px; }
.tp-dept ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.tp-dept__p { display: flex; align-items: center; gap: 12px; padding: 6px 0; min-width: 0; font-size: 14.5px; }
.tp-dept__p b { font-weight: 600; white-space: nowrap; }
.tp-dept__p > i { flex: 1; min-width: 16px; border-bottom: 1px dotted var(--line-2); transform: translateY(4px); }
.tp-dept__p > span:last-child { color: var(--fg-3); font-size: 13px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46%; }
a.tp-dept__p:hover b { color: var(--accent); }
.tp-dept__ava { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--surface-2); font: 600 14px var(--f-d); color: var(--fg-3); }
.tp-dept__ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tp-dept .tp-link { justify-self: start; margin-top: 4px; }

/* ── видео: кинозал ── */
.tp-toggle { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; color: var(--fg-2); font-weight: 500; }
.tp-toggle__k { position: relative; width: 40px; height: 22px; border-radius: 999px; background: var(--line-2); transition: background-color .25s; }
.tp-toggle__k::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--fg); transition: transform .25s var(--ease); }
.tp-toggle.is-on { color: var(--fg); }
.tp-toggle.is-on .tp-toggle__k { background: var(--accent); }
.tp-toggle.is-on .tp-toggle__k::after { transform: translateX(18px); background: var(--accent-ink); }

.tp-hall { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.tp-hall__main { display: grid; gap: 16px; min-width: 0; }
.tp-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 26px; overflow: hidden; background: #050407; box-shadow: 0 0 0 1px var(--line-2), 0 50px 90px -40px color-mix(in srgb, var(--accent) 45%, transparent); isolation: isolate; }
.tp-screen__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tp-screen__shade { position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 50%, transparent 30%, rgba(5, 4, 8, .7)), linear-gradient(180deg, transparent 55%, rgba(5, 4, 8, .85)); }
.tp-screen__tag { position: absolute; left: 22px; top: 20px; display: inline-flex; gap: 10px; align-items: center; padding: 6px 12px; border-radius: 999px; background: rgba(5, 4, 8, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: rgba(255, 255, 255, .75); font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.tp-screen__tag em { font-style: normal; color: #fff; text-transform: uppercase; letter-spacing: .12em; }
.tp-screen__play { position: absolute; left: 50%; top: 50%; width: 86px; height: 86px; margin: -43px 0 0 -43px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: #17131F !important; font-size: 26px; box-shadow: 0 0 0 10px rgba(255, 255, 255, .14); transition: transform .3s var(--ease), box-shadow .3s; }
.tp-screen__play i { margin-left: 5px; }
.tp-screen__play:hover { transform: scale(1.06); box-shadow: 0 0 0 16px rgba(255, 255, 255, .12); }
.tp-screen__t { position: absolute; left: 24px; right: 24px; bottom: 20px; font: 600 clamp(22px, 2.4vw, 32px)/1.1 var(--f-d); color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.tp-screen.is-playing > :not(iframe) { display: none; }
.tp-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tp-hall__info { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tp-hall__info > div { display: grid; gap: 2px; min-width: 0; }
.tp-hall__info b { font-size: 16px; font-weight: 600; }
.tp-hall__info span { font-size: 13px; color: var(--fg-3); }

.tp-prog { display: grid; gap: 4px; max-height: 620px; overflow-y: auto; padding-right: 6px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.tp-prog__cap { padding: 0 0 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); }
.tp-prog__cap small { color: var(--accent); font-size: 12px; margin-left: 6px; }
.tp-prog__i { width: 100%; display: grid; grid-template-columns: 30px 128px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; border-radius: 16px; text-align: left; transition: background-color .2s; }
.tp-prog__i:hover { background: var(--chip); }
.tp-prog__i.is-on { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.tp-prog__n { font: italic 600 20px var(--f-d); color: var(--fg-3); text-align: center; }
.tp-prog__i.is-on .tp-prog__n { color: var(--accent); }
.tp-prog__th { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.tp-prog__th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tp-prog__th i { position: absolute; right: 6px; bottom: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(5, 4, 8, .6); color: #fff; font-size: 8px; }
.tp-prog__b { display: grid; gap: 2px; min-width: 0; }
.tp-prog__b small { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.tp-prog__b b { font-size: 13.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tp-prog__b span { font-size: 12px; color: var(--fg-3); }

/* ── кадры: альбом ── */
.tp-seas { display: flex; gap: 6px; flex-wrap: wrap; }
.tp-seas button { display: inline-flex; align-items: baseline; gap: 5px; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; color: var(--fg-2); }
.tp-seas button small { font-size: 11px; color: var(--fg-3); font-weight: 500; }
.tp-seas button.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.tp-seas button.is-on small { color: var(--bg); opacity: .6; }
.tp-seas button.is-empty { opacity: .35; pointer-events: none; }
.tp-album { columns: 3 300px; column-gap: 14px; }
.tp-album.is-poster { columns: 5 180px; }
.tp-album__i { position: relative; display: block; break-inside: avoid; margin-bottom: 14px; border-radius: 18px; overflow: hidden; background: var(--surface); animation: tpIn .45s var(--ease) both; }
.tp-album__i img { display: block; width: 100%; height: auto; transition: transform .6s var(--ease), filter .4s; }
.tp-album__i:hover img { transform: scale(1.04); }
.tp-album__tag { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(5, 4, 8, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s var(--ease); }
.tp-album__i:hover .tp-album__tag, .tp-album__i:focus-visible .tp-album__tag { opacity: 1; transform: none; }

.tp-lb { position: fixed; inset: 0; z-index: 150; display: grid; grid-template-rows: auto 1fr; background: rgba(8, 6, 12, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; }
.tp-lb__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px clamp(16px, 3vw, 32px); }
.tp-lb__pos { font: 600 22px var(--f-d); }
.tp-lb__pos em { font: 600 12px var(--f-b); font-style: normal; letter-spacing: .1em; margin-left: 14px; color: rgba(255, 255, 255, .6); }
.tp-lb__btns { display: flex; gap: 6px; }
.tp-lb__btns .ib { color: #fff; border: 1px solid rgba(255, 255, 255, .18); }
.tp-lb__stage { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; min-height: 0; padding: 0 clamp(8px, 2vw, 24px) 24px; }
.tp-lb__img { display: grid; place-items: center; min-height: 0; height: 100%; }
.tp-lb__img img { max-width: 100%; max-height: calc(100vh - 120px); border-radius: 14px; object-fit: contain; }
.tp-lb__nav { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255, 255, 255, .18) !important; }
.tp-lb__nav:hover { background: rgba(255, 255, 255, .1) !important; }
.tp-lb__nav.is-off { opacity: .2; pointer-events: none; }
.tp-lb__all { height: 42px; padding: 0 16px; border-radius: 21px; display: inline-flex; align-items: center; gap: 8px; font: 600 13px var(--f-b); color: #fff; border: 1px solid rgba(255, 255, 255, .18); white-space: nowrap; }
.tp-lb__all:hover { background: rgba(255, 255, 255, .1); }

/* ── факты: «знаете ли вы» ── */
.tp-fl { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 18px; }
.tp-fl__i { position: relative; display: grid; align-content: start; gap: 14px; padding: 26px 28px 28px 92px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); animation: tpIn .45s var(--ease) both; animation-delay: var(--d, 0ms); scroll-margin-top: 120px; }
.tp-fl__n { position: absolute; left: 24px; top: 18px; font: italic 600 52px/1 var(--f-d); color: var(--gold); opacity: .85; }
.tp-fl__i p { font-size: 15.5px; line-height: 1.7; color: var(--fg-2); }
.tp-fl__img { display: block; aspect-ratio: 2.39 / 1; border-radius: 14px; overflow: hidden; background: #050407; }
.tp-fl__img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── награды: наградной лист ── */
.tp-tri { display: flex; gap: 0; margin: 0; }
.tp-tri div { display: grid; justify-items: end; padding: 0 22px; border-left: 1px solid var(--line-2); }
.tp-tri div:first-child { border-left: 0; }
.tp-tri dd { margin: 0; font: 600 clamp(40px, 4vw, 60px)/.95 var(--f-d); font-variant-numeric: lining-nums; }
.tp-tri dt { margin-top: 6px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.tp-tri .is-gold dd { color: var(--gold); }
.tp-aw { display: grid; gap: 18px; }
.tp-aw__c { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 28px; padding: 26px 28px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); animation: tpIn .45s var(--ease) both; animation-delay: var(--d, 0ms); }
.tp-aw__head { display: flex; gap: 16px; align-items: flex-start; }
.tp-medal { flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--chip); color: var(--fg-2); font-size: 20px; box-shadow: inset 0 0 0 1px var(--line-2); }
.tp-medal.is-won { background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--gold) 70%, #fff), var(--gold) 60%); color: #3a2506; box-shadow: 0 10px 30px -12px var(--gold); }
.tp-aw__head h2 { font: 600 24px/1.15 var(--f-d); }
.tp-aw__head p { margin-top: 6px; font-size: 13px; color: var(--fg-3); line-height: 1.5; }
.tp-aw__head p b { color: var(--gold); font-weight: 600; }
.tp-aw__list { display: grid; }
.tp-aw__list li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line); }
.tp-aw__list li:first-child { border-top: 0; padding-top: 0; }
.tp-aw__y { font: 600 20px var(--f-d); color: var(--fg-2); font-variant-numeric: lining-nums; }
.tp-aw__cat { font-size: 14.5px; line-height: 1.45; }
.tp-aw__cat small { display: block; font-size: 12.5px; color: var(--fg-3); }
.tp-aw__st { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); white-space: nowrap; }
.tp-aw__list li.is-won .tp-aw__st { color: var(--gold); }
.tp-aw__st i { margin-right: 6px; }

/* ── похожие ── */
.tp-recgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 30px 18px; }
.tp-rc { display: grid; gap: 10px; align-content: start; min-width: 0; animation: tpIn .45s var(--ease) both; }
.tp-rc__b { display: grid; gap: 3px; }
.tp-rc__t { font: 600 18px/1.2 var(--f-d); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-rc__b:hover .tp-rc__t { color: var(--accent); }
.tp-rc__m { font-size: 12.5px; color: var(--fg-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-rc__m em { font-style: normal; font-weight: 600; margin-right: 8px; color: var(--fg-2); }
.tp-rc__m em.is-g { color: var(--jade); }
.tp-rc__m em.is-y { color: var(--gold); }

/* ── отзывы: письмо и письма ── */
.tp-rev__in { display: grid; gap: 30px; }
.tp-rev__grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 36px; align-items: start; }
.tp-rev__col { display: grid; gap: 18px; min-width: 0; }
.tp-letter { position: sticky; top: 96px; display: grid; gap: 18px; padding: 26px; border-radius: 28px; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface) 60%); border: 1px solid var(--line); overflow: hidden; }
.tp-letter__t { font: 600 26px/1.1 var(--f-d); }
.tp-letter__g { display: grid; gap: 10px; }
.tp-letter__lbl { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.tp-letter__lbl b { letter-spacing: 0; text-transform: none; font-size: 13px; color: var(--fg-2); font-weight: 600; }
.tp-letter__lbl b.is-g { color: var(--jade); }
.tp-letter__lbl b.is-y { color: var(--gold); }
.tp-letter__lbl b.is-r { color: #ff7b8a; }
.tp-pebbles { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
.tp-pebbles button { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font: 600 15px var(--f-d); color: var(--fg-3); background: var(--chip); box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color .15s, color .15s, transform .2s var(--ease); }
.tp-pebbles button.is-hover { transform: translateY(-3px); }
.tp-pebbles button.is-on { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.tp-pebbles[data-tone="g"] button.is-on { background: var(--jade); color: #06231c; }
.tp-pebbles[data-tone="y"] button.is-on { background: var(--gold); color: #3a2506; }
.tp-letter textarea { width: 100%; min-height: 150px; resize: vertical; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--bg) 60%, transparent); color: var(--fg); font: 15px/1.6 var(--f-b); outline: 0; transition: border-color .2s; }
.tp-letter textarea:focus { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.tp-letter textarea::placeholder { color: var(--fg-3); }
.tp-letter__cnt { justify-self: end; font-size: 12px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.tp-letter__cnt.is-ok { color: var(--jade); }
.tp-check { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--fg-2); cursor: pointer; }
.tp-check input { position: absolute; opacity: 0; pointer-events: none; }
.tp-check__box { width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--line-2); display: grid; place-items: center; transition: background-color .2s; }
.tp-check input:checked + .tp-check__box { background: var(--accent); box-shadow: none; }
.tp-check input:checked + .tp-check__box::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--accent-ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.tp-check input:focus-visible + .tp-check__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.tp-letter__row { display: flex; align-items: center; gap: 16px; }
.tp-letter__go { height: 48px; flex: 1; }
.tp-letter__go:not(.is-ok) { opacity: .65; }
.tp-letter[data-has-review="0"] [data-kt-rv-cancel] { display: none; }
.tp-letter__err { font-size: 13px; color: #ff7b8a; }
.tp-letter__err.is-info { color: var(--jade); }
.tp-letter__hint { font-size: 12.5px; color: var(--fg-3); line-height: 1.5; }
.tp-letter.is-bad textarea { border-color: #ff7b8a; }
.tp-letter.is-guest { justify-items: start; }
.tp-letter.is-guest p { color: var(--fg-2); font-size: 15px; line-height: 1.6; }
.tp-letter.is-guest .btn { height: 48px; }
.tp-letter__moon { position: absolute; right: -30px; top: -30px; width: 130px; height: 130px; border-radius: 50%; box-shadow: inset -22px -8px 0 0 color-mix(in srgb, var(--accent) 30%, transparent); transform: rotate(-24deg); pointer-events: none; }

.tp-letters { display: grid; gap: 14px; transition: opacity .2s; }
.tp-letters.is-loading { opacity: .45; pointer-events: none; }
.tp-letters--prev { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.tp-letters--prev > .tp-lt:nth-child(n+4) { display: none; }
.tp-lt { --tone: var(--fg-3); position: relative; display: grid; gap: 14px; padding: 22px 24px 18px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); min-width: 0; animation: tpIn .4s var(--ease) both; color: var(--fg); }
.tp-lt.is-positive { --tone: var(--jade); }
.tp-lt.is-mixed { --tone: var(--gold); }
.tp-lt.is-negative { --tone: #ff7b8a; }
.tp-lt.is-mine { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.tp-lt__head { display: flex; align-items: center; gap: 12px; }
.tp-lt__q { font: italic 600 54px/0.6 var(--f-d); color: var(--tone); height: 22px; margin-top: 8px; }
.tp-lt__sent { flex: 1; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.tp-lt__score { font: 600 30px/1 var(--f-d); color: var(--tone); font-variant-numeric: lining-nums; }
.tp-lt__score small { font: 500 12px var(--f-b); color: var(--fg-3); margin-left: 2px; }
.tp-lt__body p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--fg-2); overflow-wrap: anywhere; }
.tp-letters--prev .tp-lt__body p { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.tp-lt__body.is-spoiler { position: relative; }
.tp-lt__body.is-spoiler p { filter: blur(6px); user-select: none; }
.tp-lt__spoil { position: absolute; inset: 0; margin: auto; width: max-content; height: 40px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; background: var(--fg) !important; color: var(--bg) !important; font-size: 13px !important; font-weight: 600 !important; }
.tp-lt__foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.tp-lt__ava { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--surface-2); font: 600 16px var(--f-d); color: var(--fg-2); }
.tp-lt__ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tp-lt__who { display: grid; gap: 1px; min-width: 0; flex: 1; }
.tp-lt__who b { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.tp-lt__who em { font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.tp-lt__who small { font-size: 12px; color: var(--fg-3); }
.tp-lt__votes { display: inline-flex; gap: 4px; }
.tp-lt__votes button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 999px; font-size: 12.5px !important; color: var(--fg-3) !important; background: none !important; border: 1px solid var(--line) !important; cursor: pointer; transition: color .2s, border-color .2s; }
.tp-lt__votes button:hover { color: var(--fg) !important; border-color: var(--line-2) !important; }
.tp-lt__votes button.is-on { color: var(--accent) !important; border-color: color-mix(in srgb, var(--accent) 50%, transparent) !important; }
.tp-lt__acts { display: inline-flex; gap: 14px; }
.tp-lt .tp-link { background: none; border: 0; padding: 0; cursor: pointer; }

/* ── узкий экран ── */
@media (max-width: 1100px) {
    .tp-hall { grid-template-columns: minmax(0, 1fr); }
    .tp-prog { max-height: none; overflow: visible; padding: 0; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
    .tp-prog__cap { grid-column: 1 / -1; }
    .tp-rev__grid { grid-template-columns: minmax(0, 1fr); }
    .tp-letter { position: static; }
    .tp-aw__c { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 700px) {
    .tp { gap: 24px; }
    .tp-num b { font-size: 46px; }
    .tp-head { align-items: flex-start; }
    .tp-ink { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 22px; }
    .tp-ink::-webkit-scrollbar { display: none; }
    .tp-tri { width: 100%; }
    .tp-tri div { flex: 1; justify-items: start; padding: 0 14px; }
    .tp-tri div:first-child { padding-left: 0; }
    .tp-bill { grid-template-columns: minmax(0, 1fr); }
    .tp-bill__i { grid-template-columns: 60px minmax(0, 1fr); gap: 14px; }
    .tp-bill__ph { width: 60px; height: 60px; }
    .tp-bill__t b { font-size: 19px; }
    .tp-crew { columns: 1; }
    .tp-screen { border-radius: 18px; }
    .tp-screen__play { width: 64px; height: 64px; margin: -32px 0 0 -32px; font-size: 20px; }
    .tp-screen__t { font-size: 20px; left: 16px; bottom: 14px; }
    .tp-screen__tag { left: 14px; top: 14px; }
    .tp-prog { grid-template-columns: minmax(0, 1fr); }
    .tp-prog__i { grid-template-columns: 22px 112px minmax(0, 1fr); gap: 10px; }
    .tp-album { columns: 2; column-gap: 10px; }
    .tp-album.is-poster { columns: 2; }
    .tp-album__i { margin-bottom: 10px; border-radius: 14px; }
    .tp-fl__i { padding: 20px 20px 22px 70px; }
    .tp-fl__n { left: 18px; font-size: 40px; }
    .tp-aw__c { padding: 20px; }
    .tp-aw__list li { grid-template-columns: 50px minmax(0, 1fr); }
    .tp-aw__st { grid-column: 2; }
    .tp-recgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
    .tp-lb__stage { grid-template-columns: minmax(0, 1fr); padding: 0 8px 16px; }
    .tp-lb__nav { position: fixed; bottom: 18px; z-index: 2; background: rgba(8, 6, 12, .7) !important; }
    .tp-lb__nav:first-child { left: 18px; }
    .tp-lb__nav:last-child { right: 18px; }
    .tp-letter { padding: 20px; }
    .tp-pebbles { gap: 3px; }
    .tp-pebbles button { font-size: 13px; }
    .tp-lt { padding: 18px 18px 14px; }
}
