/* Full-height contact sheets scroll behind their floating navigation. */
#videos-list-pane[hidden], .author-scroll[hidden], .author-profile[hidden] { display: none; }
#screen-author { overflow: hidden; }
.author-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.author-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; width: 100%; max-width: 600px; overflow: hidden; margin-inline: auto; }
.author-tile { display: block; position: relative; min-width: 0; padding: 0; margin: 0; border: 0; border-radius: 0; aspect-ratio: 9 / 16; background: var(--surface-2); box-shadow: 1px 0 #101114, 0 1px #101114; overflow: hidden; }
.author-tile img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.author-tile:focus-visible { outline: 3px solid var(--link); outline-offset: -3px; z-index: 1; }
.author-status { text-align: center; padding: 12px 24px; color: var(--text-2); font-size: var(--type-secondary); }
.author-more { display: block; margin: 12px auto; }
.author-profile { padding: 8px var(--screen-x) 10px; width: 100%; max-width: none; margin: 0; border: 0; border-radius: 0; background: var(--surface); }
.author-identity { display: flex; align-items: center; gap: 9px; min-height: 44px; }
.author-profile img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: 0 0 36px; }
.author-names { min-width: 0; flex: 1; }
.author-names strong, .author-names span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.author-names strong { font-size: .9375rem; font-weight: 650; line-height: 1.3; }
.author-names span { font-size: .6875rem; color: var(--text-2); margin-top: 2px; }
.author-follow { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); }
.author-follow[hidden] { display: none; }
.author-follow .i { width: 21px; height: 21px; }
.author-follow[aria-pressed="true"] { background: color-mix(in srgb, #64b7b1 17%, transparent); color: var(--text); }
.author-bio { margin: 6px 0 0; color: var(--text-2); font-size: .75rem; line-height: 1.45; }
.author-bio[hidden] { display: none; }
.author-bio summary { display: flex; align-items: flex-end; gap: 6px; list-style: none; cursor: pointer; }
.author-bio summary::-webkit-details-marker { display: none; }
.author-bio summary span { flex: 1; min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; white-space: pre-line; }
.author-bio summary .i { flex: 0 0 13px; width: 13px; height: 17px; opacity: .6; }
.author-bio[open] summary span { display: block; }
.author-bio[open] summary .i { transform: rotate(180deg); }
.author-social { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin-top: 8px; }
.author-stat { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); font-size: .6875rem; line-height: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.author-stat .i { width: 13px; height: 13px; opacity: .7; }
.library-modes { position: absolute; z-index: 5; bottom: max(8px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: flex; gap: 4px; width: max-content; max-width: calc(100% - 24px); padding: 4px; margin: 0; border: 1px solid var(--line); border-radius: var(--r-pill); background: color-mix(in srgb, var(--surface-2) 85%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.library-modes button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 20px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--text-2); font: inherit; font-size: var(--type-caption); }
.library-modes button[aria-pressed="true"] { background: var(--surface); color: var(--text); }
#stream-author { appearance: none; border: 0; padding: 0; background: transparent; color: inherit; font: inherit; text-align: left; min-height: 44px; cursor: pointer; }
:root[data-access-held] .author-grid, :root[data-access-held] .author-profile { visibility: hidden; }

.author-tile.loading { background: linear-gradient(135deg, var(--surface-2), var(--surface), var(--surface-2)); }
.author-tile.loading img { opacity: 0; }

#screen-videos > .u-hdr, #screen-author > .u-hdr { position: absolute; inset: 0 0 auto; z-index: 4; width: 100%; transform: translateY(calc(-1 * var(--library-header-offset, 0px))); background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
#screen-videos > .author-scroll, #screen-author > .author-scroll { position: absolute; inset: 0; padding-top: var(--library-header-height, calc(var(--top) + 64px)); scroll-padding-top: var(--library-header-height, calc(var(--top) + 64px)); }
#videos-gallery-pane { padding-bottom: calc(env(safe-area-inset-bottom) + 80px); }
#videos-list-pane { padding-top: var(--library-header-height, calc(var(--top) + 64px)); }
#videos-list { padding-bottom: calc(env(safe-area-inset-bottom) + 80px); }
@media (prefers-reduced-transparency: reduce) {
  .library-modes, #screen-videos > .u-hdr, #screen-author > .u-hdr { background: var(--surface-2); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
