/* Translator team: established shell and cards, with a compact reading-first layout. */
.team-main { padding: 24px 0 44px; }
.team-hero { min-width: 0; }
.team-banner { position: relative; height: 176px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(115deg, var(--surface), var(--bg)); }
.team-banner-covers { position: absolute; inset: 0 0 0 auto; display: flex; gap: 12px; width: 51%; mask-image: linear-gradient(to right, transparent, #000 14%); }
.team-banner-covers img { width: calc((100% - 36px) / 4); height: 100%; object-fit: cover; border-radius: 9px; }
.team-banner-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.team-banner.has-remote-banner:not(.is-fallback) .team-banner-covers { visibility: hidden; }
.team-identity { position: relative; display: grid; grid-template-columns: 132px minmax(0, 1fr) 330px auto; grid-template-areas: 'avatar person facts action'; align-items: center; gap: 22px; min-height: 142px; margin-top: -48px; padding: 0 26px 10px; }
.team-avatar { grid-area: avatar; position: relative; align-self: start; width: 132px; height: 132px; overflow: hidden; display: grid; place-items: center; border: 2px solid var(--bg); border-radius: 23px; background: var(--surface-strong); box-shadow: 0 0 0 1px var(--line-strong); }
.team-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.team-avatar-fallback { color: var(--accent-pale); font: 400 45px/1 var(--display); }
.team-avatar.has-remote-avatar:not(.is-fallback) .team-avatar-fallback { visibility: hidden; }
.team-person { grid-area: person; min-width: 0; padding-top: 51px; }
.team-person h1 { margin: 0 0 6px; font: 400 clamp(38px, 4vw, 52px)/1.08 var(--display); letter-spacing: -.035em; overflow-wrap: anywhere; }
.team-person p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.team-facts { grid-area: facts; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 48px; }
.team-facts div { display: grid; justify-items: center; align-content: start; gap: 5px; min-width: 0; padding: 0 10px; border-left: 1px solid var(--line); text-align: center; }
.team-facts div:first-child { border: 0; }
.team-facts strong { font-size: 26px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.team-facts span { color: var(--muted); font-size: 12px; line-height: 1.35; text-transform: uppercase; }
.team-latest { grid-area: action; min-height: 44px; margin-top: 48px; padding-inline: 16px; font-size: 13px; white-space: nowrap; }
.team-tabs { display: flex; gap: 24px; margin: 12px 0 20px; border-bottom: 1px solid var(--line); }
.team-tabs a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px; border-bottom: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 16px; }
.team-tabs a:hover { color: var(--text); }
.team-tabs a[aria-current] { border-color: var(--accent); color: var(--accent-pale); font-weight: 700; }

.team-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 20px; }
.team-content, .team-recent { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 19px; background: color-mix(in srgb, var(--surface) 82%, transparent); }
.team-content { scroll-margin-top: 110px; }
.team-content-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.team-content-head > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; }
.team-content h2, .team-recent h2 { margin: 0; font: 400 29px/1.2 var(--display); letter-spacing: -.025em; }
.team-content-head > div > span { color: var(--muted); font-size: 13px; }
.team-filters { flex: 1 1 540px; display: grid; grid-template-columns: minmax(150px, 1fr) minmax(135px, 145px) minmax(150px, 170px); align-items: center; gap: 10px; min-width: 0; }
.team-search { position: relative; display: flex; min-width: 0; }
.team-search input, .team-select select { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-strong); color: var(--text); font: 400 13px/1.4 var(--sans); }
.team-search input { padding-right: 44px; }
.team-search input::placeholder { color: var(--muted); opacity: 1; }
.team-search button { position: absolute; inset: 1px 1px 1px auto; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer; }
.team-search button:hover { color: var(--accent-pale); }
.team-search .ui-icon { width: 18px; height: 18px; }
.team-select { min-width: 0; }
.team-select select { padding-right: 26px; cursor: pointer; }
.team-search input:focus-visible, .team-select select:focus-visible { outline: 3px solid var(--accent-pale); outline-offset: 2px; }

