/* Parser Actors — inherits SpotKino colors and theme switching. */
.pa-profile,.pa-search,.pa-card,.pa-empty {background:var(--bg);border:1px solid var(--bdc);border-radius:10px;box-shadow:var(--bsh);min-width:0;overflow-wrap:anywhere}
.pa-profile,.pa-search,.pa-empty {padding:24px;grid-column:1/-1}
.pa-heading {margin-bottom:24px;grid-column:1/-1}
.pa-heading h1 {font-size:30px;line-height:1.2;margin:6px 0}
.pa-heading h2 {font-size:24px;line-height:1.3}
.pa-eyebrow {color:var(--tt-fade);font-size:12px;font-weight:700;letter-spacing:1px;text-transform:uppercase}
.pa-muted,.pa-meta {color:var(--tt-fade)}
.pa-profile__body {display:flex;gap:28px;align-items:flex-start}
.pa-profile__poster {flex:0 0 200px;overflow:hidden;border-radius:8px;background:var(--bg-darker)}
.pa-profile__poster img {width:100%;height:auto;display:block}
.pa-facts {flex:1;min-width:0}
.pa-fact {display:grid;grid-template-columns:minmax(100px,0.8fr) minmax(0,1.2fr);gap:8px;padding:9px 0;border-bottom:1px solid var(--bdc);font-size:14px}
.pa-fact:first-child {padding-top:0}
.pa-fact dt {color:var(--tt-fade)}
.pa-fact dd {min-width:0}
.pa-facts a,.pa-ranked a {color:var(--accent)}
.pa-section {border-top:1px solid var(--bdc);margin-top:24px;padding-top:22px}
.pa-section h2,.pa-trivia summary {font-size:19px;font-weight:700;margin-bottom:16px}
.pa-ranked__item {display:flex;gap:12px;padding:10px 0;border-bottom:1px solid var(--bdc)}
.pa-ranked__number {color:var(--accent);font-weight:700;min-width:24px}
.pa-trivia summary {cursor:pointer;margin-bottom:0}
.pa-trivia[open] summary {margin-bottom:14px}
.pa-gallery {display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:12px}
.pa-gallery__item {display:block;border-radius:6px;overflow:hidden;background:var(--bg-darker)}
.pa-gallery img {display:block;width:100%;height:150px;object-fit:cover}
.pa-meta {display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;font-size:12px;margin-top:20px;border-top:1px solid var(--bdc);padding-top:12px}
.pa-card {display:flex;flex-direction:column;overflow:hidden}
.pa-card__portrait {display:block;position:relative;aspect-ratio:2/3;background:var(--bg-darker);overflow:hidden}
.pa-card__placeholder {position:absolute;inset:0;display:grid;place-items:center;color:var(--tt-fade);font-size:14px}
.pa-card__portrait img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.pa-card__body {padding:18px;display:flex;flex-direction:column;gap:10px;flex:1}
.pa-card h2 {font-size:19px;line-height:1.3}
.pa-facts--compact .pa-fact {display:block;font-size:13px;padding:6px 0}
.pa-facts--compact dt,.pa-facts--compact dd {display:inline}
.pa-facts--compact dt {margin-right:4px}
.pa-card__description {font-size:14px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.pa-card__button {margin-top:auto;align-self:flex-start}
.pa-card .pa-meta {margin-top:4px}
.pa-search__form {display:flex;align-items:flex-end;gap:12px;margin-top:18px}
.pa-search__field {flex:1;min-width:0;font-size:13px}
.pa-search__field span {display:block;margin-bottom:6px}
.pa-search__result {margin-top:18px;color:var(--tt-fade)}
.pa-empty h2 {font-size:20px;margin-bottom:10px}
.pa-empty p {color:var(--tt-fade)}
.pa-cast {display:inline-block;vertical-align:top;width:90px;margin:0 12px 12px 0;list-style:none}
.pa-cast__link {display:flex;flex-direction:column;gap:8px;font-size:13px;line-height:1.4}
.pa-cast__link img {display:block;width:80px;height:120px;object-fit:cover;border-radius:6px}
.pa-profile a:hover,.pa-card h2 a:hover,.pa-cast a:hover {color:var(--accent)}
:is(.pa-profile,.pa-card,.pa-search,.pa-cast) :is(a,button,input,summary):focus-visible {outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:760px) {.pa-profile__body {gap:20px}.pa-profile__poster {flex-basis:150px}.pa-fact {grid-template-columns:1fr;gap:3px}.pa-heading h1 {font-size:26px}}
@media(max-width:480px) {.pa-profile,.pa-search,.pa-empty {padding:16px}.pa-profile__body {flex-direction:column}.pa-profile__poster {flex-basis:auto;width:160px}.pa-facts {width:100%}.pa-search__form {flex-direction:column;align-items:stretch}.pa-card__body {padding:12px}.pa-card h2 {font-size:17px}.pa-card__button {padding:0 12px;font-size:12px}.pa-heading h1 {font-size:24px}}

/* Compact catalogue cards; independent of the movie grid mode. */
.pa-card {display:grid;grid-template-columns:90px minmax(0,1fr);align-content:start;gap:14px;padding:14px;align-items:start}
.pa-card__portrait {width:90px;height:135px;aspect-ratio:2/3;border-radius:6px}
.pa-card__placeholder {font-size:11px;text-align:center;padding:8px}
.pa-card__body {padding:0;gap:6px;min-width:0}
.pa-card h2 {font-size:16px;line-height:1.3}
.pa-card__body > .pa-muted {font-size:12px;line-height:1.4}
.pa-card .pa-facts--compact .pa-fact {font-size:12px;padding:4px 0;line-height:1.4}
.pa-card .pa-facts--compact .pa-fact:nth-child(n+3),.pa-card__description,.pa-card .pa-meta {display:none}
.pa-card__button {margin-top:6px;height:30px;padding:0 10px;font-size:11px}
@media(max-width:600px) {
 .grid-items:has(> .pa-card),#dle-content:has(> .pa-card) {grid-template-columns:minmax(0,1fr);gap:12px}
 .pa-card {grid-column:1/-1;grid-template-columns:80px minmax(0,1fr);padding:12px;gap:12px}
 .pa-card__portrait {width:80px;height:120px}
 .pa-card__body {padding:0}
 .pa-card h2 {font-size:16px}
}

/* Person catalogue view switch uses the theme's existing grid controls. */
.pa-search__header {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px}
.pa-search__header h1 {flex:1;min-width:160px}
.pa-view-switch {flex-shrink:0}
.pa-view-switch button:focus-visible {outline-offset:-3px}
body.grid1 :is(.grid-items,#dle-content):has(> .pa-card) {grid-template-columns:minmax(0,1fr)}
body.grid2 :is(.grid-items,#dle-content):has(> .pa-card) {grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px}
body.grid3 :is(.grid-items,#dle-content):has(> .pa-card) {grid-template-columns:repeat(auto-fill,minmax(min(100%,150px),1fr));gap:16px}
body.grid1 .pa-card {grid-column:1/-1}
body.grid3 .pa-card {display:flex;flex-direction:column;gap:12px;grid-column:auto}
body.grid3 .pa-card__portrait {width:100%;height:170px;aspect-ratio:auto}
body.grid3 .pa-card__portrait img {object-position:center 20%}
body.grid3 .pa-card__body {width:100%;flex:1}
body.grid3 .pa-card .pa-facts--compact {display:none}
body.grid3 .pa-card__button {margin-top:auto}
/* Keep the section separator, remove the last row's duplicate rule. */
.pa-profile .pa-facts > .pa-fact:last-child,
.pa-profile .pa-ranked > .pa-ranked__item:last-child,
.pa-profile .pa-trivia__body > .pa-ranked__item:last-child {border-bottom:0}
@media(max-width:600px) {
 body.grid2 :is(.grid-items,#dle-content):has(> .pa-card) {grid-template-columns:minmax(0,1fr)}
 body.grid3 :is(.grid-items,#dle-content):has(> .pa-card) {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body.grid3 .pa-card {padding:10px}
 body.grid3 .pa-card__portrait {height:145px}
 body.grid3 .pa-card h2 {font-size:14px}
}
