/* PWA viewport and mobile touch ergonomics */
html{background:var(--bg)}
body{min-height:100dvh;padding-top:env(safe-area-inset-top)}
.container{
  padding-right:max(16px,env(safe-area-inset-right));
  padding-bottom:calc(72px + env(safe-area-inset-bottom));
  padding-left:max(16px,env(safe-area-inset-left));
}
@media(display-mode:standalone){
  body{overscroll-behavior-y:none}
}
@media(max-width:720px){
  .logo{display:inline-flex;min-height:44px;align-items:center}
  .logo-image{width:68px}
  .btn:not(.link){display:inline-flex;min-height:44px;align-items:center;justify-content:center}
  .auth-form input,.profile-settings-form input,.profile-settings-form select{min-height:44px;font-size:16px}
}
@media(max-width:420px){
  .container{
    padding-right:max(12px,env(safe-area-inset-right));
    padding-left:max(12px,env(safe-area-inset-left));
  }
  .profile-name{display:none}
  .profile-link{padding-right:4px}
  .auth-box{flex-wrap:nowrap}
  .header-logout{padding-inline:11px}
  .profile-section-heading,.profile-fields{padding-right:15px;padding-left:15px}
  .profile-dev-panel{padding:15px}
}

/* Media mode switch and movie mode */
html:has(body[data-media-type="movie"]){--scrollbar-track:#17100d;--scrollbar-thumb:#6a4a3a;--scrollbar-thumb-hover:#8c6049;--scrollbar-thumb-active:#bd7954;background:#130f0d}
.media-mode-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));flex:0 0 auto;gap:3px;padding:3px;border:1px solid var(--border);border-radius:12px;background:rgba(12,16,23,.72);box-shadow:inset 0 1px 0 rgba(255,255,255,.025)}
.media-mode-option{display:flex;min-height:36px;align-items:center;justify-content:center;padding:7px 11px;border-radius:9px;color:var(--muted);font-size:13px;font-weight:820;line-height:1;text-decoration:none;transition:background .16s ease,color .16s ease,box-shadow .16s ease}
.media-mode-option:hover{background:var(--primary-soft);color:var(--text)}
.media-mode-option.is-active{background:var(--primary);color:#fff;box-shadow:0 5px 15px rgba(var(--primary-rgb),.22)}
.media-mode-option:focus-visible,.movie-page a:focus-visible,.movie-page button:focus-visible,.movie-search-card:focus-visible,.movie-library-page a:focus-visible,.movie-library-page button:focus-visible{outline:0;box-shadow:var(--focus-ring)}
.header-flex .search-form{min-width:180px}
body[data-media-type="movie"] .media-mode-switch{background:rgba(24,16,12,.82)}
body[data-media-type="movie"] .profile-avatar{border-color:var(--primary-border);background:linear-gradient(145deg,#f4a064,#a9542d);box-shadow:0 4px 12px rgba(var(--primary-rgb),.22)}
body[data-media-type="movie"] .header-flex #search-input{border-color:#5b4032;background:#18110e}
body[data-media-type="movie"] .header-flex #search-input::placeholder{color:#a9785d}
body[data-media-type="movie"] .header-flex #search-input:hover{border-color:#74503d;background:#1e1511}
body[data-media-type="movie"] .header-flex #search-input:-webkit-autofill,body[data-media-type="movie"] .header-flex #search-input:-webkit-autofill:hover,body[data-media-type="movie"] .header-flex #search-input:-webkit-autofill:active{-webkit-text-fill-color:#f5e7de;caret-color:#f5e7de;-webkit-box-shadow:0 0 0 1000px #18110e inset;box-shadow:0 0 0 1000px #18110e inset;border-color:#5b4032}
body[data-media-type="movie"] .header-flex #search-input:-webkit-autofill:focus{-webkit-text-fill-color:#f5e7de;caret-color:#f5e7de;-webkit-box-shadow:0 0 0 1000px #18110e inset,var(--focus-ring);box-shadow:0 0 0 1000px #18110e inset,var(--focus-ring);border-color:var(--primary)}
body[data-media-type="movie"] .auth-form .form-row input{border-color:#563d31;background:#18110e}
body[data-media-type="movie"] .auth-form .form-row input:hover{border-color:#76513e;background:#211713}
body[data-media-type="movie"] .auth-form .form-row input:focus{border-color:var(--primary);background:#211713;box-shadow:var(--focus-ring)}
body[data-media-type="movie"] .header-flex .suggestions{border-color:#5e4235;background:#211713}
body[data-media-type="movie"] .suggestion:hover,body[data-media-type="movie"] .suggestion.is-active{background:#39271f}
body[data-media-type="movie"] .suggestion.is-active{outline-color:rgba(var(--primary-rgb),.58)}
body[data-media-type="movie"] .header-flex .suggestion-search-status,body[data-media-type="movie"] .header-flex .suggestion-search-status:hover{background:#211713}
body[data-media-type="movie"] .tab-btn.active{border-color:var(--primary-border);background:var(--primary-soft)}
body[data-media-type="movie"] .app-select-trigger{border-color:#563d31;background:#18110e}
body[data-media-type="movie"] .app-select-trigger:hover{border-color:#76513e;background:#211713}
body[data-media-type="movie"] .app-select-trigger:focus-visible,body[data-media-type="movie"] .app-select.is-open .app-select-trigger{border-color:var(--primary);box-shadow:var(--focus-ring)}
body[data-media-type="movie"] .app-select-menu{border-color:#5e4235;background:#211713}
body[data-media-type="movie"] .app-select-option:hover,body[data-media-type="movie"] .app-select-option:focus-visible{background:#3a281f}
body[data-media-type="movie"] .app-select-option.is-selected{background:var(--primary-soft);color:#ffe4d3}
body[data-media-type="movie"] .app-select-option-check{color:#f4a675}
body[data-media-type="movie"] .recommendation-filter-years input{border-color:#563d31;background:#18110e}
body[data-media-type="movie"] .recommendation-filter-years input:hover{border-color:#76513e;background:#211713}
body[data-media-type="movie"] .recommendation-filter-years input:focus{border-color:var(--primary);box-shadow:var(--focus-ring)}
body[data-media-type="movie"] .library-controls{border-color:#503a30;background:linear-gradient(145deg,rgba(34,25,21,.97),rgba(23,17,14,.97))}
body[data-media-type="movie"] .movie-library-page .library-search-icon{color:#d39a76}
body[data-media-type="movie"] .movie-library-page .library-search input{border-color:#5b4032;background:#18110e}
body[data-media-type="movie"] .movie-library-page .library-search input::placeholder{color:#a9785d}
body[data-media-type="movie"] .movie-library-page .library-search input:hover{border-color:#74503d;background:#1e1511}
body[data-media-type="movie"] .library-search input:focus{border-color:var(--primary);box-shadow:var(--focus-ring)}
body[data-media-type="movie"] .movie-library-page .library-control-field{color:#c69a7d}
body[data-media-type="movie"] .movie-library-page .library-control-field>.app-select .app-select-trigger{border-color:#563d31;background:#1a120f}
body[data-media-type="movie"] .movie-library-page .library-control-field>.app-select .app-select-trigger:hover{border-color:#76513e;background:#211713}
body[data-media-type="movie"] .movie-library-page .app-select-trigger:focus-visible,body[data-media-type="movie"] .movie-library-page .app-select.is-open .app-select-trigger{border-color:var(--primary);box-shadow:var(--focus-ring)}
body[data-media-type="movie"] .movie-library-page .app-select-menu{border-color:#5e4235;background:#211713}
body[data-media-type="movie"] .movie-library-page .app-select-option:hover,body[data-media-type="movie"] .movie-library-page .app-select-option:focus-visible{background:#3a281f}
body[data-media-type="movie"] .movie-library-page .app-select-option.is-selected{background:var(--primary-soft);color:#ffe4d3}
body[data-media-type="movie"] .movie-library-page .app-select-option-check{color:#f4a675}
body[data-media-type="movie"] .library-control-field>.app-select .app-select-trigger.has-selection{border-color:var(--primary-border);background:var(--primary-soft)}
body[data-media-type="movie"] .library-tab-count{background:rgba(var(--primary-rgb),.1);color:#efb18b}
body[data-media-type="movie"] .tab-btn.active .library-tab-count{background:rgba(var(--primary-rgb),.22);color:#ffe1cf}
body[data-media-type="movie"] .movie-library-page .library-filter-empty{border-color:#604336;background:rgba(31,21,17,.68)}
body[data-media-type="movie"] .home-section-empty{border-color:#604336;background:rgba(31,21,17,.68)}
body[data-media-type="movie"] .home-section-empty strong{color:#fff1e8}
body[data-media-type="movie"] .home-section-kicker{color:#f2a06e}
body[data-media-type="movie"] .recommendation-reason{border-top-color:rgba(var(--primary-rgb),.3);color:#efb18b}
body[data-media-type="movie"] .person-kicker,body[data-media-type="movie"] .person-section-kicker{color:#f2a06e}

/* Movie download table */
body[data-media-type="movie"] .download-table[data-media-type="movie"] .torrent-multisort-toggle[aria-pressed="true"]{border-color:var(--primary);background:#6b3b25;color:#fff}
body[data-media-type="movie"] .download-table[data-media-type="movie"] .torrent-table-wrap{border-color:#5a4034;background:#17100d}
body[data-media-type="movie"] .download-table[data-media-type="movie"] .torrent-table th{border-bottom-color:#654637;background:#261a15;color:#ffe2d0}
body[data-media-type="movie"] .download-table[data-media-type="movie"] .torrent-table th:not(:first-child),body[data-media-type="movie"] .download-table[data-media-type="movie"] .torrent-table td:not(:first-child){border-left-color:rgba(143,91,62,.35)}
body[data-media-type="movie"] .download-table[data-media-type="movie"] .torrent-table td{border-bottom-color:#463127;background:#19120f}
body[data-media-type="movie"] .download-table[data-media-type="movie"] .torrent-table tbody tr:nth-child(even) td{background:#1e1612}
body[data-media-type="movie"] .download-table[data-media-type="movie"] .torrent-table tbody tr:hover td{background:#2b1e18}
body[data-media-type="movie"] .download-table[data-media-type="movie"] .torrent-sort:hover{color:#fff;background:var(--primary-soft)}
body[data-media-type="movie"] .download-table[data-media-type="movie"] .torrent-sort-direction{color:#f4a675}
body[data-media-type="movie"] .download-table[data-media-type="movie"] .torrent-title:hover{color:#ffd8c0}
body[data-media-type="movie"] .download-table[data-media-type="movie"] .torrent-pin{border-color:var(--primary-border);background:var(--primary-soft);color:#ffc8a7}
body[data-media-type="movie"] .download-table[data-media-type="movie"] .video-uhd{border-color:var(--primary-border);background:var(--primary-soft);color:#ffc8a7}
body[data-media-type="movie"] .download-table[data-media-type="movie"] .torrent-season-cell{color:#ead2c3}
body[data-media-type="movie"] .download-table[data-media-type="movie"] .torrent-size-cell{color:#f3e6de}
body[data-media-type="movie"] .download-table[data-media-type="movie"] .torrent-added-cell{color:#d6c0b2}
body[data-media-type="movie"] .download-table[data-media-type="movie"] .torrent-download{border-color:#624434;background:#211711}
body[data-media-type="movie"] .download-table[data-media-type="movie"] .torrent-download:hover{border-color:var(--primary-border);background:#352319;color:#ffd8c0}
body[data-media-type="movie"] .download-modal .modal-close:hover,body[data-media-type="movie"] .download-modal .modal-close:focus-visible{background:#34231b}

/* Profile settings follow the currently selected movie palette. */
body.profile-body[data-media-type="movie"]{background:radial-gradient(circle at 50% -14%,rgba(var(--primary-rgb),.14),transparent 34rem),var(--bg)}
body[data-media-type="movie"] .profile-settings-card{border-color:#503a30;background:linear-gradient(145deg,rgba(34,25,21,.98),rgba(23,17,14,.98))}
body[data-media-type="movie"] .profile-section-heading{border-bottom-color:rgba(105,72,56,.72);background:linear-gradient(180deg,rgba(67,44,34,.55),rgba(34,25,21,.2))}
body[data-media-type="movie"] .profile-section-heading h2{color:#fff4ed}
body[data-media-type="movie"] .profile-section-icon{border-color:var(--primary-border);background:var(--primary-soft);color:#ffc7a5}
body[data-media-type="movie"] .profile-fields .form-row input,body[data-media-type="movie"] .profile-fields .form-row select{border-color:#563d31;background:#18110e}
body[data-media-type="movie"] .profile-fields .form-row input:focus,body[data-media-type="movie"] .profile-fields .form-row select:focus{border-color:var(--primary);box-shadow:var(--focus-ring)}
body[data-media-type="movie"] .profile-fields .form-row input:-webkit-autofill,body[data-media-type="movie"] .profile-fields .form-row input:-webkit-autofill:hover,body[data-media-type="movie"] .profile-fields .form-row input:-webkit-autofill:active{-webkit-text-fill-color:#f5e7de;caret-color:#f5e7de;-webkit-box-shadow:0 0 0 1000px #18110e inset;box-shadow:0 0 0 1000px #18110e inset}
body[data-media-type="movie"] .profile-fields .form-row input:-webkit-autofill:focus{-webkit-text-fill-color:#f5e7de;caret-color:#f5e7de;-webkit-box-shadow:0 0 0 1000px #18110e inset,var(--focus-ring);box-shadow:0 0 0 1000px #18110e inset,var(--focus-ring)}
body[data-media-type="movie"] .app-switch-input:not(:checked)+.app-switch-track{border-color:#654536;background:#251812;box-shadow:inset 0 1px 3px rgba(0,0,0,.34)}
body[data-media-type="movie"] .app-switch-input:not(:checked)+.app-switch-track .app-switch-thumb{background:#b78c73}
body[data-media-type="movie"] .profile-fields .form-row label{color:#dec7b8}
body[data-media-type="movie"] .profile-field-hint{color:#aa8874}
body[data-media-type="movie"] .profile-display-option,body[data-media-type="movie"] .profile-notification-option{border-color:#563d31;background:#18110e}
body[data-media-type="movie"] .profile-display-option strong,body[data-media-type="movie"] .profile-notification-option strong{color:#f5e7de}
body[data-media-type="movie"] .profile-notification-group{border-color:#563d31;background:rgba(30,20,16,.62)}
body[data-media-type="movie"] .profile-notification-group-heading h3{color:#fff1e7}
body[data-media-type="movie"] .profile-notification-channel{border-color:#563d31;background:#1a120f}
body[data-media-type="movie"] .profile-channel-enabled{color:#dec7b8}
body[data-media-type="movie"] .profile-page .watch-toggle{border-color:#624737;background:#1b130f}
body[data-media-type="movie"] .profile-page .watch-toggle:hover{border-color:#8b5e47}
body[data-media-type="movie"] .profile-page .watch-toggle:focus-visible{border-color:var(--primary);box-shadow:var(--focus-ring)}
body[data-media-type="movie"] .profile-page .app-select-trigger{border-color:#563d31;background:#18110e}
body[data-media-type="movie"] .profile-page .app-select-trigger:hover{border-color:#76513e;background:#211713}
body[data-media-type="movie"] .profile-page .app-select-trigger:focus-visible,body[data-media-type="movie"] .profile-page .app-select.is-open .app-select-trigger{border-color:var(--primary);box-shadow:var(--focus-ring)}
body[data-media-type="movie"] .profile-page .app-select-menu{border-color:#5e4235;background:#211713}
body[data-media-type="movie"] .profile-page .app-select-option:hover,body[data-media-type="movie"] .profile-page .app-select-option:focus-visible{background:#3a281f}
body[data-media-type="movie"] .profile-page .app-select-option.is-selected{background:var(--primary-soft);color:#ffe4d3}
body[data-media-type="movie"] .profile-page .app-select-option-check{color:#f4a675}
body[data-media-type="movie"] .profile-save{box-shadow:0 9px 22px rgba(var(--primary-rgb),.22)}

/* Movie search */
.movie-search-main{max-width:var(--content-max-width)}
.movie-search-intro{max-width:760px}
.movie-search-intro h1{margin-top:0;margin-bottom:8px}
.movie-search-intro p{margin:0}
.movie-section-kicker{margin-bottom:7px;color:#f2a06e;font-size:12px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}
.movie-search-results{margin-top:24px}
.movie-search-card .subtitle.is-empty{display:none}
.movie-card-genres{display:block;overflow:visible;overflow-wrap:anywhere;color:#d2a080;font-size:12px;line-height:1.4}

/* Movie library */
.my-movies-main{max-width:var(--content-max-width)}
.movie-library-page .page-top-heading{margin-bottom:12px}
.movie-library-filter-fields{grid-template-columns:repeat(4,minmax(120px,1fr))}

/* Movie details */
.movie-main{max-width:var(--content-max-width);padding-top:28px!important}
.movie-page{display:grid;gap:26px;padding-bottom:44px}
.movie-hero{--hero-backdrop-opacity:.3;--hero-shade-left:.9;--hero-shade-middle:.74;--hero-shade-right:.44;--hero-shade-bottom:.82;position:relative;isolation:isolate;min-height:520px;overflow:hidden;border:1px solid #52392d;border-radius:24px;background:#1d1511;box-shadow:0 24px 65px rgba(0,0,0,.3)}
.movie-backdrop{position:absolute;z-index:-3;inset:0;width:100%;height:100%;object-fit:cover;opacity:var(--hero-backdrop-opacity);filter:saturate(.92) contrast(1.04)}
.movie-hero-shade{position:absolute;z-index:-2;inset:0;background:linear-gradient(90deg,rgba(19,12,9,var(--hero-shade-left)) 4%,rgba(22,14,10,var(--hero-shade-middle)) 42%,rgba(20,13,10,var(--hero-shade-right))),linear-gradient(0deg,rgba(18,12,9,var(--hero-shade-bottom)),transparent 62%)}
.movie-hero-content{position:relative;display:grid;min-height:520px;grid-template-columns:260px minmax(0,1fr);align-items:end;gap:36px;padding:36px}
.movie-poster-column{display:grid;align-self:start;justify-items:center;gap:12px;padding-top:8px}
.movie-poster-frame{overflow:hidden;border:1px solid rgba(255,210,183,.2);border-radius:16px;background:#17100d;box-shadow:0 18px 45px rgba(0,0,0,.36)}
.movie-poster{display:block;width:100%;aspect-ratio:2/3;object-fit:cover}
.movie-poster-placeholder{border:0;border-radius:0;background:#211711}
.movie-hero-copy{min-width:0;align-self:start;padding:0 0 2px}
.movie-hero-copy h1{max-width:950px;margin:0;color:#fff7f2;font-size:clamp(36px,5vw,64px);font-weight:880;line-height:1.02;letter-spacing:-.035em;text-wrap:balance}
.movie-original-title{margin-top:9px;color:#d5b9a8;font-size:18px;line-height:1.35}
.movie-facts-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px;margin-top:22px}
.movie-facts{display:flex;min-width:0;max-width:980px;align-items:stretch;gap:8px;margin:0;padding:0;list-style:none;flex-wrap:wrap}
.movie-facts li{display:grid;align-content:center;gap:3px;min-height:52px;padding:8px 11px;border:1px solid rgba(215,157,121,.25);border-radius:10px;background:rgba(29,19,14,.64);backdrop-filter:blur(7px)}
.movie-facts strong{color:#c59b82;font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.movie-facts span{color:#f1e4dc;font-size:13px;line-height:1.3}
.movie-primary-actions{display:flex;align-items:center;gap:8px;margin-top:18px;flex-wrap:wrap}
.movie-control-label{color:#bfa89a}
.movie-state-button{min-height:38px;padding:8px 11px}
.movie-state-button.is-active{border-color:var(--primary-border);background:var(--primary-soft);color:#ffd9c2}
.movie-state-button.is-active:hover{background:rgba(var(--primary-rgb),.2)}
.movie-watch-action{position:relative;display:flex;width:126px;aspect-ratio:1;flex:0 0 auto;align-items:center;justify-content:center;flex-direction:column;gap:3px;padding:10px;border:0;border-radius:50%;background:transparent;color:#f4f7ff;cursor:pointer;font:inherit;transition:transform .18s ease,filter .18s ease}
.movie-watch-action:hover{background:transparent;color:#fff;transform:translateY(-2px);filter:drop-shadow(0 8px 15px rgba(var(--primary-rgb),.28))}
.movie-watch-action.is-active,.movie-watch-action.is-active:hover{border:0;background:transparent;color:#f4f7ff;filter:drop-shadow(0 8px 15px rgba(54,199,138,.25))}
.movie-watch-action-ring{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}
.movie-watch-action-ring-track,.movie-watch-action-ring-value{fill:none;stroke-width:6}
.movie-watch-action-ring-track{stroke:#50382d}
.movie-watch-action-ring-value{stroke:var(--primary);stroke-linecap:round;stroke-dasharray:0 100;transition:stroke-dasharray .2s ease}
.movie-watch-action.is-active .movie-watch-action-ring-value{stroke:var(--success);stroke-dasharray:100 100}
.movie-watch-action-content{position:relative;display:flex;width:100%;min-width:0;height:100%;align-items:center;justify-content:center;flex-direction:column;gap:3px}
.movie-watch-action-content strong{color:var(--success);font-size:26px;font-weight:900;line-height:1}
.movie-watch-action-content strong .ui-icon{display:block;width:24px;height:24px}
.movie-watch-action-content span{display:block;width:100%;max-width:100%;color:#cbd5ea;font-size:clamp(10px,2.8vw,12px);font-weight:400;letter-spacing:-.02em;line-height:1.1;text-align:center;white-space:nowrap}
.movie-rating-star{color:#8d827c}
.movie-page.is-saving .movie-rating-star,.movie-page.is-saving .movie-state-button{cursor:progress}
.movie-auth-hint{color:#c9aa98}
.movie-action-status{margin-top:12px;color:#ffc4cc;font-size:12px;line-height:1.4}
.movie-content-grid{display:grid;grid-template-columns:minmax(0,1fr) var(--media-detail-aside-width);align-items:start;gap:22px}
.movie-content-main{display:grid;min-width:0;gap:22px}
.movie-section,.movie-side-card{border:1px solid var(--border);border-radius:18px;background:rgba(29,23,20,.86);box-shadow:0 14px 34px rgba(0,0,0,.12)}
.movie-section-heading h2,.movie-side-card h2{color:#f6ede8}
.movie-summary{margin:0;color:#dfd3cc;white-space:pre-line}
.movie-external-rating{border:1px solid #49352c;background:#211915}
.movie-external-rating:hover{border-color:var(--primary-border);background:#2b1e18}
.movie-external-rating-icon-metacritic,.show-detail-rating-list .show-rating-source-icon-metacritic,.catalog-card .poster-rating[data-rating-source="metacritic"] [data-card-rating-icon]{padding:var(--rating-icon-padding,2px);border-radius:50%;background:#f5c842}
.movie-external-rating-label{color:#ad9587}
.movie-external-rating-score strong{color:#fff1e8}
.movie-external-rating-score small{color:#a98f80}
.show-detail-rating-list .show-rating-source.show-rating-source-local,.movie-external-rating.movie-external-rating-local{border-color:rgba(var(--primary-rgb),.52);background:linear-gradient(135deg,rgba(var(--primary-rgb),.14),rgba(var(--primary-rgb),.055));box-shadow:inset 0 0 0 1px rgba(var(--primary-rgb),.06),0 5px 14px rgba(var(--primary-rgb),.07)}
.movie-external-rating.movie-external-rating-local{cursor:pointer}
.movie-external-rating.movie-external-rating-local:hover{border-color:rgba(var(--primary-rgb),.72);background:linear-gradient(135deg,rgba(var(--primary-rgb),.18),rgba(var(--primary-rgb),.075));box-shadow:inset 0 0 0 1px rgba(var(--primary-rgb),.09),0 7px 17px rgba(var(--primary-rgb),.1)}
body[data-media-type="movie"] #movie-review-modal .review-rating-fieldset legend,body[data-media-type="movie"] #movie-review-modal .review-text-field>span{color:#e8d8ce}
body[data-media-type="movie"] #movie-review-modal .review-text-field textarea{border-color:#5a4034;background:#17110e;color:#f6ede8}
body[data-media-type="movie"] #movie-review-modal .review-text-field textarea:hover{border-color:#74503d}
body[data-media-type="movie"] #movie-review-modal .review-text-field textarea:focus{border-color:var(--primary);box-shadow:var(--focus-ring)}
body[data-media-type="movie"] #movie-review-modal .review-text-field textarea::placeholder{color:#9d7f6e}
body[data-media-type="movie"] #movie-review-modal .review-public-toggle{border-color:#563d31;background:#1a120f}
body[data-media-type="movie"] #movie-review-modal .review-public-toggle:hover{border-color:#76513e;background:#211713}
body[data-media-type="movie"] #movie-review-modal .review-public-toggle small{color:#b79e90}
body[data-media-type="movie"] #movie-review-modal .review-public-checkbox{border-color:#624737;background:#1b130f}
body[data-media-type="movie"] #movie-review-modal .review-public-checkbox:hover{border-color:#8b5e47}
body[data-media-type="movie"] #movie-review-modal .review-public-checkbox:focus-visible{border-color:var(--primary);box-shadow:var(--focus-ring)}
body[data-media-type="movie"] #movie-review-modal .review-public-checkbox:checked{border-color:var(--primary);background:var(--primary)}
.movie-sidebar-rating{border-top:1px solid #49352c}
.movie-sidebar-rating .rating-edit-button{border-color:#5a4034;background:#211915;color:#f6ede8}
.movie-sidebar-rating .rating-edit-button:hover,.movie-sidebar-rating .rating-edit-button:focus-visible{background:#2b1e18}
.movie-provider{border:1px solid #49352c;background:#211915}
a.movie-provider:hover{border-color:var(--primary-border);background:#2b1e18}
.movie-provider strong{color:#f2e7e0}
.movie-provider span{color:#b49e91}
.movie-provider b{color:#df9568}
.movie-provider-note{color:#9f8d82}

@media(max-width:1100px) and (min-width:721px){
  .header-flex{display:grid;grid-template-columns:auto auto minmax(180px,1fr) auto;gap:10px 12px}
  .header-flex .logo{grid-column:1;grid-row:1}
  .header-flex .media-mode-switch{grid-column:2;grid-row:1}
  .header-flex .search-form{grid-column:3;grid-row:1}
  .header-flex .auth-box{grid-column:4;grid-row:1}
  .header-flex .nav{grid-column:1/-1;grid-row:2;justify-self:end}
  .show-detail-facts,.movie-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}
  .show-detail-facts li,.movie-facts li{min-width:0}
  .show-detail-facts-row{grid-template-columns:minmax(0,1fr) clamp(210px,24vw,230px);align-items:start;gap:14px}
  .show-detail-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .show-detail-facts-row>.show-watch-progress{width:100%;min-width:0;align-self:start;justify-self:end;gap:10px}
  .show-detail-facts-row .show-watch-progress-copy{min-width:0;flex:1 1 0}
}
@media(min-width:721px){
  .movie-hero:has(.movie-plan-button[hidden]),.movie-hero:has(.movie-plan-button[hidden]) .movie-hero-content,
  .movie-hero:not(:has(.movie-plan-button)),.movie-hero:not(:has(.movie-plan-button)) .movie-hero-content,
  .show-detail-hero:has(.to-watch-box[hidden]),.show-detail-hero:has(.to-watch-box[hidden]) .show-detail-hero-content,
  .show-detail-hero:not(:has(#to-watch-btn)),.show-detail-hero:not(:has(#to-watch-btn)) .show-detail-hero-content{min-height:478px}
}
@media(max-width:900px){
  .movie-poster-column,.show-detail-poster-column{padding-top:105px}
  .movie-hero-content{grid-template-columns:210px minmax(0,1fr);gap:24px;padding:25px}
  .movie-content-grid{grid-template-columns:1fr}
  .movie-watch-action{width:108px}
}
@media(max-width:720px){
  .header-flex .media-mode-switch{grid-column:1/-1;grid-row:2;width:100%}
  .header-flex .nav{grid-column:1/-1;grid-row:3;grid-template-columns:repeat(2,minmax(0,1fr))}
  .header-flex .nav.movie-nav{grid-template-columns:repeat(2,minmax(0,1fr))}
  .header-flex .search-form{grid-column:1/-1;grid-row:4}
  .movie-main{padding-top:18px!important}
  .movie-hero{min-height:0;border-radius:18px}
  .movie-hero-shade{background:linear-gradient(0deg,rgba(19,12,9,var(--hero-shade-left)) 25%,rgba(20,13,10,var(--hero-shade-right)))}
  .movie-hero-content{min-height:0;grid-template-columns:1fr;justify-items:center;gap:22px;padding:22px}
  .movie-poster-column,.show-detail-poster-column{padding-top:0}
  .movie-poster-frame{width:min(220px,70vw)}
  .movie-hero-copy{width:100%;padding:0;text-align:center}
  .movie-hero-copy h1{font-size:clamp(34px,10vw,48px)}
  .movie-facts,.movie-primary-actions{justify-content:center}
  .movie-facts-row{grid-template-columns:1fr;justify-items:center}
  .media-auth-hint,.movie-action-status{width:100%;text-align:center}
  .movie-library-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
  .my-page [data-library-grid]{overflow-anchor:none}
}
@media(max-width:520px){
  .movie-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .movie-facts li{text-align:left}
}
@media(max-width:420px){
  .media-mode-option{min-height:40px}
  .movie-hero-content{padding:16px}
  .movie-poster-frame{width:min(180px,62vw)}
  .movie-original-title{font-size:15px}
  .movie-primary-actions .btn{flex:1 1 auto}
  .movie-plan-button,.show-poster-plan-button{width:100%}
  .movie-watch-action{width:96px}
  .movie-library-filter-fields{grid-template-columns:1fr}
}

/* Compact mobile shell: accepted header/footer navigation and home feed. */
@media(max-width:720px){
  .show-detail-hero,.movie-hero{height:auto!important;min-height:0!important}
  body{padding-top:calc(env(safe-area-inset-top) + 8px)}
  body[data-auth="1"]{
    --mobile-bottom-nav-bottom-padding:max(5px,calc(env(safe-area-inset-bottom,0px) - 25px));
  }
  body[data-auth="1"] .container.page-main{
    min-height:calc(100dvh - env(safe-area-inset-top,0px));
    padding-top:30px;
    padding-bottom:calc(104px + env(safe-area-inset-bottom));
  }
  body[data-auth="1"] .header-flex{
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto auto;
    align-items:center;
    gap:8px;
  }
  body[data-auth="1"] .header-flex .logo{
    grid-column:1;
    grid-row:1;
  }
  body[data-auth="1"] .header-flex .media-mode-switch{
    grid-column:2;
    grid-row:1;
    width:100%;
    min-width:0;
  }
  body[data-auth="1"] .header-flex .mobile-header-search-toggle{
    grid-column:3;
    grid-row:1;
  }
  body[data-auth="1"] .header-flex .auth-box{
    grid-column:4;
    grid-row:1;
  }
  body[data-auth="0"] .header-flex{
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    align-items:center;
    gap:8px;
  }
  body[data-auth="0"] .header-flex .logo{
    grid-column:1;
    grid-row:1;
  }
  body[data-auth="0"] .header-flex .auth-box{
    grid-column:2/4;
    grid-row:1;
  }
  body[data-auth="0"] .header-flex .media-mode-switch{
    grid-column:1/3;
    grid-row:2;
    width:100%;
  }
  body[data-auth="0"] .header-flex .mobile-header-search-toggle{
    grid-column:3;
    grid-row:2;
  }
  .header-flex .logo-image{width:62px}
  .header-flex .media-mode-option{
    min-width:0;
    min-height:38px;
    padding:7px 6px;
    font-size:12px;
  }
  .header-flex .nav{display:none!important}
  .header-flex .mobile-header-search-toggle{
    display:inline-flex;
    width:42px;
    height:42px;
    align-items:center;
    justify-content:center;
    padding:0;
    border:1px solid var(--border);
    border-radius:12px;
    background:rgba(17,23,34,.82);
    color:var(--muted);
    cursor:pointer;
  }
  .header-flex .mobile-header-search-toggle:hover,
  .header-flex .mobile-header-search-toggle:focus-visible,
  .header-flex .mobile-header-search-toggle[aria-expanded="true"]{
    border-color:var(--primary-border);
    outline:0;
    background:var(--primary-soft);
    color:var(--text);
    box-shadow:var(--focus-ring);
  }
  body[data-media-type="movie"] .header-flex .mobile-header-search-toggle{
    border-color:#5b4032;
    background:#18110e;
    color:#d39a76;
  }
  body[data-media-type="movie"] .header-flex .mobile-header-search-toggle:hover,
  body[data-media-type="movie"] .header-flex .mobile-header-search-toggle:focus-visible,
  body[data-media-type="movie"] .header-flex .mobile-header-search-toggle[aria-expanded="true"]{
    border-color:var(--primary-border);
    background:var(--primary-soft);
    color:#ffe4d3;
  }
  .header-flex .mobile-header-search-toggle .ui-icon{width:19px;height:19px}
  .header-flex .search-form{
    display:none;
    grid-column:1/-1!important;
    grid-row:2!important;
    width:100%;
    min-width:0;
  }
  body[data-auth="0"] .header-flex .search-form{grid-row:3!important}
  .header-flex .search-form.is-mobile-open{display:block}
  .header-flex .auth-box{
    justify-self:end;
    min-width:0;
    margin-left:0;
  }
  body[data-auth="1"] .auth-box .profile-name{display:none}
  body[data-auth="1"] .auth-box .profile-link{
    min-height:42px;
    padding:3px;
    border-radius:50%;
  }
  body[data-auth="1"] .auth-box .profile-avatar{width:36px;height:36px}
  body[data-auth="1"] .auth-box:has(.header-logout) .profile-link{display:none}

  .mobile-bottom-nav{
    position:fixed;
    z-index:15;
    right:0;
    bottom:0;
    left:0;
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:3px;
    min-height:68px;
    padding:6px max(18px,env(safe-area-inset-right,0px)) var(--mobile-bottom-nav-bottom-padding) max(18px,env(safe-area-inset-left,0px));
    border:1px solid var(--border);
    border-width:1px 0 0;
    border-radius:18px 18px 0 0;
    background:rgba(13,18,28,.94);
    box-shadow:0 -12px 32px rgba(0,0,0,.34);
    backdrop-filter:blur(18px);
    transform:translate3d(0,var(--mobile-visual-viewport-offset,0px),0);
  }
  body[data-auth="1"] .user-report-launcher{
    bottom:calc(66px + var(--mobile-bottom-nav-bottom-padding));
    transform:translate3d(0,var(--mobile-visual-viewport-offset,0px),0);
  }
  body[data-auth="1"] .user-report-launcher:hover{
    transform:translate3d(0,calc(var(--mobile-visual-viewport-offset,0px) - 1px),0);
  }
  /* WebKit can retain a shorter fixed bottom edge in an installed PWA.
     Anchor from the top using CSS viewport units and each control's own
     height, independently of stale innerHeight/visualViewport readings. */
  body.mobile-standalone .mobile-bottom-nav{
    top:100vh;
    top:100dvh;
    bottom:auto;
    transform:translate3d(0,-100%,0);
  }
  body.mobile-standalone[data-auth="1"] .user-report-launcher{
    top:calc(100vh - 66px - var(--mobile-bottom-nav-bottom-padding));
    top:calc(100dvh - 66px - var(--mobile-bottom-nav-bottom-padding));
    bottom:auto;
    transform:translate3d(0,-100%,0);
  }
  body.mobile-standalone[data-auth="1"] .user-report-launcher:hover{
    transform:translate3d(0,calc(-100% - 1px),0);
  }
  .mobile-bottom-nav-movie{
    grid-template-columns:repeat(2,minmax(0,1fr));
    background:rgba(27,18,14,.95);
  }
  .mobile-bottom-nav-link{
    display:grid;
    min-width:0;
    min-height:52px;
    align-content:center;
    justify-items:center;
    gap:3px;
    padding:4px 3px;
    border:1px solid transparent;
    border-radius:12px;
    color:var(--muted);
    text-decoration:none;
  }
  .mobile-bottom-nav-link .ui-icon{width:19px;height:19px}
  .mobile-bottom-nav-link span{
    max-width:100%;
    overflow:hidden;
    font-size:9px;
    font-weight:780;
    line-height:1.1;
    text-align:center;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .mobile-bottom-nav-link:hover,
  .mobile-bottom-nav-link:focus-visible{
    border-color:var(--primary-border);
    outline:0;
    background:var(--primary-soft);
    color:var(--text);
  }
  .mobile-bottom-nav-link.is-active{
    border-color:var(--primary-border);
    background:var(--primary-soft);
    color:#fff;
    box-shadow:inset 0 0 0 1px rgba(var(--primary-rgb),.06);
  }

  .my-page .grid{align-items:stretch}
  .my-page .card-wrap{align-self:stretch}
  .my-page .card{height:100%}
  .my-page .card .title{
    display:block;
    height:var(--library-title-height,auto);
    overflow:visible;
    overflow-wrap:anywhere;
    white-space:normal;
    -webkit-box-orient:initial;
    -webkit-line-clamp:unset;
  }

  .home-priority-section{
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
  }
  .home-priority-section .home-section-heading{margin-top:-8px}
  .home-card-featured{
    position:relative;
    display:block;
    width:100%;
    min-height:360px;
    overflow:hidden;
    border-radius:20px;
    background:#0c121d;
  }
  .home-card-featured .home-card-poster{
    position:absolute;
    inset:0;
    min-height:0;
    border:0;
  }
  .home-card-featured .home-card-poster::after{
    position:absolute;
    z-index:2;
    inset:0;
    background:linear-gradient(to top,#0c121d 4%,rgba(12,18,29,.54) 50%,rgba(8,11,18,.04) 82%);
    content:"";
    pointer-events:none;
  }
  .home-card-featured .home-card-poster-backdrop{display:none}
  .home-card-featured .home-card-poster-image{
    position:absolute;
    z-index:1;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center 20%;
    filter:none;
  }
  .home-card-featured .home-card-link{z-index:3}
  .home-card-featured .home-card-content{
    position:absolute;
    z-index:4;
    right:0;
    bottom:0;
    left:0;
    display:flex;
    align-items:flex-start;
    justify-content:flex-end;
    padding:20px;
    pointer-events:none;
  }
  .home-card-featured .home-episode-label{
    order:-3;
    margin-top:0;
    color:#b8caff;
  }
  .home-card-featured .home-card-title{
    order:-2;
    margin-top:5px;
    overflow:visible;
    color:#fff;
    font-size:30px;
    line-height:1.05;
    text-shadow:0 2px 14px rgba(0,0,0,.82);
  }
  .home-card-featured .home-card-subtitle{order:-1;color:#d4d9e5}
  .home-card-featured .home-episode-heading{order:0;align-items:flex-start;margin-top:9px}
  .home-card-featured .home-episode-code{padding-top:2px}
  .home-card-featured .home-episode-name{
    display:-webkit-box;
    overflow:hidden;
    color:#f1f4fb;
    font-size:14px;
    line-height:1.35;
    white-space:normal;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
  }
  .home-card-featured .home-episode-meta{order:1;color:#c1c8d6}
  .home-card-featured .home-card-actions{
    z-index:5;
    display:grid;
    width:100%;
    grid-template-columns:repeat(2,minmax(0,1fr));
    order:2;
    gap:8px;
    padding-top:14px;
    pointer-events:auto;
  }
  .home-card-featured .home-card-actions .btn{width:100%;min-width:0}
  .home-card-featured .home-details-action{display:inline-flex}

  .home-section-heading.compact{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding-bottom:0;
    border-bottom:0;
  }
  .home-section-heading.compact p{display:none}
  .home-card-row{
    display:grid;
    width:100%;
    gap:8px;
    overflow:visible;
    padding:0;
    scroll-snap-type:none;
  }
  .home-card-row .home-card-new{
    display:grid;
    width:100%;
    min-height:94px;
    grid-template-columns:62px minmax(0,1fr);
    overflow:hidden;
    border-radius:14px;
    scroll-snap-align:none;
  }
  .home-card-new:hover{transform:none}
  .home-card-new .home-card-poster{
    min-height:94px;
    border-right:1px solid var(--border);
  }
  .home-card-new .home-card-poster-backdrop{display:none}
  .home-card-new .home-card-poster-image{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    filter:none;
  }
  .home-card-new .home-card-content{
    display:grid;
    min-width:0;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:auto auto auto;
    align-content:center;
    align-items:center;
    gap:3px 10px;
    padding:10px;
  }
  .home-card-new .home-card-topline,
  .home-card-new .home-card-subtitle,
  .home-card-new .home-episode-label{display:none}
  .home-card-new .home-card-title{
    display:-webkit-box;
    grid-column:1;
    grid-row:1;
    overflow:hidden;
    font-size:13px;
    line-height:1.25;
    white-space:normal;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
  }
  .home-card-new .home-episode-heading{
    grid-column:1;
    grid-row:2;
    gap:5px;
    margin-top:0;
    overflow:hidden;
  }
  .home-card-new .home-episode-code{font-size:10px}
  .home-card-new .home-episode-name{
    overflow:hidden;
    font-size:11px;
    font-weight:650;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .home-card-new .home-episode-meta{
    display:block;
    grid-column:1;
    grid-row:3;
    min-height:0;
    margin-top:0;
    overflow:hidden;
    font-size:10px;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .home-card-new .home-new-count-inline{display:inline}
  .home-card-new .home-new-count-inline::before{margin:0 4px;content:"·"}
  .home-card-new .home-card-actions{
    grid-column:2;
    grid-row:1/4;
    margin:0;
    padding:0;
  }
  .home-card-new .home-primary-action{
    display:inline-flex;
    width:36px;
    min-width:36px;
    height:36px;
    min-height:36px;
    align-items:center;
    justify-content:center;
    padding:0!important;
    border-radius:50%!important;
  }
  .home-card-new .home-action-label{display:none}
  .home-card-new .home-action-mobile-icon{display:block;width:17px;height:17px}
}

@media(max-width:380px){
  body[data-auth="1"] .header-flex{
    grid-template-columns:auto minmax(94px,1fr) auto auto;
  }
  body[data-auth="1"] .header-flex .mobile-header-search-toggle{grid-column:3}
  body[data-auth="1"] .header-flex .auth-box{grid-column:4}
  .header-flex .logo-image{width:56px}
  .header-flex .media-mode-option{padding-inline:3px;font-size:11px}
  .mobile-bottom-nav-link span{font-size:8px}
  .home-card-featured{min-height:340px}
  .home-card-featured .home-card-content{padding:17px}
  .home-card-featured .home-card-title{font-size:27px}
}

/* Sponsr project support */
.sponsr-support-card{
  position:relative;
  display:grid;
  min-width:0;
  grid-template-columns:48px minmax(0,1fr) auto;
  align-items:center;
  gap:13px;
  overflow:hidden;
  margin-top:22px;
  padding:14px;
  border:1px solid rgba(235,29,33,.38);
  border-radius:16px;
  background:
    radial-gradient(circle at 92% -30%,rgba(235,29,33,.23),transparent 46%),
    linear-gradient(145deg,rgba(30,20,24,.98),rgba(17,19,25,.98));
  box-shadow:0 14px 34px rgba(0,0,0,.2);
}
.sponsr-support-logo{
  position:relative;
  z-index:1;
  display:block;
  width:48px;
  height:48px;
  border-radius:13px;
  box-shadow:0 8px 20px rgba(235,29,33,.26);
}
.sponsr-support-copy{position:relative;z-index:1;min-width:0}
.sponsr-support-brand{
  margin-bottom:3px;
  color:#ff777a;
  font-size:10px;
  font-weight:850;
  letter-spacing:.12em;
  line-height:1;
  text-transform:uppercase;
}
.sponsr-support-copy h2{margin:0;color:#fff7f7;font-size:18px;line-height:1.2;letter-spacing:-.015em}
.sponsr-support-copy p{max-width:660px;margin:4px 0 0;color:#c9b9bd;font-size:12px;line-height:1.4}
.sponsr-support-action{
  position:relative;
  z-index:1;
  display:inline-flex;
  min-height:40px;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:9px 13px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:10px;
  background:#eb1d21;
  box-shadow:0 10px 24px rgba(235,29,33,.24);
  color:#fff;
  font-size:12px;
  font-weight:820;
  line-height:1.25;
  text-align:center;
  text-decoration:none;
  white-space:nowrap;
  transition:background .18s ease,transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.sponsr-support-action:hover{background:#ff3438;transform:translateY(-1px);box-shadow:0 14px 28px rgba(235,29,33,.32)}
.sponsr-support-action:focus-visible,.profile-project-support-link:focus-visible{outline:3px solid rgba(235,29,33,.4);outline-offset:3px}
.sponsr-support-action .ui-icon{width:15px;height:15px}
.profile-project-card{
  display:grid;
  margin-top:11px;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:14px;
  background:linear-gradient(150deg,var(--primary-soft),rgba(255,255,255,.025));
  box-shadow:0 12px 28px rgba(0,0,0,.14);
}
.profile-project-link{
  display:grid;
  grid-template-columns:38px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  min-height:58px;
  padding:10px;
  color:#fff;
  text-decoration:none;
  transition:background .18s ease,transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.profile-project-link+.profile-project-link{border-top:1px solid var(--border)}
.profile-project-link:hover{background:rgba(var(--primary-rgb),.14)}
.profile-project-link:focus-visible{position:relative;z-index:1;outline:0;box-shadow:inset 0 0 0 3px rgba(var(--primary-rgb),.42)}
.profile-project-link[aria-busy="true"]{pointer-events:none;opacity:.68}
.profile-project-icon{display:inline-flex;width:38px;height:38px;align-items:center;justify-content:center;border:1px solid var(--primary-border);border-radius:11px;background:rgba(var(--primary-rgb),.16);color:var(--primary)}
.profile-project-icon .ui-icon{width:20px;height:20px}
.profile-project-telegram-link{background:rgba(42,171,238,.045)}
.profile-project-telegram-link:hover{background:rgba(42,171,238,.12)}
.profile-project-telegram-icon{border-color:rgba(42,171,238,.46);background:rgba(42,171,238,.14);color:#55c2f6}
.profile-project-telegram-link .profile-project-arrow{color:#55c2f6}
.profile-project-support-link{background:rgba(235,29,33,.045)}
.profile-project-support-link:hover{background:rgba(235,29,33,.12)}
.profile-project-support-link img{display:block;width:38px;height:38px;border-radius:10px;box-shadow:0 7px 16px rgba(235,29,33,.22)}
.profile-project-copy{display:grid;min-width:0;gap:2px}
.profile-project-copy strong{color:var(--text);font-size:12px;line-height:1.15}
.profile-project-copy span{color:var(--muted);font-size:10px;font-weight:720;line-height:1.25}
.profile-project-trailing{display:grid;grid-template-columns:auto 15px 0;align-items:center;column-gap:10px}
.profile-project-badge{display:inline-flex;min-width:22px;height:22px;align-items:center;justify-content:center;padding:0 6px;border-radius:999px;background:var(--primary);color:#08101f;font-size:11px;font-weight:900}
body[data-media-type="movie"] .profile-project-badge{color:#241006}
.profile-project-arrow{grid-column:2;width:15px;height:15px;color:var(--primary)}

/* Project news */
.project-news-main{max-width:1040px}
.project-news-page,.project-news-detail-page{width:100%;max-width:900px;margin:0 auto}
.project-news-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px;padding:26px;border:1px solid var(--primary-border);border-radius:22px;background:radial-gradient(circle at 100% 0,rgba(var(--primary-rgb),.22),transparent 44%),var(--panel);box-shadow:var(--shadow)}
.project-news-kicker{margin-bottom:7px;color:var(--primary);font-size:11px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}
.project-news-hero h1{margin:0;color:var(--text);font-size:clamp(28px,5vw,44px);line-height:1.04;letter-spacing:-.04em}
.project-news-hero p{max-width:610px;margin:10px 0 0;color:var(--muted);font-size:15px;line-height:1.55}
.project-news-mark-all{flex:0 0 auto;white-space:nowrap}
.project-news-feedback{min-height:20px;margin:-10px 2px 12px;color:var(--muted);font-size:12px}
.project-news-grid{display:grid;gap:14px}
.project-news-card{overflow:hidden;border:1px solid var(--border);border-radius:18px;background:var(--panel);box-shadow:0 12px 28px rgba(0,0,0,.14);transition:border-color .18s ease,background .18s ease,transform .18s ease}
.project-news-card:hover{border-color:var(--primary-border);background:var(--panel-2);transform:translateY(-2px)}
.project-news-card.is-new{border-color:rgba(var(--primary-rgb),.58);box-shadow:inset 3px 0 0 var(--primary),0 12px 28px rgba(0,0,0,.14)}
.project-news-card.is-read{opacity:.78}
.project-news-card-link{display:block;padding:20px 22px;color:inherit;text-decoration:none}
.project-news-card-link:focus-visible{outline:0;box-shadow:inset 0 0 0 3px rgba(var(--primary-rgb),.5)}
.project-news-card-meta,.project-news-article-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:11px;font-weight:750}
.project-news-state{display:inline-flex;min-height:23px;align-items:center;padding:4px 8px;border:1px solid var(--border);border-radius:999px;background:rgba(255,255,255,.03);color:var(--muted);font-size:10px;font-weight:850;letter-spacing:.05em;text-transform:uppercase}
.project-news-state.is-new{border-color:var(--primary-border);background:var(--primary-soft);color:var(--primary)}
.project-news-state.is-read{opacity:.72}
.project-news-card h2{margin:12px 0 7px;color:var(--text);font-size:clamp(18px,3vw,23px);line-height:1.2;letter-spacing:-.02em}
.project-news-card p{display:-webkit-box;max-width:750px;margin:0;overflow:hidden;color:var(--muted);font-size:14px;line-height:1.55;-webkit-box-orient:vertical;-webkit-line-clamp:3}
.project-news-card-action{display:inline-flex;align-items:center;gap:6px;margin-top:15px;color:var(--primary);font-size:12px;font-weight:850}
.project-news-card-action .ui-icon{width:14px;height:14px}
.project-news-empty{display:flex;align-items:center;gap:16px;padding:24px;border:1px dashed var(--border);border-radius:18px;background:var(--panel)}
.project-news-empty-icon{display:inline-flex;width:48px;height:48px;flex:0 0 auto;align-items:center;justify-content:center;border-radius:14px;background:var(--primary-soft);color:var(--primary)}
.project-news-empty-icon .ui-icon{width:25px;height:25px}
.project-news-empty h2{margin:0;color:var(--text);font-size:18px}
.project-news-empty p{margin:5px 0 0;color:var(--muted);font-size:13px;line-height:1.45}
.project-news-back{display:inline-flex;align-items:center;gap:7px;margin:2px 0 16px;color:var(--muted);font-size:13px;font-weight:800;text-decoration:none}
.project-news-back:hover{color:var(--primary)}
.project-news-back:focus-visible{outline:0;border-radius:6px;box-shadow:var(--focus-ring)}
.project-news-back .ui-icon{width:15px;height:15px}
.project-news-article{overflow:hidden;border:1px solid var(--border);border-radius:22px;background:var(--panel);box-shadow:var(--shadow)}
.project-news-article>header{padding:26px 28px 22px;border-bottom:1px solid var(--border);background:radial-gradient(circle at 100% 0,rgba(var(--primary-rgb),.18),transparent 48%)}
.project-news-article h1{max-width:780px;margin:13px 0 0;color:var(--text);font-size:clamp(27px,5vw,42px);line-height:1.08;letter-spacing:-.035em}
.project-news-rich,.project-news-content-unavailable{padding:26px 28px;color:var(--text);font-size:16px;line-height:1.72}
.project-news-rich>:first-child{margin-top:0}
.project-news-rich>:last-child{margin-bottom:0}
.project-news-rich h2,.project-news-rich h3,.project-news-rich h4{margin:1.5em 0 .55em;line-height:1.22;letter-spacing:-.02em}
.project-news-rich p,.project-news-rich ul,.project-news-rich ol,.project-news-rich blockquote{margin:0 0 1em}
.project-news-rich a{color:var(--primary);text-decoration-thickness:1px;text-underline-offset:3px}
.project-news-rich img{display:block;max-width:100%;height:auto;margin:20px auto;border-radius:14px}
.project-news-rich blockquote{padding:2px 0 2px 18px;border-left:3px solid var(--primary);color:var(--muted)}
.project-news-article>footer{display:flex;padding:0 28px 28px}

@media(max-width:900px){
  .sponsr-support-card{gap:12px}
}
@media(max-width:720px){
  .sponsr-support-card{
    grid-template-columns:42px minmax(0,1fr);
    gap:10px;
    margin-top:20px;
    padding:12px;
    border-radius:14px;
  }
  .sponsr-support-logo{width:42px;height:42px;border-radius:11px}
  .sponsr-support-copy h2{font-size:16px}
  .sponsr-support-copy p{font-size:11px}
  .sponsr-support-action{grid-column:1 / -1;width:100%;min-height:36px;padding:8px 10px}
  .profile-project-card{
    margin-top:8px;
  }
  .project-news-hero{align-items:flex-start;flex-direction:column;padding:21px}
  .project-news-mark-all{width:100%}
  .project-news-card-link{padding:18px}
  .project-news-article>header,.project-news-rich,.project-news-content-unavailable{padding:21px}
  .project-news-article>footer{padding:0 21px 21px}
}
@media(max-width:420px){
  .sponsr-support-copy h2{font-size:15px}
}

/* Friends */
.profile-menu-badge{display:inline-flex;min-width:21px;height:21px;grid-column:3;align-items:center;justify-content:center;justify-self:end;padding:0 6px;border-radius:999px;background:#ff5f68;color:#fff;font-size:10px;font-weight:900;line-height:1}
.profile-menu-badge-value{display:block;transform:translateY(-1px)}
.friends-panel{display:grid;gap:18px}
.friends-discovery-card{margin:0}
.friends-discovery-body{display:grid;gap:12px;padding:20px}
.friends-search-form{display:grid;gap:8px;margin:0}
.friends-search-form>label{color:var(--text);font-size:13px;font-weight:800}
.friends-search-form>small{color:var(--muted);font-size:11px;line-height:1.45}
.friends-search-control{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
.friends-search-control input{width:100%;min-width:0;min-height:48px;padding:10px 13px;border:1px solid var(--border);border-radius:10px;background:var(--bg);color:var(--text);font:inherit;line-height:1.5;outline:0}
.friends-search-control input:focus{border-color:var(--primary-border);box-shadow:var(--focus-ring)}
.friends-feedback{padding:10px 12px;border:1px solid var(--primary-border);border-radius:10px;background:var(--primary-soft);color:var(--text);font-size:12px}
.friends-feedback.is-error{border-color:rgba(255,93,93,.45);background:rgba(255,93,93,.1);color:#ffc4cc}
.friends-search-results{display:grid;gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid var(--border)}
.friends-search-empty{padding:14px;border:1px dashed var(--border);border-radius:10px;color:var(--muted);font-size:12px;text-align:center}
.friends-section{padding:20px;border:1px solid var(--border);border-radius:16px;background:var(--panel);box-shadow:0 12px 28px rgba(0,0,0,.12)}
.friends-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}
.friends-section-heading h3{margin:0;color:var(--text);font-size:18px}
.friends-section-heading p{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.45}
.friends-count{display:inline-flex;min-width:28px;height:28px;align-items:center;justify-content:center;padding:0 8px;border:1px solid var(--primary-border);border-radius:999px;background:var(--primary-soft);color:var(--primary);font-size:11px;font-weight:900}
.friends-list{display:grid;gap:9px}
.friend-row,.friend-card-main{display:flex;align-items:center;gap:12px;min-width:0}
.friend-row{padding:11px;border:1px solid var(--border);border-radius:12px;background:rgba(255,255,255,.02)}
.friend-avatar,.friend-profile-avatar{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;border:1px solid var(--primary-border);border-radius:50%;background:linear-gradient(145deg,rgba(var(--primary-rgb),.9),rgba(var(--primary-rgb),.38));color:#fff;font-weight:900;box-shadow:0 8px 20px rgba(0,0,0,.2)}
.friend-avatar{width:40px;height:40px;font-size:14px}
.friend-row-copy{display:grid;min-width:0;flex:1;gap:3px}
.friend-row-copy strong{overflow:hidden;color:var(--text);font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.friend-row-copy small{color:var(--muted);font-size:10px;line-height:1.35}
.friend-row-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}
.btn.danger{border-color:rgba(255,93,93,.34);color:#ffc4cc}
.friend-card{overflow:hidden;border:1px solid var(--border);border-radius:14px;background:rgba(255,255,255,.02)}
.friend-card-main{padding:12px}
.friend-privacy{border-top:1px solid var(--border)}
.friend-privacy>summary,.friends-blocked-section>summary{padding:11px 13px;color:var(--muted);font-size:11px;font-weight:800;cursor:pointer;list-style:none}
.friend-privacy>summary::-webkit-details-marker,.friends-blocked-section>summary::-webkit-details-marker{display:none}
.friend-privacy>summary:hover,.friends-blocked-section>summary:hover{color:var(--primary)}
.friend-privacy-body{display:grid;gap:13px;padding:2px 13px 14px}
.friend-privacy-body>p{margin:0;color:var(--muted);font-size:11px;line-height:1.45}
.friend-privacy-presets,.friend-privacy-actions{display:flex;flex-wrap:wrap;gap:7px}
.friend-privacy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.friend-privacy-option{display:flex;min-width:0;align-items:center;gap:9px;padding:9px;border:1px solid var(--border);border-radius:9px;background:var(--bg);color:var(--text);font-size:11px;line-height:1.3;cursor:pointer}
.friend-privacy-option:has(.app-switch-input:focus-visible),.profile-display-option:has(.app-switch-input:focus-visible),.profile-notification-option:has(.app-switch-input:focus-visible),.profile-channel-enabled:has(.app-switch-input:focus-visible){outline:0}
.friend-privacy-option-show{border-color:rgba(91,140,255,.26)}
.friend-privacy-option-movie{border-color:rgba(240,138,75,.3)}
.friends-blocked-section{overflow:hidden;border:1px solid var(--border);border-radius:14px;background:var(--panel)}
.friends-blocked-section[open]>summary{border-bottom:1px solid var(--border)}
.friends-blocked-section>.friends-list{padding:10px}

.friend-profile-main{max-width:1180px}
.friend-profile-page{display:grid;gap:20px}
.friend-profile-back{display:inline-flex;width:max-content;align-items:center;gap:7px;color:var(--muted);font-size:12px;font-weight:800;text-decoration:none}
.friend-profile-back:hover{color:var(--primary)}
.friend-profile-hero{display:flex;align-items:center;gap:18px;padding:24px;border:1px solid var(--primary-border);border-radius:20px;background:radial-gradient(circle at 100% 0,rgba(var(--primary-rgb),.2),transparent 46%),var(--panel);box-shadow:var(--shadow)}
.friend-profile-avatar{width:66px;height:66px;font-size:24px}
.friend-profile-hero h1{margin:3px 0 0;font-size:clamp(28px,5vw,42px);letter-spacing:-.035em}
.friend-profile-hero p{margin:7px 0 0;color:var(--muted);font-size:13px}
.friend-common-summary,.friend-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.friend-common-summary article,.friend-stat-grid article{display:grid;gap:5px;padding:16px;border:1px solid var(--border);border-radius:14px;background:var(--panel)}
.friend-common-summary span,.friend-stat-grid span{color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.friend-common-summary strong,.friend-stat-grid strong{font-size:23px;line-height:1.1}
.friend-common-summary small{color:var(--muted);font-size:10px}
.friend-common-summary .is-show,.friend-stat-grid .is-show{border-color:rgba(91,140,255,.35)}
.friend-common-summary .is-movie,.friend-stat-grid .is-movie{border-color:rgba(240,138,75,.38)}
.friend-profile-section{display:grid;gap:15px;padding:20px;border:1px solid var(--border);border-radius:18px;background:var(--panel)}
.friend-profile-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:14px}
.friend-profile-section-heading h2{margin:3px 0 0;font-size:22px}
.friend-profile-section-heading>strong{color:var(--primary);font-size:18px}
.friend-media-group{display:grid;gap:10px;padding-top:5px}
.friend-media-group+ .friend-media-group{padding-top:15px;border-top:1px solid var(--border)}
.friend-media-group>header{display:flex;align-items:center;justify-content:space-between;gap:10px}
.friend-media-group>header h3{margin:0;font-size:15px}
.friend-media-group>header span{color:var(--muted);font-size:11px;font-weight:900}
.friend-media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:10px}
.friend-media-card{overflow:hidden;border:1px solid var(--border);border-radius:12px;background:var(--bg)}
.friend-media-group-show .friend-media-card{border-color:rgba(91,140,255,.25)}
.friend-media-group-movie .friend-media-card{border-color:rgba(240,138,75,.28)}
.friend-media-card>a{display:grid;grid-template-columns:52px minmax(0,1fr);align-items:center;gap:9px;padding:8px;color:inherit;text-decoration:none}
.friend-media-card img{width:52px;height:76px;border-radius:7px;object-fit:cover;background:var(--poster-surface)}
.friend-media-card>a>span{display:grid;min-width:0;gap:4px}
.friend-media-card strong{display:-webkit-box;overflow:hidden;font-size:11px;line-height:1.35;-webkit-box-orient:vertical;-webkit-line-clamp:3}
.friend-media-card small{color:var(--muted);font-size:9px}
.friend-media-rating{padding:0 9px 8px;color:#ffd56a;font-size:10px;font-weight:850}
.friend-media-card>p{margin:0;padding:8px 9px;border-top:1px solid var(--border);color:var(--muted);font-size:10px;line-height:1.45}
.friend-achievement-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:9px}
.friend-achievement-grid article{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid var(--border);border-radius:12px;background:var(--bg)}
.friend-achievement-grid img{width:54px;height:54px;object-fit:contain}
.friend-achievement-grid span{display:grid;gap:4px}
.friend-achievement-grid strong{font-size:11px;line-height:1.35}
.friend-achievement-grid small{color:var(--muted);font-size:9px}

@media(max-width:720px){
  .recommendation-filter-submit{grid-column:auto;padding-top:0}
  .friend-row,.friend-card-main{align-items:flex-start;flex-wrap:wrap}
  .friend-row-actions{width:100%;justify-content:flex-start;padding-left:52px}
  .friend-card-main>.btn{margin-left:52px}
  .friend-privacy-grid{grid-template-columns:1fr}
  .friend-profile-hero{align-items:flex-start;padding:20px}
  .friend-profile-avatar{width:54px;height:54px;font-size:20px}
  .friend-profile-section{padding:16px}
}
