/* Actor profiles share the catalogue's cinema palette and generous type scale. */
#actor-profile{max-width:1200px;padding:32px 0 88px;width:calc(100% - 64px)}
#actor-profile .back-link,.movie-page .back-link{font-size:13px;min-height:44px;display:inline-flex;align-items:center}
#actor-profile .profile-heading{align-items:end;padding:8px 0 28px;gap:32px}
#actor-profile .profile-heading>div{min-width:0}
#actor-profile .profile-heading h1{font-size:clamp(42px,5.3vw,76px);line-height:1.1;margin:18px 0;overflow-wrap:anywhere}
#actor-profile .profile-tag{font-size:14px;letter-spacing:0;line-height:1.7;color:var(--muted)}
#actor-profile .eyebrow{font-size:10px;line-height:1.7;letter-spacing:1.8px}
#actor-profile .profile-heading .primary{min-height:48px;font-size:12px;line-height:1.5;white-space:normal;max-width:260px}
#actor-profile .film-eligibility-note{font-size:11px;line-height:1.8;margin:18px 0;color:var(--muted)}
#actor-profile .compare-profile-action{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0 0}
#actor-profile .compare-profile-action>a,#actor-profile .compare-profile-action>button{display:inline-flex;align-items:center;min-height:44px;margin:0;padding:11px 16px;border:1px solid var(--line);background:transparent;color:var(--gold);font:12px/1.5 'DM Sans',sans-serif}
#actor-profile .profile-intro{grid-template-columns:320px minmax(0,1fr);gap:clamp(28px,4vw,64px);padding:40px 0 56px;align-items:start}
#actor-profile .profile-card{width:100%;max-width:320px;margin:0}
#actor-profile .profile-card .portrait{height:286px}
#actor-profile .profile-card .actor-inner{padding:20px}
#actor-profile .profile-card .portrait{margin:-20px -20px 0}
#actor-profile .profile-card .actor-name{font-size:30px;line-height:1.2;min-height:0;overflow-wrap:anywhere}
#actor-profile .profile-card .actor-subtitle{font-size:11px;letter-spacing:0;line-height:1.6;max-height:none;min-height:0;overflow:visible;margin:14px 0 20px}
#actor-profile .profile-card .stats{gap:14px 18px;padding-top:20px}
#actor-profile .profile-card .stat{font-size:11px}
#actor-profile .profile-card .stat b{font-size:16px}
#actor-profile .profile-card .card-bottom{font-size:8px;letter-spacing:.8px;line-height:1.8}
#actor-profile .profile-card .score{padding:10px;background:#11170fe8;border:1px solid #ffffff26;top:16px;left:16px}
#actor-profile .profile-card .score strong{font-size:42px}
#actor-profile .profile-card .score small{font-size:8px;letter-spacing:.7px}
#actor-profile .profile-card .favorite-toggle{min-width:44px;min-height:44px}
#actor-profile .photo-credit{font-size:10px;line-height:1.8;margin-top:14px;overflow-wrap:anywhere}
#actor-profile .profile-overview{gap:24px}
#actor-profile .award-shelf{background:linear-gradient(125deg,#ccb37b0c,transparent);padding:28px;border-color:#ccb37b42}
#actor-profile .award-heading h2{font-size:30px;line-height:1.2}
#actor-profile .award-scope,#actor-profile .award-source,#actor-profile .award-hint{font-size:11px;line-height:1.8}
#actor-profile .award-trophy{flex:1 1 78px;max-width:110px;min-height:104px}
#actor-profile .award-name{font-size:10px;line-height:1.5}
#actor-profile .performance-panel{border:1px solid var(--line);background:#ffffff02;padding:28px;max-width:none}
#actor-profile .performance-panel h2{font-size:36px;line-height:1.2;margin:16px 0}
#actor-profile .performance-panel>p:not(.eyebrow){font-size:13px;line-height:1.8}
#actor-profile .performance-number{padding:14px 0;gap:18px}
#actor-profile .performance-number strong{font-size:64px}
#actor-profile .performance-number span{font-size:10px;letter-spacing:1px}
#actor-profile .average-rule{border-top:1px solid var(--line);padding-top:18px;color:var(--muted);font-size:12px;line-height:1.8}
#actor-profile .average-rule summary{color:var(--gold);cursor:pointer;min-height:32px}
#actor-profile .average-rule p{margin:8px 0 0}
#actor-profile .profile-project-heading{padding-top:36px;align-items:end}
#actor-profile .profile-project-heading h2{font-size:clamp(32px,3.4vw,46px);line-height:1.2;margin:14px 0 0}
#actor-profile .source-link{font-size:12px;min-height:44px;display:inline-flex;align-items:center}
#actor-profile>.demo-note,#actor-profile>.data-timestamp{font-size:12px;line-height:1.8;max-width:850px;margin:16px 0}
#actor-profile .project-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;align-items:center;border:1px solid var(--line);padding:24px;margin:28px 0}
#actor-profile .project-tools label{font-size:12px;color:var(--ink)}
#actor-profile .project-tools input{max-width:none;min-height:48px;font-size:14px}
#actor-profile .project-tools>p{font-size:13px;line-height:1.8;color:var(--muted);margin:0}
#actor-profile .project-row{grid-template-columns:32px minmax(0,1fr) 116px 290px;gap:24px;padding:28px 0;align-items:center}
#actor-profile .project-description{min-width:0}
#actor-profile .project-description h3{font-size:25px;line-height:1.3;overflow-wrap:anywhere;margin:10px 0}
#actor-profile .project-description>p:last-of-type{font-size:12px;line-height:1.7;color:var(--muted);margin:8px 0}
#actor-profile .project-cast-link{display:inline-flex;align-items:center;gap:12px;min-height:44px;font-size:12px;color:var(--gold)}
#actor-profile .project-average{padding-left:18px}
#actor-profile .project-average>span{font-size:9px;letter-spacing:.7px}
#actor-profile .project-average strong{font-size:36px}
#actor-profile .project-average small{font-size:11px}
#actor-profile .project-form label{font-size:12px;line-height:1.6;color:var(--ink)}
#actor-profile .project-controls{flex-wrap:wrap;gap:8px}
#actor-profile .project-controls input{width:76px;min-height:44px;font-size:16px}
#actor-profile .project-controls button{min-height:44px;font-size:12px;padding:10px 14px}
#actor-profile .project-status{font-size:12px;line-height:1.7;margin-top:10px;min-height:20px}
#actor-profile #no-project-matches{padding:32px 24px;border:1px solid var(--line);color:var(--muted);line-height:1.8}
#actor-profile :is(a,button,input,summary):focus-visible{outline:2px solid var(--gold);outline-offset:4px}
#actor-profile #filmography-title{scroll-margin-top:28px}
#actor-profile #filmography-title:focus{outline:none}
#vote-dialog{padding:32px;max-height:90dvh}
#vote-dialog .range-row{margin:24px 0}
#vote-dialog input[type=range]{min-height:32px}
#vote-dialog .close{min-width:44px;min-height:44px}
#vote-dialog .range-row label{font-size:14px}
.movie-page .cast-person>div:last-child{min-width:0}
@media(max-width:1050px){
 #actor-profile .profile-intro{grid-template-columns:280px minmax(0,1fr);gap:28px}
 #actor-profile .profile-card .portrait{height:250px}
 #actor-profile .project-row{grid-template-columns:28px minmax(0,1fr) 110px;gap:18px}
 #actor-profile .project-form{grid-column:2/4}
 #actor-profile .award-shelf,#actor-profile .performance-panel{padding:24px}
}
@media(max-width:700px){
 #actor-profile{width:calc(100% - 40px);padding:18px 0 56px}
 #actor-profile .profile-heading{display:block}
 #actor-profile .profile-heading h1{font-size:44px}
 #actor-profile .profile-heading .primary{margin-top:22px;max-width:none;width:100%;justify-content:center}
 #actor-profile .compare-profile-action{gap:8px}
 #actor-profile .compare-profile-action>a,#actor-profile .compare-profile-action>button{flex:1 1 auto;justify-content:center;font-size:12px;padding:10px}
 #actor-profile .profile-intro{grid-template-columns:minmax(0,1fr);gap:28px;padding:28px 0 40px}
 #actor-profile .profile-card{margin:auto;max-width:320px}
 #actor-profile .profile-card .portrait{height:280px}
 #actor-profile .profile-project-heading{align-items:start;gap:12px}
 #actor-profile .project-tools{grid-template-columns:minmax(0,1fr);gap:16px;padding:20px}
 #actor-profile .project-row{grid-template-columns:minmax(0,1fr) 94px;gap:18px 16px;padding:24px 0}
 #actor-profile .project-number{display:none}
 #actor-profile .project-description h3{font-size:23px}
 #actor-profile .project-description .eyebrow{font-size:9px;letter-spacing:1px}
 #actor-profile .project-average{padding-left:14px}
 #actor-profile .project-average>span{font-size:8px}
 #actor-profile .project-form{grid-column:1/-1;margin:0;padding:18px;background:#ffffff03;border:1px solid var(--line)}
 #actor-profile .project-controls{gap:8px}
 #actor-profile .award-heading h2{font-size:29px}
 #actor-profile .performance-panel h2{font-size:32px}
}

