/* Public profile editing and the header settings shortcut */
.header-actions .settings-link{width:42px;height:42px;display:grid;place-items:center;border:1px solid color-mix(in srgb,var(--accent) 30%,transparent);border-radius:14px;background:color-mix(in srgb,var(--accent) 5%,transparent);color:var(--accent);font-size:19px;text-decoration:none;transition:background .18s,border-color .18s,color .18s}
.header-actions .settings-link:hover,.header-actions .settings-link:focus-visible{background:color-mix(in srgb,var(--accent) 18%,transparent);border-color:color-mix(in srgb,var(--accent) 56%,transparent);color:var(--accent-strong,var(--accent))}
.header-actions .settings-link:focus-visible,.profile-edit-trigger:focus-visible{outline:2px solid #c4a2f1;outline-offset:3px}
.profile-edit-trigger{flex:0 0 48px;width:48px;height:48px;display:grid;place-items:center;margin:0 0 8px auto;padding:0;border:1px solid #ffffff24;border-radius:15px;background:#c2a8ff;color:#171020;font-size:24px;line-height:1;cursor:pointer;box-shadow:0 8px 28px #0004;transition:transform .18s,box-shadow .18s,background .18s}
.profile-edit-trigger:hover{transform:translateY(-2px);background:#d2bdff;box-shadow:0 12px 32px #0006}
.profile-editor-panel{display:grid;gap:20px;margin-top:20px;padding:clamp(18px,3vw,30px);border:1px solid #c4a2f133;border-radius:24px;background:linear-gradient(145deg,#161422f5,#0e121cf7);box-shadow:0 24px 75px #0003;animation:profile-editor-in .24s ease-out}
.profile-editor-panel>header{display:grid;gap:6px}
.profile-editor-panel>header .eyebrow{margin:0;color:#c7a8ff}
.profile-editor-panel>header h2{margin:0;font-size:clamp(22px,3vw,30px);letter-spacing:-.04em}
.profile-editor-panel>header .muted{margin:0;max-width:650px;font-size:12px;line-height:1.7}
.profile-editor-panel .profile-edit-settings{gap:14px}
.profile-editor-panel .profile-username-form{display:grid;gap:10px;grid-column:1/-1;padding:20px;border:1px solid var(--line);border-radius:18px;background:color-mix(in srgb,var(--panel) 92%,transparent)}
.profile-editor-panel .profile-username-form label{display:grid;gap:8px;font-size:13px;font-weight:650}
.profile-editor-panel .profile-username-form input{width:100%;min-height:45px;padding:10px 13px;border:1px solid var(--line);border-radius:12px;background:var(--surface-deep,var(--bg));color:var(--text);font:inherit}
.profile-editor-panel .profile-username-form small{color:var(--muted);font-size:11px}
.profile-editor-panel .profile-username-form .button{justify-self:start}
@keyframes profile-editor-in{from{opacity:0;transform:translateY(-7px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:800px){.header-actions .settings-link{width:37px;height:37px;border-radius:12px}.profile-edit-trigger{grid-column:1/-1;justify-self:end;width:42px;height:42px;flex-basis:42px;margin:4px 0 0 auto;border-radius:13px}.profile-editor-panel{margin-top:15px;border-radius:19px}.profile-editor-panel .profile-edit-settings{grid-template-columns:1fr}.profile-editor-panel .profile-edit-settings>*{grid-column:1/-1}.profile-editor-panel .profile-edit-settings .banner-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.profile-editor-panel{animation:none}.profile-edit-trigger,.header-actions .settings-link{transition:none}}
.header-actions .settings-link.active,.header-actions .settings-link[aria-current=page]{background:color-mix(in srgb,var(--accent,#c2a8ff) 17%,#090b14);border-color:color-mix(in srgb,var(--accent,#c2a8ff) 52%,transparent);color:var(--accent,#c2a8ff);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent,#c2a8ff) 8%,transparent)}
.header-actions .settings-link.active:hover,.header-actions .settings-link[aria-current=page]:hover{background:color-mix(in srgb,var(--accent,#c2a8ff) 25%,#090b14);color:#f4eaff}

/* Profile art picker and calmer public profile composition. */
.social-avatar>img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.public-profile-page{max-width:1420px;padding:34px clamp(18px,4.5vw,72px) 64px}
.public-profile-header{display:grid;min-width:0}
.public-profile-hero{height:220px;min-height:220px;padding:0;align-items:end;border-color:#c3b1f027;border-radius:26px;background-color:#0b111b;box-shadow:0 20px 60px #0003}
.public-profile-hero.has-image-banner:after{background:linear-gradient(90deg,#080d15e8 0%,#080d15b8 48%,#080d1570 100%),linear-gradient(0deg,#080d15d9 0%,transparent 90%)}
.public-profile-banner-image{opacity:.48;object-position:center 43%;filter:saturate(.82)}
.public-profile-content{gap:14px;margin:-35px 24px 0;padding:18px 22px;z-index:2;border:1px solid #ffffff19;border-radius:21px;background:linear-gradient(125deg,#111a28f2,#0b111cf4);box-shadow:0 18px 48px #0005;backdrop-filter:blur(18px)}
.public-profile-identity{gap:18px}
.public-profile-identity>.social-avatar{width:82px;height:82px;flex-basis:82px;border:2px solid #ffffff40;border-radius:23px;box-shadow:0 8px 24px #0005}
.public-profile-identity h1{font-size:clamp(30px,4vw,44px);text-shadow:0 2px 22px #000b}
.public-profile-identity .eyebrow{font-size:9px;letter-spacing:.19em}
.public-profile-identity>div>span{color:#e1d7eb}
.public-profile-bio{margin:0;width:min(720px,100%);font-size:13px}
.profile-editor-panel{gap:22px;margin-top:18px;padding:clamp(20px,3vw,34px);border-color:#ffffff17;border-radius:22px;background:linear-gradient(145deg,#111a28f7,#0b111bf9);box-shadow:0 18px 60px #0003}
.profile-editor-panel>header{padding-bottom:17px;border-bottom:1px solid #ffffff12}
.profile-edit-settings{grid-template-columns:minmax(0,1fr);gap:16px}
.profile-edit-settings>.profile-edit-overview,.profile-edit-settings>.profile-bio-form{grid-column:1}
.profile-edit-overview{padding:16px 19px;border-radius:16px;background:linear-gradient(110deg,#c2a8ff10,#ffffff03)}
.profile-edit-overview>.social-avatar{width:58px;height:58px;flex-basis:58px;border-radius:18px}
.profile-edit-overview h3{font-size:17px}
.profile-editor-panel .profile-username-form{grid-column:1;padding:18px;border-radius:16px}
.profile-photo-editor,.profile-banner-settings,.profile-bio-form{padding:clamp(17px,2.4vw,25px);border-color:#ffffff13;border-radius:18px;background:#ffffff03}
.profile-art-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:17px}
.profile-art-heading h3{font-size:19px;margin:3px 0 6px}
.profile-art-heading .eyebrow{margin:0 0 5px;font-size:8px}
.profile-art-heading .muted{max-width:580px;font-size:12px;line-height:1.6}
.profile-photo-editor>.profile-art-heading>.social-avatar{width:68px;height:68px;flex:0 0 68px;margin:0;border-radius:22px}
.profile-art-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:14px}
.profile-art-filters{display:flex;flex-wrap:wrap;gap:6px}
.profile-art-filter{min-height:34px;padding:6px 11px;border:1px solid #ffffff13;border-radius:999px;background:#080d15;color:#aeb9ca;font-size:10px;font-weight:650}
.profile-art-filter:hover,.profile-art-filter[aria-pressed=true]{border-color:color-mix(in srgb,var(--accent) 60%,transparent);background:color-mix(in srgb,var(--accent) 13%,#0b111b);color:var(--text)}
.profile-art-shuffle{min-height:36px;margin:0!important;padding:7px 12px;white-space:nowrap;font-size:10px}
.profile-art-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:10px;max-height:280px;overflow:auto;overscroll-behavior:contain;padding:3px 3px 8px;scrollbar-width:thin;scrollbar-color:#c2a8ff40 transparent}
.profile-art-choice{position:relative;display:block;min-width:0;padding:0;overflow:hidden;border:1px solid #ffffff18;border-radius:13px;background:#080d15;transition:transform .18s,border-color .18s,box-shadow .18s}
.profile-art-choice:hover{transform:translateY(-2px);border-color:#c2a8ff8a}
.profile-art-choice[aria-pressed=true]{border-color:var(--accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 38%,transparent)}
.avatar-choices.profile-art-grid .profile-art-choice{aspect-ratio:1;border-radius:50%}
.avatar-choices.profile-art-grid .profile-art-choice img{display:block;width:100%;height:100%;object-fit:cover}
.banner-choices.profile-art-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));max-height:350px}
.banner-art-choice{aspect-ratio:16/7;border-radius:11px}
.banner-art-choice img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s}
.banner-art-choice:hover img{transform:scale(1.04)}
.banner-art-choice span{position:absolute;inset:auto 0 0;padding:18px 8px 7px;background:linear-gradient(transparent,#070a10e8);font-size:9px;font-weight:650;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-art-status{min-height:17px;margin:6px 0 12px;font-size:10px}
.profile-art-attribution{margin-top:13px;color:var(--muted);font-size:9px;line-height:1.6}
.profile-art-attribution a{color:var(--accent);text-decoration:underline;text-underline-offset:2px}
.profile-art-attribution img{display:inline-block;width:58px;height:18px;object-fit:contain;vertical-align:middle;margin:0 8px 0 0}
.tmdb-credits{position:relative;flex:0 0 100%;margin-top:12px;padding-top:10px;border-top:1px solid var(--line);font-size:10px}
.tmdb-credits summary{width:max-content;cursor:pointer;color:var(--muted)}
.tmdb-credits>div{display:flex;align-items:center;gap:12px;padding-top:8px}
.tmdb-credits img{display:block;width:90px;height:26px;object-fit:contain}
.tmdb-credits p{max-width:560px;font-size:10px;line-height:1.5}
.profile-photo-editor input[type=file],.profile-banner-settings input[type=file]{display:none}
.profile-editor-panel .profile-preview-link{margin:14px 0 0}
.profile-banner-settings .button.secondary{margin-top:10px}
.profile-banner-settings .profile-art-attribution{margin-bottom:0}
.profile-bio-form textarea{width:100%;padding:13px 14px;border:1px solid var(--line);border-radius:13px;background:#080d15;color:var(--text);font:inherit;line-height:1.65}
.profile-bio-form .profile-bio-count{margin-top:10px}
@media(max-width:700px){.public-profile-page{padding:20px 14px 38px}.public-profile-hero{height:165px;min-height:165px;padding:0;border-radius:20px}.public-profile-content{margin:-28px 10px 0;padding:15px;border-radius:17px;gap:11px}.public-profile-identity{grid-template-columns:58px minmax(0,1fr);gap:12px}.public-profile-identity>.social-avatar{width:58px;height:58px;flex-basis:58px;border-radius:17px}.public-profile-identity h1{font-size:25px}.public-profile-identity>.button{grid-column:2;justify-self:end;min-height:38px;margin:4px 0 0}.public-profile-bio{width:100%;margin:0;font-size:12px}.profile-art-toolbar{align-items:flex-start;flex-direction:column}.profile-art-shuffle{align-self:flex-end}.profile-art-grid{grid-template-columns:repeat(auto-fill,minmax(70px,1fr));max-height:240px}.banner-choices.profile-art-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-art-heading .muted{font-size:11px}}
@media(prefers-reduced-motion:reduce){.profile-art-choice,.banner-art-choice img{transition:none}}

/* Public profile refresh: let the cover artwork breathe and keep portrait art cropped to a true avatar. */
.public-profile-page{max-width:1500px;padding:clamp(24px,3vw,40px) clamp(18px,4vw,64px) 72px}
.public-profile-hero{height:250px;min-height:250px;border-radius:24px;background-color:#0b111b;box-shadow:0 22px 64px #0003}
.public-profile-hero.has-image-banner:after{background:linear-gradient(0deg,#080d15a8 0%,#080d1540 42%,#080d1512 100%)}
.public-profile-banner-image{opacity:.94;object-position:center 43%;filter:saturate(1.04) contrast(1.02)}
.public-profile-content{--profile-avatar-size:88px;--profile-identity-gap:17px;gap:16px;margin:-36px 0 0;padding:18px 24px;border-color:#ffffff20;border-radius:20px;background:linear-gradient(115deg,#111a28e8,#0c121de8);box-shadow:0 18px 46px #0004;backdrop-filter:blur(16px)}
.public-profile-identity{align-items:center;gap:17px}
.public-profile-identity>.social-avatar{position:relative;display:block!important;flex:0 0 88px!important;width:88px!important;height:88px!important;min-width:88px;min-height:88px;max-width:88px;max-height:88px;aspect-ratio:1;overflow:hidden;border:2px solid #ffffff50;border-radius:50%;background:#101827;box-shadow:0 8px 25px #0005}
.social-avatar>img{position:absolute;inset:0;display:block;width:100%;height:100%;min-width:0;min-height:0;max-width:none;max-height:none;object-fit:cover;object-position:50% 50%;border-radius:inherit}
.public-profile-identity h1{font-size:clamp(30px,3.6vw,42px);text-shadow:none}
.public-profile-identity>div{padding-bottom:0}
.public-profile-identity .eyebrow{margin-bottom:6px}
.public-profile-identity>div>span{margin-top:4px;color:#aab6c9}
.public-profile-bio{width:min(720px,calc(100% - var(--profile-avatar-size) - var(--profile-identity-gap)));margin:0 0 0 calc(var(--profile-avatar-size) + var(--profile-identity-gap))}
.profile-edit-trigger{margin:0 0 0 auto;border-color:#d8c5ff55;box-shadow:0 5px 18px #0003}
.profile-section-grid{gap:20px;margin-top:22px}
.profile-section-grid{grid-template-columns:minmax(0,1fr)}
.profile-history,.profile-comment-history{padding:clamp(18px,2vw,25px);border-color:#ffffff17;border-radius:20px;background:linear-gradient(145deg,#131a29f5,#0d1420f5);box-shadow:0 16px 42px #0002}
.profile-history .section-head,.profile-comment-history .section-head{align-items:end;margin-bottom:16px}
.profile-history h2,.profile-comment-history h2{font-size:clamp(20px,2vw,24px);letter-spacing:-.035em}
.profile-count{color:#9daec3}
.profile-watch-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(9px,1.1vw,14px)}
.profile-watch-card>img{border-radius:10px;box-shadow:0 8px 18px #0002}
.profile-watch-card>span{padding:8px 1px}
.profile-watch-card strong{font-size:11px}
.profile-comment-card{border-color:#ffffff14;border-radius:14px;background:#ffffff04}
@media(max-width:700px){
  .public-profile-page{padding:20px 14px 42px}
  .public-profile-hero{height:175px;min-height:175px;border-radius:19px}
  .public-profile-content{--profile-avatar-size:60px;--profile-identity-gap:12px;margin:-27px 0 0;padding:14px;border-radius:17px;gap:11px}
  .public-profile-identity{grid-template-columns:60px minmax(0,1fr);align-items:center;gap:12px}
  .public-profile-identity>.social-avatar{flex-basis:60px!important;width:60px!important;height:60px!important;min-width:60px;min-height:60px;max-width:60px;max-height:60px;border-radius:50%}
  .public-profile-identity h1{font-size:25px}
  .profile-edit-trigger{grid-column:2;width:42px;height:42px;flex-basis:42px;margin:4px 0 0 auto}
  .profile-section-grid{gap:15px;margin-top:16px}
  .profile-history,.profile-comment-history{padding:16px;border-radius:17px}
  .profile-watch-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
}
.public-profile-name-row{display:flex;align-items:center;flex-wrap:wrap;gap:11px}
.public-profile-name-row h1{margin:0}
.profile-owner-badge{display:inline-flex;align-items:center;gap:6px;min-height:23px;padding:4px 9px;border:1px solid #79d9f447;border-radius:999px;background:linear-gradient(120deg,#56cdeb1c,#a98aff18);color:#9ce8fb;font-size:9px;font-weight:800;letter-spacing:.11em;line-height:1;box-shadow:inset 0 1px #ffffff0a}
.profile-owner-badge:before{content:"";width:6px;height:6px;border-radius:50%;background:#78dbf5;box-shadow:0 0 9px #78dbf588}
