/* v0.7 — adaptive refinement, consistent controls, readable microcopy and authentication. */
:root{--control-radius:8px;--control-border:var(--line);}
*,*::before,*::after{box-sizing:border-box}
main,section,article,aside,form,fieldset,.wrap,.admin-body,.timeline,.panel,.rank-person,.post-head>div,.podium-info>a,.tile-info,.contest-poster,.external-poster{min-width:0}
img{max-width:100%;vertical-align:middle}
button,.btn,input,select,textarea{max-width:100%}
button,.btn{white-space:normal;overflow-wrap:normal;line-height:1.3;text-align:center;border-radius:var(--control-radius)}
button:disabled,.btn[aria-disabled=true]{cursor:not-allowed;opacity:.55}
button[aria-busy=true]{cursor:progress}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--brand,#79b9f4);outline-offset:3px}
form input[type=file]{min-width:0;width:100%;max-width:100%;overflow:hidden}
input:not([type=checkbox]):not([type=radio]),select,textarea{min-width:0}
select{text-overflow:ellipsis}
.pre,.tile-title,.tile-meta,.post-name,.post-body,.profile-name,.rank-person,.rank-person span,.podium-info,.lv-author span,.lv-description,.lv-comment-content,.notice,.muted,.kv span,.actions,.admin-body td{overflow-wrap:anywhere;word-break:normal}
.actions,.tabs,.post-actions,.lv-reactions,.lv-comment-actions,.feed-tabs,.country-strip,.rank-genres,.stats,.cinema-stats{flex-wrap:wrap;min-width:0;gap:8px 12px}
.actions>*{min-width:0;max-width:100%}.actions form{flex-shrink:1}.actions form button{max-width:100%}
.tile-meta{gap:6px;flex-wrap:wrap}.tile-meta>*{min-width:0;max-width:100%}
.dropdown>div{max-width:min(280px,calc(100vw - 24px));min-width:min(190px,calc(100vw - 24px))}.nav nav .dropdown:last-child>div{left:auto;right:0}
.dropdown>div a{white-space:normal}.nav-actions>a{overflow-wrap:anywhere}
.post-menu{position:relative;min-width:28px;flex-shrink:0}.post-menu>summary{list-style:none;padding:4px 6px}.post-menu>summary::-webkit-details-marker{display:none}.post-menu:not([open])>form{display:none!important}.post-menu[open]{z-index:9}.post-menu>form{position:relative;right:auto;left:auto;width:100%;max-width:100%;margin:4px 0}.post-menu[open]{width:min(190px,48vw);border:1px solid var(--line);padding:8px;border-radius:8px;background:var(--surface)}.post-menu[open] textarea{width:100%;max-width:100%}.post-menu[open] button{width:100%}
.lv-tools{flex-shrink:0}.lv-brand{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lv-author>span{min-width:0}.lv-bottom>*{min-width:0}.lv-related-link{white-space:normal;text-align:center;line-height:1.2}.lv-comment-menu>div{max-width:min(235px,calc(100vw - 72px));right:0;left:auto}.lv-reactions .lv-react{min-width:32px;min-height:32px;justify-content:center;line-height:1.15}.lv-reactions .lv-views{white-space:nowrap}.lv-frame{object-fit:contain;object-position:center}.lv-strip button{border-width:1px}.lv-strip button[aria-pressed=true]{border-width:2px}.lv-viewer .lv-comment-list details:not([open])>article{display:none!important}.lv-compose-row{align-items:flex-end}.lv-compose-row .lv-send{width:38px;min-width:38px}.lv-compose-row .lv-comment-avatar{align-self:center}.lv-compose-footer{flex-wrap:wrap;gap:5px}.lv-compose-footer small{line-height:1.2}.lv-sidebar .kv{flex-wrap:wrap}.lv-sidebar .kv span{min-width:0}
.feed-attachments a{aspect-ratio:4/3}.feed-attachments[data-attachment-count="1"] a{aspect-ratio:auto}.feed-attachments[data-attachment-count="3"] a:first-child{aspect-ratio:auto}.feed-attachments img{height:100%;width:100%;object-position:center}.feed-attachments[data-attachment-count="1"] img{height:auto;max-height:500px;object-fit:contain}.feed-reply>div,.feed-compose textarea{min-width:0}.post-actions a,.post-actions button{white-space:nowrap;min-width:0}.feed-tabs a{white-space:normal}.feed-compose button{flex-shrink:0}
.table-scroll{max-width:100%;overflow-x:auto;border-radius:8px;scrollbar-width:thin}.table-scroll table{width:100%;min-width:355px;border-collapse:collapse}.table-scroll td,.table-scroll th{padding:9px 10px;text-align:left;overflow-wrap:anywhere}.rank-row>*{min-width:0}.rank-person>span{min-width:0}.rank-score{white-space:nowrap}.rank-person .avatar,.podium-info .avatar{flex-shrink:0}.rank-previews img{flex-shrink:0}
.auth-dialog{width:min(440px,calc(100% - 24px));max-width:100%;max-height:calc(100dvh - 24px);margin:auto;padding:25px;border:1px solid #444d5c;border-radius:16px;background:#1a1e25;color:#eff2f7;box-shadow:0 24px 70px #000b;overflow:auto;color-scheme:dark;z-index:10020}
.auth-dialog::backdrop{background:#05070bbd;backdrop-filter:blur(4px)}.auth-dialog h2{margin:8px 0 8px;font-size:26px;line-height:1.1}.auth-dialog .muted{color:#adb8c6;font-size:14px}.auth-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.auth-close{width:32px;height:32px;padding:0;border:1px solid #ffffff24;background:transparent;color:#fff;font-size:24px}.auth-dialog form{display:grid;gap:13px;margin:17px 0 12px}.auth-dialog label{display:grid;gap:6px;font-size:13px;color:#d5dde7}.auth-dialog input{width:100%;border:1px solid #424c5d;border-radius:8px;padding:11px 12px;background:#10141a;color:#fff}.auth-dialog .auth-submit{background:#8fc5f5;color:#111a23;border-color:#8fc5f5;font-weight:700;width:100%;min-height:42px}.auth-links{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;font-size:13px}.auth-links a{color:#a7cef5}.auth-error{color:#ffb5bb;background:#7429352e;border:1px solid #d867714d;padding:9px 11px;border-radius:7px;overflow-wrap:anywhere;font-size:13px}.auth-error[hidden]{display:none}.demo-strip{background:#192c3b;color:#c3dff5;font-size:11px;line-height:1.3;text-align:center;padding:5px 12px}.demo-strip a{text-decoration:underline;color:inherit}
@media(max-width:1250px){.nav nav{gap:12px;min-width:0}.nav-actions{min-width:0}.nav nav .dropdown:last-child>div{right:0;left:auto}}
@media(max-width:950px){.nav nav{overflow-x:visible!important;flex-wrap:wrap}.nav nav .dropdown>div{position:absolute;top:100%;left:0;right:auto}.nav nav .dropdown:last-child>div{left:auto;right:0}.nav-actions{flex-wrap:wrap}.rank-hero h1{overflow-wrap:anywhere}}
@media(max-width:680px){.wrap{padding-left:12px;padding-right:12px}.nav{padding:9px 12px;gap:9px}.nav nav{justify-content:flex-start;gap:8px 12px}.nav nav .dropdown>div{min-width:165px}.nav nav .dropdown:last-child>div{left:0;right:auto}.nav-actions{gap:6px}.nav-actions>a{max-width:100px;line-height:1.2}.nav-actions .btn{min-height:32px}.admin-layout,.social-layout,.two{grid-template-columns:minmax(0,1fr)!important;gap:12px}.admin-nav{max-width:100%;padding:6px;overflow-x:auto}.admin-nav a{padding:8px 10px}.panel,.admin-body .panel{padding:12px}.admin-photo{grid-template-columns:minmax(0,80px) minmax(0,1fr);gap:10px}.admin-photo img{width:100%;height:auto}.admin-body .actions,.admin-body form{min-width:0}.cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr))}.rank-row{grid-template-columns:22px 26px minmax(0,1fr) 42px;gap:4px;padding:9px 3px}.rank-person{gap:6px}.rank-person .avatar{width:30px;height:30px}.rank-score{font-size:14px}.rank-delta{font-size:10px}.rank-position{font-size:16px}.section-head{flex-wrap:wrap}.section-head a{min-width:0}.contest-filter,.contest-filters,.external-poster,.external-grid,.contest-catalog,.contest-poster{min-width:0;max-width:100%}.external-poster .actions,.poster-footer{flex-wrap:wrap}.external-poster p{overflow-wrap:anywhere}.social-layout .post-card{padding:12px}.social-layout .timeline-title,.social-layout .feed-tabs,.social-layout .social-search{padding-left:0;padding-right:0}.post-menu[open]{width:min(155px,40vw)}.lv-viewer .lv-sidebar{padding-left:10px;padding-right:10px}.lv-toolbar,.lv-bottom{gap:5px}.lv-tools{gap:4px}.lv-tools button{padding:4px 8px}.lv-brand{font-size:16px}.lv-reactions{gap:6px;justify-content:space-between}.lv-react{font-size:18px!important}.lv-bottom .lv-related-link{padding:4px 6px}.lv-comment{gap:5px;grid-template-columns:28px minmax(0,1fr) auto;margin-left:calc(var(--depth,0)*5px)}.lv-comment-avatar.avatar{width:27px;height:27px}.lv-comment-head{flex-wrap:wrap}.lv-comment-head select{max-width:100%}.feed-attachments img{max-height:260px}.feed-compose button{padding:8px}.auth-dialog{padding:20px}}
@media(max-width:360px){.rank-genres,.country-strip,.tabs{gap:5px}.nav-actions .theme-switch{padding:4px 7px}.auth-dialog{padding:16px}.lv-brand{font-size:14px}.lv-tools button{padding:3px 6px}.lv-sidebar{padding-left:8px!important;padding-right:8px!important}.lv-compose-footer{padding-left:0}.lv-bottom{font-size:10px}.lv-related-link{max-width:125px}.feed-compose{gap:5px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
.nav .dropdown:not([open])>div{display:none!important}.nav .dropdown[open]>div{position:fixed;left:var(--menu-left,12px)!important;right:auto!important;top:var(--menu-top,65px)!important;width:min(220px,calc(100vw - 24px));max-height:calc(100dvh - var(--menu-top,65px) - 12px);overflow-y:auto;z-index:20}
@media(max-width:680px){.award-hero{margin:25px -12px 0}.gallery-heading h1,.page-title h1,.directory-banner h1,.rank-hero h1,.awards-copy h1,.detail-hero-copy h1{overflow-wrap:anywhere;max-width:100%}.gallery-heading,.page-title,.directory-banner{min-width:0;max-width:100%}.admin-nav{max-width:100%}.admin-body,.table-scroll{width:100%}.filters{min-width:0;max-width:100%}.filters>*{min-width:0!important;max-width:100%}.filters>input{flex-basis:160px}.feed-shortcuts{max-width:100%}.feed-shortcuts a{flex-shrink:0}.post-menu[open]{position:absolute;top:12px;right:10px;width:min(190px,65vw);max-width:75%}.post-menu[open] textarea{min-width:0}.notification{flex-wrap:wrap;gap:6px}.notification>*{min-width:0}.admin-layout .admin-body .panel{border-radius:8px}.admin-body .cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr))}}
@media(max-width:680px){.contest-grid{margin:4px -12px 0}.contest-visual{min-width:0}.hero-copy,.cinema-copy{min-width:0}.post-head .post-name{overflow-wrap:anywhere}}