#actor-profile .profile-data-quality{padding:14px 18px;border:1px solid var(--line);color:var(--gold);font-size:12px;line-height:1.8;margin:20px 0;}

/* Keep the rating form readable and comfortable on touch screens. */
.profile-loading{display:grid;gap:16px;padding:24px 0}
.profile-loading span{display:block;height:88px;border:1px solid var(--line);background:linear-gradient(100deg,#ffffff03,#ccb37b0a,#ffffff03);border-radius:6px}
#vote-dialog{width:min(560px,calc(100vw - 32px));padding:32px;border-radius:12px;overscroll-behavior:contain;scrollbar-gutter:stable}
#vote-dialog .dialog-info{font-size:13px;line-height:1.8}
#vote-dialog .range-row{padding:18px 0;margin:0;border-top:1px solid var(--line)}
#vote-dialog .range-row label{align-items:center;font-weight:600;gap:16px}
#vote-dialog output{display:inline-grid;place-items:center;min-width:46px;min-height:36px;border:1px solid #ccb37b55;border-radius:6px;background:#ccb37b0a;font-size:18px;font-variant-numeric:tabular-nums}
#vote-dialog .stat-hint{font-size:12px;line-height:1.7;color:var(--muted);margin:8px 0 0}
#vote-dialog .stat-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}
#vote-dialog .stat-heading input[type=number]{width:68px;min-width:68px;min-height:48px;padding:10px 6px;text-align:center;background:var(--bg);color:var(--ink);border:1px solid #ccb37b66;border-radius:4px;font-size:16px}
#vote-dialog .rating-start-note,#vote-dialog .rating-film-prompt,#vote-dialog .rating-guide{font-size:12px;line-height:1.8;color:var(--muted)}
#vote-dialog .rating-guide{border:1px solid var(--line);padding:0 14px;border-radius:4px}
#vote-dialog .rating-guide summary{min-height:48px;padding:12px 0;color:var(--gold);cursor:pointer}
#vote-dialog .rating-guide dt{color:var(--ink);font-weight:600;margin-top:12px}
#vote-dialog .rating-guide dd{margin:4px 0 14px}
#vote-dialog .rating-film-prompt{margin:14px 0}
#vote-dialog [data-rating-films],#vote-dialog [data-rating-card]{min-height:48px;padding:10px 12px;border:1px solid var(--line);border-radius:4px;background:transparent;color:var(--gold);font-size:12px;line-height:1.6}
#vote-dialog .rating-film-prompt button{display:block;width:100%;margin-top:6px}
#vote-dialog .rating-next-steps{display:grid;gap:10px;margin-top:16px}
#vote-dialog .rating-next-steps[hidden]{display:none}
#vote-dialog input[type=range]{min-height:44px;margin:4px 0 0;cursor:pointer}
#vote-dialog .range-scale{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}
#vote-dialog .primary{min-height:48px;border-radius:4px}
#vote-dialog #remove-attributes{min-height:44px}
#vote-dialog button:disabled{opacity:.6;cursor:wait}
#vote-dialog :is(button,input):focus-visible{outline:2px solid var(--gold);outline-offset:4px}
#actor-profile .project-form{border-radius:8px}
#actor-profile .project-controls input{font-variant-numeric:tabular-nums;border-radius:4px}
#actor-profile .project-controls button{border-radius:4px}
#actor-profile .project-controls button:disabled{cursor:wait}
#actor-profile .project-controls input:disabled{cursor:not-allowed}
.project-status[data-state=success],#vote-result[data-state=success]{color:#c7ddb7;border-left:2px solid #8baa73;padding-left:10px}
.project-status[data-state=error],#vote-result[data-state=error]{color:#f0b8a6;border-left:2px solid #db9a85;padding-left:10px}
#actor-profile .profile-card .portrait img{object-position:center 24%;opacity:.94}
#actor-profile .profile-card .actor-name{text-wrap:balance}
#actor-profile .profile-card .card-bottom{letter-spacing:.4px;color:#b7bdaa}
@media(max-width:700px){
 #actor-profile .project-controls{display:grid;grid-template-columns:88px minmax(0,1fr)}
 #actor-profile .project-controls input{width:100%}
 #actor-profile .project-controls .remove-rating{grid-column:1/-1;justify-self:start}
 #actor-profile .project-form label{display:block;margin-bottom:10px}
 #actor-profile .project-controls button{min-height:48px}
 #vote-dialog{padding:24px 20px}
 #vote-dialog h2{padding-right:12px;font-size:28px;overflow-wrap:anywhere}
}
#vote-dialog [data-rating-compare]{min-height:48px;padding:10px 12px;border:1px solid var(--line);border-radius:4px;background:transparent;color:var(--gold);font-size:12px;line-height:1.6}
#vote-dialog .rating-next-steps>p{margin:0;color:var(--muted);font-size:12px;line-height:1.7}
#actor-profile .project-status a,#actor-profile .project-next-step a{display:inline-flex;align-items:center;gap:8px;min-height:48px;color:var(--gold);text-underline-offset:4px;line-height:1.7}
#actor-profile .project-next-step{margin-top:8px;font-size:12px}
#actor-profile .project-next-step[hidden]{display:none}
#vote-dialog .rating-next-steps{padding-bottom:16px}

/* Profile polish: quiet framing, clear actions and a readable filmography. */
#actor-profile .profile-heading h1{text-wrap:balance;letter-spacing:-.035em}
#actor-profile .profile-heading .primary{border:1px solid var(--gold)}
#actor-profile .compare-profile-action :is(a,button){gap:10px;border-radius:4px;transition:background-color .15s,border-color .15s}
#actor-profile .compare-profile-action :is(a,button):hover{background:#ccb37b0d;border-color:#ccb37b70}
#actor-profile .compare-profile-action .ui-icon{width:17px;height:17px;flex-shrink:0}
#actor-profile .performance-number strong,#actor-profile .project-average strong{font-variant-numeric:tabular-nums}
#actor-profile .project-tools{background:#ffffff02;border-radius:6px;gap:24px}
#actor-profile .project-tools label{display:block;margin-bottom:10px;font-weight:500}
#actor-profile .project-search-field{display:flex;align-items:center;gap:10px;border:1px solid #ccb37b55;background:var(--bg);padding-left:14px;min-width:0;color:var(--gold)}
#actor-profile .project-search-field:focus-within{outline:2px solid var(--gold);outline-offset:3px}
#actor-profile .project-search-field input{flex:1;min-width:0;width:100%;border:0;margin:0;padding:12px 4px;background:none;outline:none}
#actor-profile .project-search-field input::-webkit-search-cancel-button{-webkit-appearance:none}
#actor-profile .project-search-field button{display:grid;place-items:center;width:48px;min-height:48px;flex-shrink:0;border:0;background:none;color:var(--gold);cursor:pointer}
#actor-profile .project-search-field button[hidden]{display:none}
#actor-profile #project-search-count{margin:10px 0 0;font-size:12px;line-height:1.7;color:var(--muted);font-variant-numeric:tabular-nums}
#actor-profile .project-row{border:1px solid var(--line);border-radius:6px;margin-top:16px;padding:24px;transition:border-color .15s}
#actor-profile .project-row:focus-within{border-color:#ccb37b80}
#actor-profile .project-row[hidden]{display:none}
#actor-profile .project-number{opacity:.75;font-size:22px}
#actor-profile .project-description h3 a:hover{color:var(--gold)}
#actor-profile .project-average strong{margin:7px 0}
#actor-profile #no-project-matches{border-radius:6px}
#actor-profile #no-project-matches button{display:inline-flex;align-items:center;min-height:44px;padding:8px 14px;margin:12px 0 0;border:1px solid var(--line);background:none;color:var(--gold);font:inherit;cursor:pointer}
#actor-profile #no-project-matches span{display:block}
@media(max-width:1050px){#actor-profile .project-row{padding:22px 18px}}
@media(max-width:700px){
 #actor-profile .profile-heading h1{font-size:clamp(36px,10vw,44px)}
 #actor-profile .profile-intro{padding-top:24px}
 #actor-profile .project-row{padding:20px 16px;gap:16px 12px}
 #actor-profile .project-form{padding:16px;margin-top:0;border-color:transparent;background:#ccb37b08}
 #actor-profile .project-tools{padding:18px;gap:14px}
 #actor-profile .project-description h3{font-size:22px}
 #actor-profile .project-average{padding-left:12px}
}
@media(prefers-reduced-motion:reduce){#actor-profile .compare-profile-action :is(a,button),#actor-profile .project-row{transition:none}}
