/* Cast & crew, IMDb import tools, person pages, affiliate products */

.et-imdb-logo { display: inline-flex; align-items: center; justify-content: center; background: #f5c518; color: #000; font-weight: 900; font-size: 12px; letter-spacing: -.02em; border-radius: 4px; padding: 3px 6px; line-height: 1; font-family: Arial, sans-serif; }
.et-imdb-star { color: #f5c518; }

/* create-form IMDb box */
.et-imdb-box { border: 1px dashed rgba(99,102,241,.5); background: rgba(99,102,241,.05); border-radius: 14px; padding: 14px; margin-bottom: 16px; }
.et-imdb-box__head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.et-imdb-box__head strong { display: block; font-size: 15px; }
.et-imdb-box__head small { color: var(--et-muted); font-size: 12px; }
.et-imdb-box__row { display: flex; gap: 8px; }
.et-imdb-box__row .form-control { flex: 1; }
.et-imdb-results { margin-top: 10px; display: grid; gap: 6px; font-size: 13px; color: var(--et-muted); }
.et-imdb-hit { display: flex; gap: 10px; align-items: center; text-align: left; background: var(--et-surface); border: 1px solid var(--et-line); border-radius: 10px; padding: 6px; color: var(--et-text); cursor: pointer; }
.et-imdb-hit:hover { border-color: #6366F1; }
.et-imdb-hit img, .et-imdb-noimg { width: 38px; height: 56px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; background: #1f2937; color: #f5c518; font-size: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.et-imdb-hit strong { display: block; font-size: 14px; }
.et-imdb-hit small { color: var(--et-muted); }
.et-imdb-picked { display: flex; gap: 12px; align-items: flex-start; background: var(--et-surface); border: 1px solid var(--et-line); border-radius: 10px; padding: 8px; color: var(--et-text); }
.et-imdb-picked img { width: 60px; border-radius: 6px; }
.et-imdb-picked strong { display: block; font-size: 15px; }
.et-imdb-picked small { display: block; color: var(--et-muted); }
.et-imdb-rate { margin-left: 6px; font-weight: 700; }
.et-imdb-linked { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; }
.et-imgtools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -4px 0 16px; }
.et-imgtools-msg { width: 100%; color: var(--et-muted); font-size: 12px; }

/* editor credits panel */
.et-cc-panel { background: var(--et-surface); border: 1px solid var(--et-line); border-radius: 16px; padding: 16px 18px; margin: 20px 0; color: var(--et-text); }
.et-cc-panel__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.et-cc-panel__head h3 { margin: 0; font-weight: 800; font-size: 18px; }
.et-cc-panel__head small { font-weight: 500; color: var(--et-muted); font-size: 12px; margin-left: 6px; }
.et-cc-progress { margin: 12px 0; font-size: 13px; color: var(--et-muted); }
.et-cc-progress i { display: block; height: 8px; border-radius: 8px; background: var(--et-line); overflow: hidden; margin-top: 6px; }
.et-cc-progress b { display: block; height: 100%; background: linear-gradient(90deg, #6366F1, #EC4899); transition: width .3s; }
.et-cc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.et-cc-chip { display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 1px solid var(--et-line); border-radius: 999px; color: var(--et-text) !important; text-decoration: none !important; max-width: 260px; }
.et-cc-chip img, .et-cc-chip .et-pp-initials { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; font-size: 12px; }
.et-cc-chip strong { display: block; font-size: 13px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.et-cc-chip small { display: block; font-size: 11px; color: var(--et-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* public cast & crew block */
.et-cc { margin: 18px 0 8px; padding: 16px; border: 1px solid var(--et-line); border-radius: 16px; background: var(--et-surface); color: var(--et-text); }
.et-cc h3 { font-size: 16px; font-weight: 800; margin: 0 0 10px; }
.et-cc h3 small { color: var(--et-muted); font-weight: 600; font-size: 12px; }
.et-cc__top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; }
.et-cc__imdb { display: inline-flex; align-items: center; gap: 6px; color: var(--et-text) !important; text-decoration: none !important; }
.et-cc__imdb strong { font-size: 20px; font-weight: 800; }
.et-cc__imdb small, .et-cc__score small { color: var(--et-muted); font-size: 12px; }
.et-cc__score { display: inline-flex; align-items: baseline; gap: 5px; padding-left: 12px; border-left: 1px solid var(--et-line); }
.et-cc__score strong { font-size: 15px; }
.et-cc__line { color: var(--et-muted); font-size: 13px; }
.et-cc__plot p { line-height: 1.6; margin: 0 0 14px; }
.et-cc__sec { margin-top: 14px; }
.et-cc__rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px 10px; }
.et-cc__person { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--et-text) !important; text-decoration: none !important; min-width: 0; }
.et-cc__person.is-extra { display: none; }
.et-cc__avatar { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: #1f2937; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; box-shadow: 0 6px 16px rgba(15,23,42,.18); transition: transform .2s; }
.et-cc__person:hover .et-cc__avatar { transform: translateY(-2px); }
.et-cc__avatar img { width: 100%; height: 100%; object-fit: cover; }
.et-cc__person strong { font-size: 13px; line-height: 1.25; max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.et-cc__person small { font-size: 11px; color: var(--et-muted); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.et-cc__more { margin-top: 12px; }
.et-cc__facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 13px; }
.et-cc__facts dt { color: var(--et-muted); font-weight: 600; }
.et-cc__facts dd { margin: 0; }
.et-cc__facts a, .et-ott-facts a { color: #6366F1; }
.et-cc__src { margin: 14px 0 0; font-size: 11px; color: var(--et-muted); }

/* shared avatar initials */
.et-pp-initials { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: linear-gradient(135deg, #6366F1, #EC4899); color: #fff; font-weight: 800; font-size: 22px; border-radius: inherit; }
.et-pp-initials.is-big { font-size: 56px; }

/* person page */
#main-container.et-pp-host { max-width: none; }
.et-pp { max-width: none; margin: 0 0 48px; padding: 14px clamp(4px, 1.4vw, 22px) 40px; color: var(--et-text); }
.et-pp-crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--et-muted); margin: 0 0 14px; flex-wrap: wrap; }
.et-pp-crumbs a { color: var(--et-muted); }
.et-pp-crumbs a:hover { color: #6366F1; }
.et-pp-crumbs b { color: var(--et-text); font-weight: 700; }

/* hero: brand gradient banner */
.et-pp-hero { --et-text: #fff; --et-muted: rgba(255,255,255,.85); position: relative; isolation: isolate; overflow: hidden; height: auto; display: flex; gap: 32px; align-items: center; background: var(--gradient-brand, linear-gradient(135deg, #6366F1 0%, #8B5CF6 35%, #EC4899 70%, #F97316 100%)); color: #fff; border-radius: 24px; padding: 28px 32px; margin-bottom: 26px; box-shadow: 0 22px 50px -18px rgba(99,102,241,.55); }
.et-pp-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 88% 12%, rgba(255,255,255,.22), transparent 38%), radial-gradient(circle at 8% 110%, rgba(15,23,42,.35), transparent 45%), linear-gradient(180deg, rgba(15,23,42,0) 40%, rgba(15,23,42,.22) 100%); }
.et-pp-photo { position: relative; width: 220px; flex: 0 0 auto; margin: 0; }
.et-pp-photo img, .et-pp-photo .et-pp-initials { width: 220px; height: 275px; object-fit: cover; border-radius: 20px; display: flex; border: 4px solid rgba(255,255,255,.9); box-shadow: 0 18px 40px rgba(15,23,42,.35); }
.et-pp-photo figcaption { font-size: 10.5px; color: rgba(255,255,255,.78); margin-top: 8px; line-height: 1.35; }
.et-pp-ai { position: absolute; top: 12px; left: 12px; background: rgba(15,23,42,.8); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 999px; }
.et-pp-hero__copy { flex: 1; min-width: 0; }
.et-pp-kicker { display: inline-block; text-transform: uppercase; letter-spacing: .1em; font-size: 11.5px; font-weight: 800; color: #fff; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 4px 12px; margin: 0 0 12px; }
.et-pp-hero h1 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 900; margin: 0 0 6px; line-height: 1.08; color: #fff; letter-spacing: -.01em; text-shadow: 0 2px 18px rgba(15,23,42,.25); }
.et-pp-verified { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: #1d9bf0; font-size: 15px; font-weight: 900; vertical-align: middle; box-shadow: 0 4px 12px rgba(15,23,42,.25); }
.et-pp-headline { font-size: 17px; color: rgba(255,255,255,.9); margin: 0 0 16px; }
.et-pp-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 18px; }
.et-pp-chips li { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.et-pp-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.et-pp-hero .et-pp-actions .btn { border-radius: 999px; font-weight: 700; padding: 9px 18px; box-shadow: none; }
.et-pp-hero .et-pp-actions .btn-main { background: #fff !important; color: #4F46E5 !important; border: 1px solid #fff !important; }
.et-pp-hero .et-pp-actions .btn-main:hover { background: #EEF2FF !important; }
.et-pp-hero .et-pp-actions .btn-default { background: rgba(255,255,255,.08) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.7) !important; }
.et-pp-hero .et-pp-actions .btn-default:hover { background: rgba(255,255,255,.2) !important; }
.et-pp-pill { font-size: 13px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.2); color: #fff; font-weight: 600; }

/* layout: content + 340px right column */
.et-pp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: stretch; }
.et-pp-main { min-width: 0; }
.et-pp-lead { font-size: 17.5px; line-height: 1.75; margin: 0 0 22px; padding: 16px 20px; background: var(--et-surface); border: 1px solid var(--et-line); border-left: 4px solid #6366F1; border-radius: 0 16px 16px 0; }
.et-pp-loading { color: var(--et-muted); font-style: italic; }
.et-pp-toc { background: var(--et-surface); border: 1px solid var(--et-line); border-radius: 16px; padding: 14px 18px; margin-bottom: 26px; }
.et-pp-toc summary { font-weight: 800; cursor: pointer; font-size: 15px; }
.et-pp-toc ol { margin: 10px 0 0; padding-left: 0; list-style: none; columns: 2; column-gap: 28px; font-size: 14px; counter-reset: etpptoc; }
.et-pp-toc li { break-inside: avoid; margin: 4px 0; }
.et-pp-toc li.is-l2 { counter-increment: etpptoc; }
.et-pp-toc li.is-l2::before { content: counter(etpptoc) ". "; color: #6366F1; font-weight: 800; }
.et-pp-toc li.is-l3 { margin-left: 22px; font-size: 13px; }
.et-pp-toc li.is-l3::before { content: "\2022  "; color: #EC4899; }
.et-pp-toc li.is-l4 { margin-left: 36px; font-size: 12.5px; }
.et-pp-toc a { color: var(--et-text); }
.et-pp-toc a:hover { color: #6366F1; }
.et-pp-sec { margin-bottom: 32px; scroll-margin-top: 80px; }
.et-pp-sec > h2 { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--et-line); }
.et-pp-sec > h2::before { content: ""; flex: 0 0 auto; width: 5px; height: 24px; border-radius: 3px; background: var(--gradient-brand, linear-gradient(180deg, #6366F1, #EC4899)); }
.et-pp-bio { line-height: 1.8; font-size: 15.5px; }
.et-pp-bio h3 { font-size: 18px; font-weight: 800; margin: 22px 0 8px; scroll-margin-top: 80px; }
.et-pp-bio h4 { font-size: 16px; font-weight: 700; margin: 16px 0 6px; }
.et-pp-bio h2[id] { margin-top: 28px; font-size: 20px; border-bottom: 0; padding-bottom: 0; scroll-margin-top: 80px; }
.et-pp-bio p { margin: 0 0 12px; }
.et-pp-bio a { color: #6366F1; }
.et-pp-bio blockquote { border-left: 3px solid #EC4899; margin: 14px 0; padding: 6px 16px; color: var(--et-muted); background: rgba(236,72,153,.05); border-radius: 0 10px 10px 0; }
.et-wiki-table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: 13.5px; display: block; overflow-x: auto; }
.et-wiki-table th, .et-wiki-table td { border: 1px solid var(--et-line); padding: 7px 10px; text-align: left; vertical-align: top; }
.et-wiki-table th { background: rgba(99,102,241,.08); }
.et-pp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; background: var(--et-surface); border: 1px solid var(--et-line); border-radius: 16px; overflow: hidden; }
.et-pp-table th { width: 34%; text-align: left; color: var(--et-muted); font-weight: 600; padding: 11px 16px; vertical-align: top; border-bottom: 1px solid var(--et-line); background: rgba(99,102,241,.04); }
.et-pp-table td { padding: 11px 16px; border-bottom: 1px solid var(--et-line); }
.et-pp-table tr:last-child th, .et-pp-table tr:last-child td { border-bottom: 0; }
.et-pp-table ul { margin: 0; padding-left: 18px; }
.et-pp-table a { color: #6366F1; }
.et-pp-faq details { border: 1px solid var(--et-line); border-radius: 14px; padding: 12px 16px; margin-bottom: 10px; background: var(--et-surface); transition: border-color .2s; }
.et-pp-faq details[open] { border-color: rgba(99,102,241,.55); box-shadow: 0 8px 22px -14px rgba(99,102,241,.6); }
.et-pp-faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.et-pp-faq summary::-webkit-details-marker { display: none; }
.et-pp-faq summary::after { content: "+"; flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(99,102,241,.12); color: #6366F1; font-weight: 800; }
.et-pp-faq details[open] summary::after { content: "\2212"; background: #6366F1; color: #fff; }
.et-pp-faq p { margin: 10px 0 2px; line-height: 1.65; color: var(--et-muted); }
.et-pp-attrib { font-size: 12px; color: var(--et-muted); border-top: 1px solid var(--et-line); padding-top: 12px; }
.et-pp-attrib a { color: inherit; text-decoration: underline; }

/* right column: cards, ads, pinned ads stack */
.et-pp-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.et-pp-box { position: relative; overflow: hidden; background: var(--et-surface); border: 1px solid var(--et-line); border-radius: 18px; padding: 20px 18px 18px; box-shadow: 0 10px 30px -22px rgba(15,23,42,.45); }
.et-pp-box::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--gradient-brand, linear-gradient(90deg, #6366F1, #EC4899)); }
.et-pp-box h2 { font-size: 16px; font-weight: 800; margin: 0 0 12px; }
.et-pp-box dl { display: grid; grid-template-columns: max-content 1fr; gap: 9px 14px; margin: 0; font-size: 13.5px; }
.et-pp-box dt { color: var(--et-muted); font-weight: 600; }
.et-pp-box dd { margin: 0; overflow-wrap: anywhere; font-weight: 600; }
.et-pp-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--et-line); }
.et-pp-links a { font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--et-line); color: var(--et-text) !important; text-decoration: none !important; transition: all .15s; }
.et-pp-links a:hover { border-color: #6366F1; color: #fff !important; background: #6366F1; }
.et-pp-people { list-style: none; padding: 0; margin: 0 -8px; display: grid; gap: 2px; }
.et-pp-people a { display: flex; gap: 12px; align-items: center; padding: 7px 8px; border-radius: 12px; color: var(--et-text) !important; text-decoration: none !important; transition: background .15s; }
.et-pp-people a:hover { background: rgba(99,102,241,.08); }
.et-pp-people img, .et-pp-people .et-pp-initials { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; font-size: 14px; box-shadow: 0 0 0 2px var(--et-surface), 0 0 0 4px rgba(99,102,241,.35); }
.et-pp-people strong { display: block; font-size: 13.5px; }
.et-pp-people small { display: block; font-size: 11.5px; color: var(--et-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 230px; }
.et-pp-side__ad { display: flex; justify-content: center; }
.et-pp-side__ad > .et-ad-slot { width: 100%; margin: 0 auto; }
.et-pp-dialog { border: 0; border-radius: 18px; padding: 0; max-width: 520px; width: calc(100% - 24px); background: var(--et-surface); color: var(--et-text); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.et-pp-dialog::backdrop { background: rgba(15,23,42,.6); }
.et-pp-dialog form { padding: 20px; display: grid; gap: 10px; }
.et-pp-dialog h3 { margin: 0; font-weight: 800; }
.et-pp-dialog p { margin: 0; color: var(--et-muted); font-size: 13.5px; }
.et-pp-dialog label { font-weight: 600; font-size: 13px; display: grid; gap: 4px; }
.et-pp-dialog label small { font-weight: 400; color: var(--et-muted); }
.et-pp-dialog__foot { display: flex; justify-content: flex-end; gap: 8px; }
.et-pp-flash { font-size: 13px; padding: 8px 12px; border-radius: 10px; }
.et-pp-flash.is-ok { background: rgba(16,185,129,.14); color: #047857; }
.et-pp-flash.is-err { background: rgba(239,68,68,.12); color: #b91c1c; }

/* directory */
.et-pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; }
.et-pp-card { display: flex; flex-direction: column; color: var(--et-text) !important; text-decoration: none !important; min-width: 0; }
.et-pp-card__img { display: block; aspect-ratio: 4/5; border-radius: 14px; overflow: hidden; background: #1f2937; box-shadow: 0 8px 22px rgba(15,23,42,.16); transition: transform .2s; }
.et-pp-card:hover .et-pp-card__img { transform: translateY(-3px); }
.et-pp-card__img img { width: 100%; height: 100%; object-fit: cover; }
.et-pp-card strong { font-size: 14px; margin-top: 8px; line-height: 1.25; }
.et-pp-card small { font-size: 12px; color: var(--et-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* edit page */
.et-pp-edit-form { display: grid; gap: 16px; }
.et-pp-fieldset { border: 1px solid var(--et-line); border-radius: 16px; padding: 14px 16px; background: var(--et-surface); }
.et-pp-fieldset legend { font-weight: 800; font-size: 16px; padding: 0 6px; width: auto; border: 0; margin: 0; color: var(--et-text); }
.et-pp-fieldset label { display: grid; gap: 4px; font-weight: 600; font-size: 13px; }
.et-pp-fieldset label.is-wide { grid-column: 1 / -1; }
.et-pp-edit-top { display: grid; grid-template-columns: 220px 1fr; gap: 18px; }
.et-pp-edit-top .et-ott-image img { max-width: 100%; border-radius: 12px; }
.et-pp-src { font-weight: 500; color: var(--et-muted); font-size: 11px; }

@media (max-width: 1199px) {
  .et-pp-layout { grid-template-columns: minmax(0, 1fr) 316px; gap: 22px; }
}
@media (max-width: 991px) {
  .et-pp-layout { grid-template-columns: 1fr; }
  .et-pp-toc ol { columns: 1; }
}
@media (max-width: 680px) {
  .et-pp { padding: 10px 12px 32px; }
  .et-pp-hero { flex-direction: column; align-items: center; text-align: center; gap: 18px; padding: 22px 16px; border-radius: 20px; }
  .et-pp-photo, .et-pp-photo img, .et-pp-photo .et-pp-initials { width: 170px; }
  .et-pp-photo img, .et-pp-photo .et-pp-initials { height: 212px; }
  .et-pp-hero h1 { font-size: 30px; }
  .et-pp-chips, .et-pp-actions { justify-content: center; }
  .et-pp-lead { font-size: 16px; padding: 14px 16px; }
  .et-pp-toc ol { columns: 1; }
  .et-pp-edit-top { grid-template-columns: 1fr; }
  .et-cc__rail { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
  .et-cc__avatar { width: 72px; height: 72px; }
}
