.profile-shell{max-width:780px;margin:0 auto;padding:24px 20px 70px;color:#eef5f2}.profile-shell nav{padding:10px 0 35px}.profile-shell a{color:#f0ca85}.profile-shell h1{font-family:Fraunces,Georgia,serif;font-size:clamp(36px,6vw,60px);margin:0 0 25px}.profile-card{background:#142b35;border:1px solid #426574;border-radius:20px;padding:24px;margin:18px 0}.profile-head{display:flex;gap:20px;align-items:center}.profile-head img,.profile-fallback{width:96px;height:96px;border-radius:50%;object-fit:cover;flex:none}.profile-fallback{display:grid;place-items:center;background:#365b65;color:#f5d48b;font-size:44px}.profile-head h2{margin:0 0 8px;font-size:24px;overflow-wrap:anywhere}.profile-head p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}.profile-shell label{display:block;font-weight:700;margin:18px 0 8px}.profile-shell textarea,.profile-shell input[type=file]{display:block;width:100%;border:1px solid #7097a6;background:#203844;color:#fff;border-radius:9px;padding:12px;font:inherit}.profile-shell textarea{resize:vertical}.profile-shell button{border:1px solid #d7b679;background:#e8b96b;color:#142632;border-radius:9px;padding:11px 16px;font:inherit;font-weight:750;cursor:pointer;margin:12px 8px 3px 0}.profile-shell button:disabled{opacity:.5;cursor:wait}.profile-shell p{line-height:1.5}.preset-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.preset-grid button{margin:0;padding:7px;background:#203844;border:2px solid #537985}.preset-grid button[aria-pressed=true]{border-color:#f4d38b;box-shadow:0 0 0 3px #f4d38b44}.preset-grid img{width:100%;max-width:96px;aspect-ratio:1;display:block;margin:auto;border-radius:50%}#edit-status{min-height:24px;color:#f0cf93}@media(max-width:520px){.profile-head img,.profile-fallback{width:72px;height:72px}.preset-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.profile-card{padding:18px}}

.visibility-choice{display:flex;align-items:center;gap:12px}.visibility-choice input{width:20px;height:20px}

#pending-photo{margin:16px 0;padding:14px;border:1px solid var(--border,#557);border-radius:12px}#pending-photo img{border-radius:10px;object-fit:cover;display:block}#photo-review-link{display:inline-block;margin:12px 0}
.profile-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}.profile-actions button{margin:0}.profile-movie-list{display:grid;gap:7px}.profile-movie-row{display:flex;gap:12px;align-items:center;justify-content:space-between;border-top:1px solid var(--border,#537985);padding:8px 0}.profile-movie-row a{overflow-wrap:anywhere}.profile-movie-row button{padding:5px 9px;font-size:13px;margin:0}.profile-movie-search{display:flex;gap:8px}.profile-movie-search input{flex:1;min-width:0;padding:10px;font:inherit;font-size:16px;color:var(--text,#fff);background:var(--background,#203844);border:1px solid var(--border,#7097a6);border-radius:9px}.profile-movie-search button{margin:0}#profile-movie-results{max-height:220px;overflow:auto}#profile-movie-results button{display:block;width:100%;text-align:left;padding:8px;margin:5px 0}#profile-movie-status{min-height:20px}

.profile-movie-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:14px;margin:18px 0 25px}.profile-movie-card{min-width:0;padding:8px;background:#1d3540;border:1px solid #496876;border-radius:14px;display:flex;flex-direction:column;gap:4px}.profile-movie-link{display:flex;flex-direction:column;gap:5px;text-decoration:none;color:inherit!important;min-width:0}.profile-movie-link:hover .profile-movie-title{text-decoration:underline}.profile-poster{display:grid;place-items:center;width:100%;aspect-ratio:2/3;overflow:hidden;border-radius:9px;background:#2a4651;color:#d9e2e0}.profile-poster img{display:block;width:100%;height:100%;object-fit:cover;grid-area:1/1}.profile-poster img[hidden]{display:none}.profile-poster-fallback{grid-area:1/1;padding:10px;text-align:center;font-size:.82rem;color:#c3d3d4}.profile-movie-title{display:block;overflow-wrap:anywhere;line-height:1.25;font-size:.95rem}.profile-movie-detail{color:#b8ced0;font-size:.82rem}.profile-movie-card button{align-self:flex-start;margin-top:auto}.profile-poster-credit{font-size:.75rem;color:#b8ced0}.profile-shell #profile-movie-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px;max-height:390px;overflow:auto;padding:8px 2px}.profile-shell #profile-movie-results .profile-search-card{display:flex;flex-direction:column;align-items:stretch;gap:5px;min-width:0;text-align:left;margin:0;padding:8px;background:#1d3540;color:#eef5f2;border:1px solid #61808c}.profile-search-card strong{line-height:1.25;overflow-wrap:anywhere}.profile-search-action{color:#f0ce8f;font-size:.85rem}.profile-search-card .profile-poster{flex:none}@media(max-width:520px){.profile-movie-list,.profile-shell #profile-movie-results{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}}

#profile-dislikes .profile-movie-card{border-color:#9b7b75}#profile-dislikes .profile-movie-card button{margin-top:auto}#dislike-status{min-height:20px;color:#efcf9b}
/* A missing poster should not consume a full poster-sized card. */
.profile-poster{aspect-ratio:auto;min-height:78px}.profile-poster.has-poster{aspect-ratio:2/3;min-height:0}.profile-poster-fallback{padding:10px 5px}.profile-movie-card button{width:100%;margin:8px 0 0;align-self:stretch}