.team-title-grid { display: grid; gap: 12px; }
.team-title-grid .card-open { grid-template-columns: 84px minmax(0, 1fr) 210px; grid-template-rows: auto; align-items: center; gap: 16px; padding: 12px; }
.team-title-grid .card-cover { width: 84px; }
.team-title-grid .card-copy h3 { order: -1; margin-bottom: 8px; font: 400 22px/1.25 var(--display); }
.team-title-grid .card-genres { margin-bottom: 6px; }
.team-title-grid .card-rating { margin-top: 0; }
.team-title-grid .card-bottom { grid-column: auto; align-self: center; flex-wrap: nowrap; gap: 12px; padding-top: 0; border: 0; }
.team-title-grid .card-availability { font-size: 16px; white-space: nowrap; }
.team-title-grid .card-availability small { display: block; margin: 4px 0 0; font-size: 12px; }
.team-title-grid .card-cta { padding-inline: 10px; font-size: 13px; }
.team-title-grid .card-cta .ui-icon { width: 16px; height: 16px; }
.team-title-grid .card-save { top: 10px; left: 58px; width: 44px; height: 44px; padding: 12px; border: 0; border-radius: 11px; background: transparent; }
.team-title-grid .card-save::before { content: ''; position: absolute; inset: 6px; border: 1px solid #6b797d; border-radius: 8px; background: #07161cef; }
.team-title-grid .card-save:hover::before { border-color: var(--accent-pale); }
.team-title-grid .card-save[aria-pressed="true"]::before { background: #443325; border-color: var(--accent); }
.team-title-grid .card-save .ui-icon { position: relative; width: 18px; height: 18px; }

.team-recent h2 { margin-bottom: 14px; }
.team-chapter-list { display: grid; gap: 10px; }
.team-chapter { min-width: 0; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.team-chapter-link { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-width: 0; padding: 14px; color: var(--text); text-decoration: none; }
a.team-chapter-link:hover { color: var(--accent-pale); }
.team-chapter-cover { display: block; width: 48px; height: 68px; overflow: hidden; border-radius: 6px; background: var(--surface-strong); }
.team-chapter-cover img { width: 100%; height: 100%; object-fit: cover; }
.team-chapter-copy { display: grid; gap: 5px; min-width: 0; }
.team-chapter-copy > strong { font: 400 20px/1.25 var(--display); }
.team-chapter-number { color: var(--muted); font-size: 14px; line-height: 1.45; }
.team-chapter-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.team-chapter-meta > span { color: var(--accent-pale); }
.team-chapter-unavailable { color: var(--muted); font-size: 12px; }
.team-chapter.is-compact { border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.team-chapter.is-compact .team-chapter-link { grid-template-columns: 44px minmax(0, 1fr); align-items: start; gap: 11px; padding: 14px 0; }
.team-chapter.is-compact .team-chapter-cover { width: 44px; height: 62px; }
.team-chapter.is-compact .team-chapter-copy > strong { font: 600 13px/1.45 var(--sans); }
.team-chapter.is-compact .team-chapter-number, .team-chapter.is-compact .team-chapter-meta { font-size: 12px; }
.team-all-chapters { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 6px; }
.team-context-note { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.team-origin-note { margin: 14px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }
.team-chapter-variants { padding: 0 14px 8px 76px; color: var(--muted); font-size: 13px; }
.team-chapter-variants summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--accent-pale); }
.team-chapter-variants > div { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.team-chapter-variants a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--text); }
.team-chapter-variants .ui-icon { width: 14px; height: 14px; }
.team-chapter-variants span { display: inline-flex; align-items: center; min-height: 44px; }

.team-source-list { display: grid; gap: 12px; margin-bottom: 20px; }
.team-source-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.team-source-row h3 { margin: 0 0 7px; font: 400 24px/1.2 var(--display); }
.team-source-row p { margin: 0 0 7px; color: var(--muted); font-size: 14px; }
.team-source-row small { color: var(--muted); font-size: 12px; }
.team-source-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.team-source-actions .button { min-height: 44px; font-size: 13px; }
.team-source-actions .ui-icon { width: 16px; height: 16px; }
.team-source-actions .section-link { display: inline-flex; align-items: center; min-height: 44px; }
.team-empty { padding: 24px 8px; }
.team-empty h3 { margin: 0 0 10px; font: 400 26px/1.2 var(--display); }
.team-empty p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.team-empty .button { margin-top: 6px; }
.team-main img[hidden] { display: none; }
.team-title-grid .card-cover.is-unavailable { display: grid; place-items: center; aspect-ratio: 2 / 3; }
.team-cover-fallback { padding: 8px; color: var(--muted); font-size: 11px; line-height: 1.4; text-align: center; }

@media (max-width: 1280px) {
    .team-filters { flex-basis: 100%; }
    .team-title-grid .card-open { grid-template-columns: 78px minmax(0, 1fr); gap: 12px; }
    .team-title-grid .card-cover { width: 78px; }
    .team-title-grid .card-bottom { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid var(--line); }
    .team-title-grid .card-availability small { display: inline; margin-left: 5px; }
}
@media (max-width: 1100px) {
    .team-identity { grid-template-columns: 112px minmax(0, 1fr); grid-template-areas: 'avatar person' 'facts action'; gap: 16px 22px; }
    .team-avatar { width: 112px; height: 112px; }
    .team-person { padding-top: 52px; }
    .team-facts { width: 360px; grid-column: 1 / -1; padding-top: 0; }
    .team-latest { justify-self: end; margin-top: 0; }
    .team-layout { grid-template-columns: minmax(0, 1fr); }
    .team-recent { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; }
    .team-recent h2, .team-all-chapters, .team-origin-note { grid-column: 1 / -1; }
    .team-title-grid .card-open { grid-template-columns: 84px minmax(0, 1fr) 210px; }
    .team-title-grid .card-cover { width: 84px; }
    .team-title-grid .card-bottom { grid-column: auto; padding-top: 0; border: 0; }
    .team-title-grid .card-availability small { display: block; margin-left: 0; }
}
@media (max-width: 760px) {
    .team-main { padding-top: 14px; }
    .team-banner { height: 96px; border-radius: 12px; }
    .team-banner-covers { width: 73%; gap: 6px; }
    .team-banner-covers img { width: calc((100% - 18px) / 4); border-radius: 6px; }
    .team-identity { grid-template-columns: 88px minmax(0, 1fr); grid-template-areas: 'avatar person' 'facts facts' 'action action'; gap: 12px 15px; min-height: 0; margin-top: -30px; padding: 0 8px; }
    .team-avatar { width: 88px; height: 88px; border-radius: 18px; }
    .team-avatar-fallback { font-size: 34px; }
    .team-person { padding-top: 35px; }
    .team-person h1 { font-size: 32px; margin-bottom: 5px; }
    .team-person p { font-size: 13px; line-height: 1.4; }
    .team-facts { grid-area: facts; width: 100%; }
    .team-facts strong { font-size: 25px; }
    .team-facts span { font-size: 11px; }
    .team-facts div { padding-inline: 6px; }
    .team-latest { width: 100%; min-height: 44px; font-size: 14px; }
    .team-tabs { justify-content: space-between; gap: 4px; margin: 10px 0 14px; }
    .team-tabs a { min-height: 44px; padding-inline: 10px; font-size: 14px; }
    .team-layout { gap: 18px; }
    .team-content, .team-recent { padding: 14px; border-radius: 16px; }
    .team-content { scroll-margin-top: 82px; }
    .team-content-head { gap: 14px; margin-bottom: 16px; }
    .team-content-head > div { gap: 6px 12px; }
    .team-content h2, .team-recent h2 { font-size: 28px; }
    .team-content-head > div > span { font-size: 12px; }
    .team-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .team-search { grid-column: 1 / -1; }
    .team-search input { font-size: 16px; }
    .team-select select { font-size: 13px; padding-left: 10px; padding-right: 24px; }
    .team-title-grid .card-open { display: grid; grid-template-columns: 72px minmax(0, 1fr); grid-template-rows: auto auto; gap: 10px 12px; padding: 12px; }
    .team-title-grid .card-cover { width: 72px; }
    .team-title-grid .card-copy { padding: 0; }
    .team-title-grid .card-copy h3 { font-size: 18px; margin-bottom: 7px; }
    .team-title-grid .card-genres { font-size: 11px; margin-bottom: 5px; }
    .team-title-grid .card-status { font-size: 11px; margin-top: 4px; }
    .team-title-grid .card-rating span { font-size: 11px; }
    .team-title-grid .card-bottom { grid-column: 1 / -1; flex-wrap: wrap; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); width: 100%; }
    .team-title-grid .card-availability { font-size: 15px; }
    .team-title-grid .card-availability small { font-size: 11px; }
    .team-title-grid .card-cta { width: auto; min-height: 44px; padding-inline: 10px; font-size: 13px; }
    .team-title-grid .card-save { left: 46px; top: 8px; right: auto; width: 44px; height: 44px; padding: 13px; }
    .team-title-grid .card-save::before { inset: 8px; }
    .team-title-grid .card-save .ui-icon { width: 16px; height: 16px; }
    .team-recent { display: block; }
    .team-chapter-link { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 11px; padding: 12px; }
    .team-chapter-cover { width: 44px; height: 62px; }
    .team-chapter-copy > strong { font-size: 18px; }
    .team-chapter-number { font-size: 13px; }
    .team-chapter-meta { font-size: 12px; }
    .team-chapter-variants { padding-left: 67px; }
    .team-source-row { padding: 14px; }
    .team-source-actions { width: 100%; justify-content: space-between; }
    .team-source-actions .button { flex: 1; }
    .team-context-note { font-size: 13px; }
}
@media (max-width: 360px) {
    .team-banner { height: 90px; }
    .team-identity { grid-template-columns: 74px minmax(0, 1fr); gap: 12px; }
    .team-avatar { width: 74px; height: 74px; border-radius: 16px; }
    .team-person h1 { font-size: 29px; }
    .team-person p { font-size: 12px; }
    .team-facts span { font-size: 11px; }
    .team-filters { grid-template-columns: minmax(0, 1fr); }
    .team-search { grid-column: 1; }
    .team-select select { font-size: 14px; }
    .team-content, .team-recent { padding-inline: 10px; }
    .team-content h2 { font-size: 26px; }
    .team-title-grid .card-open { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 10px; }
    .team-title-grid .card-cover { width: 64px; }
    .team-title-grid .card-copy h3 { font-size: 17px; }
    .team-title-grid .card-save { left: 36px; top: 6px; }
}
