/* UAKino integration layer v2.0
 * Keeps the snapshot geometry in styles.css and only fixes DLE integration,
 * catalog controls, image xfields and responsive regressions.
 */

/* ---------- Global integration ---------- */
html,body,button,input,select,textarea{font-family:'PT Sans',Arial,Helvetica,sans-serif}
*{box-sizing:border-box}
.uakino-empty{width:100%;padding:45px 20px;text-align:center;color:#8e8f91;background:#171819}

/* ---------- Image xfields / poster fidelity ---------- */
.movie-img,.movie-img-1,.film-poster,.full-movie,.news-item{background:#18191b}
/* Snapshot miniatures use 172x243 for the main grid. Keep that geometry even when
 * the DLE image xfield contains a raw TMDb poster with another aspect ratio. */
.short-item .movie-img{aspect-ratio:172/243;min-height:0}
.movie-img>img,.movie-img-1>img,.news-item>img{
 display:block;width:100%;height:auto;min-height:100%;
}
.short-item .movie-img>img{height:100%;min-height:0;object-fit:cover;object-position:center}

/* ---------- Category catalog ---------- */
.cat-wr{padding-top:36px}
.cat-wr>.title_desc_site{
 margin:0 0 14px;padding:10px 20px;background:transparent;color:#f1f1f1;font-size:25px;font-weight:400;line-height:32px;
}
.uakino-catalog-module{position:relative;z-index:1;width:100%;overflow:visible}
.uakino-catalog-module .cat-filter{position:relative;z-index:1100;width:100%;margin:0 auto 10px;padding:0;overflow:visible}
.uakino-catalog-module .item-col33{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 15px}
.uakino-catalog-module .colection-n-link{
 display:inline-flex;align-items:center;justify-content:center;height:38px;min-height:38px;padding:0 18px;
 border:1px solid #d85a43;border-radius:10px;background:#131415;color:#f1f1f1;
 font-size:14px;font-weight:700;line-height:36px;text-decoration:none;
}
.uakino-catalog-module .colection-n-link:hover,.uakino-catalog-module .colection-n-link.colection-select{background:#df6048;color:#fff}
.uakino-catalog-module .filter-box{position:relative;z-index:1100;width:100%;margin:0;padding:10px;border:0;border-radius:10px;background:#1f2123;overflow:visible}
.uakino-catalog-module .filter-row{position:relative;z-index:1101;overflow:visible;display:grid;grid-template-columns:minmax(220px,1.2fr) minmax(180px,.85fr) minmax(220px,1fr) auto;align-items:center;gap:10px;width:100%;padding:0;background:transparent}
.uakino-catalog-module .filter-row>*{min-width:0}
.uakino-catalog-module .uakino-native-select:not([multiple]),
.uakino-catalog-module .uakino-multiselect-head{
 width:100%;height:39px;min-height:39px;border:1px solid #26282a;border-radius:5px;background:#131415;color:#ddd;
 padding:0 12px;outline:0;font-size:14px;font-weight:700;
}
.uakino-catalog-module .uakino-native-select:not([multiple]):focus,.uakino-catalog-module .uakino-multiselect.open .uakino-multiselect-head{border-color:#ca563f}
.uakino-native-select.uakino-enhanced{display:none!important}
.uakino-multiselect{position:relative;z-index:1;min-width:0}.uakino-multiselect.open{z-index:1200}
.uakino-multiselect-head{display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;cursor:pointer}
.uakino-multiselect-head span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.uakino-multiselect-head .fa{color:#87898c;transition:transform .18s ease}
.uakino-multiselect.open .uakino-multiselect-head .fa{transform:rotate(180deg)}
.uakino-multiselect-menu{
 display:none;position:absolute;left:0;right:0;top:44px;z-index:1201;max-height:340px;overflow:auto;padding:5px;
 border:1px solid #313336;border-radius:5px;background:#151617;box-shadow:0 12px 30px rgba(0,0,0,.45)
}
.uakino-multiselect.open .uakino-multiselect-menu{display:block}
.uakino-multiselect-option{display:flex;align-items:center;gap:9px;min-height:33px;padding:5px 8px;border-radius:3px;color:#d8d8d8;cursor:pointer}
.uakino-multiselect-option:hover{background:#26282a;color:#fff}
.uakino-multiselect-option input{margin:0;accent-color:#ca563f}
.uakino-catalog-module .year-period{min-width:0}
.uakino-catalog-module .filter-btns{display:flex;align-items:center;justify-content:flex-end;height:39px}
.uakino-catalog-module .uakino-filter-reset{
 display:inline-flex;align-items:center;justify-content:center;min-width:105px;height:39px;padding:0 16px;border:0;border-radius:3px;
 background:#131415;color:#fff;font-size:13px;font-weight:700;text-decoration:none;
}
.uakino-catalog-module .uakino-filter-reset:hover{background:#ca563f;color:#fff}
.uakino-catalog-module>.coloredgray{position:relative;z-index:1;min-height:180px;padding-top:5px}
.uakino-catalog-results{width:100%;min-height:160px}
.uakino-catalog-results:after{content:"";display:block;clear:both}
.uakino-catalog-module.is-loading .uakino-catalog-results{opacity:.45;pointer-events:none}
.uakino-catalog-module.is-loading:after{content:"";position:fixed;left:50%;top:50%;z-index:9999;width:26px;height:26px;margin:-13px;border:3px solid rgba(255,255,255,.18);border-top-color:#ca563f;border-radius:50%;animation:uakino-spin .65s linear infinite}
@keyframes uakino-spin{to{transform:rotate(360deg)}}

/* Catalog pagination */
.uakino-navigation{display:flex;clear:both;justify-content:center;align-items:center;gap:5px;padding:22px 0}
.uakino-navigation a,.uakino-navigation span{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:36px;padding:0 10px;border-radius:2px;background:#191a1c;color:#ddd;text-decoration:none}
.uakino-navigation span,.uakino-navigation a:hover{background:#ca563f;color:#fff}
.uakino-navigation .nav-ellipsis{background:transparent;color:#777}

/* ---------- Reconstructed service pages still used by the template ---------- */
.uakino-years-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;padding:10px}
.uakino-years-grid a{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 11px;border-radius:2px;background:#17181a;color:#ddd;text-decoration:none}
.uakino-years-grid a:hover{background:#ca563f;color:#fff}.uakino-years-grid .older{grid-column:span 2}
.uakino-top-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:18px 0}
.uakino-top-links a{padding:10px 12px;border-left:3px solid #ca563f;background:#17181a;color:#ddd;text-decoration:none}.uakino-top-links a:hover{background:#222326;color:#fff}
.uakino-top-list{counter-reset:uakino-top-rank}.uakino-top-list .list-top{counter-increment:uakino-top-rank}.uakino-top-list .list-top__place span:empty:before{content:counter(uakino-top-rank)}
.list-top__photo img{width:100%;height:100%;object-fit:cover}.rell-imdb-label{padding:0 3px;border-radius:2px;background:#f5c518;color:#000;font:bold 10px/16px Arial,sans-serif}
/* ---------- Profile / comments additions ---------- */
.usp__lastcomments-empty{display:block;color:#8d8d8d;font-size:13px;line-height:32px;white-space:nowrap}
.uakino-profile-comments{margin:22px 0 0}.uakino-profile-comments__title{margin:0 0 14px;color:#eee;font-size:22px;font-weight:700}
.uakino-comments-empty,.last-comments-empty{display:flex;align-items:center;justify-content:center;text-align:center;color:#777;background:#202224}
.uakino-comments-empty{min-height:110px;padding:24px 18px;border:1px solid #2b2d2f}.last-comments-empty{min-height:155px;height:100%;padding:20px}
.uakino-news-collections{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:13px 0}.uakino-news-collections__label{color:#888}.uakino-news-collections__item{display:inline-flex;padding:5px 10px;border-radius:2px;background:#252729;color:#ddd}.uakino-news-collections__item:hover{background:#cf5b43;color:#fff}

/* ---------- Responsive ---------- */
@media(max-width:1000px){
 .uakino-catalog-module .filter-row{grid-template-columns:1fr 1fr}
 .uakino-catalog-module .filter-btns{justify-content:flex-start}
 .uakino-years-grid{grid-template-columns:repeat(6,1fr)}
}
@media(max-width:950px){
 .cat-wr{padding-top:28px}
}
@media(max-width:720px){
 .cat-wr{padding:22px 16px 0}
 .cat-wr>.title_desc_site{margin:0 auto 14px;padding:0;text-align:center;font-size:23px;line-height:30px}
 .uakino-catalog-module .item-col33{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:14px}
 .uakino-catalog-module .colection-n-link{width:100%;padding:0 8px;font-size:12px}
 .uakino-catalog-module .filter-row{grid-template-columns:1fr;gap:9px}
 .uakino-catalog-module .filter-btns,.uakino-catalog-module .uakino-filter-reset{width:100%}
 .uakino-multiselect-menu{position:fixed;left:16px;right:16px;top:84px;max-height:58vh}
 .uakino-years-grid{grid-template-columns:repeat(3,1fr);gap:6px;padding:5px}.uakino-years-grid .older{grid-column:span 2}.uakino-top-links{grid-template-columns:1fr}
 .movie-right ul.xfieldimagegallery.screenshots>li{margin-bottom:0}
 .usp__lastcomments-empty{white-space:normal;line-height:1.3;padding:7px 0}
}
@media(max-width:460px){
 .uakino-catalog-module .item-col33{grid-template-columns:1fr}
 .cat-wr{padding-left:12px;padding-right:12px}
}


/* ---------- Fullstory: snapshot-compatible player adapters ---------- */
.movie-right .player-placeholder{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  width:100%;height:400px;box-sizing:border-box;position:relative;overflow:hidden;
  background:
    radial-gradient(circle at 50% 38%,rgba(202,86,63,.12),transparent 28%),
    linear-gradient(135deg,rgba(255,255,255,.018) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.018) 50%,rgba(255,255,255,.018) 75%,transparent 75%),
    #050505;
  background-size:auto,28px 28px,auto;color:#777;text-align:center
}
.movie-right .player-placeholder__icon{
  display:flex;align-items:center;justify-content:center;width:68px;height:68px;margin-bottom:15px;
  border:1px solid #343638;border-radius:50%;background:#17191a;color:#ca563f;font-size:25px;
  box-shadow:0 0 0 7px rgba(202,86,63,.04)
}
.movie-right .player-placeholder__icon i{margin-left:4px}
.movie-right .player-placeholder__title{color:#d7d7d7;font-size:17px;font-weight:700}
.movie-right .player-placeholder__text{margin-top:6px;color:#777;font-size:13px}
@media screen and (max-width:590px){
  .movie-right .player-placeholder{height:250px}
  .movie-right .player-placeholder__icon{width:56px;height:56px;font-size:21px}
}

/* DLE comment form adapter to the captured UAKino form. */
.addcomments .bb-editor textarea#comments-field{display:block;width:100%;height:40px;min-height:40px;max-height:160px;overflow-y:auto;resize:vertical;box-sizing:border-box;color:#ccc;background:#292d3b;border:0;padding:10px}
.addcomments .bb-editor textarea#comments-field::placeholder{color:#ccc}
.addcomments .addcomments__footer{margin-top:15px}
.addcomments .not-logged input{display:block;width:100%;box-sizing:border-box;background:#1b1c1e;color:#ddd;border:0;border-bottom:1px solid #343638;padding:10px}


/* Fullstory player actions: keep the original 50px tab geometry. */
.players-section{position:relative}
.players-section>.tabs{height:50px;min-height:50px;padding-right:235px;box-sizing:border-box}
.mov-compl.uakino-player-actions{
  position:absolute;top:0;right:12px;height:50px;line-height:50px;z-index:30;
  display:flex;align-items:center;white-space:nowrap
}
.mov-compl.uakino-player-actions a,
.mov-compl.uakino-player-actions .uakino-player-action{
  color:#ca563f;font-size:16px;font-weight:700;text-decoration:none
}
.mov-compl.uakino-player-actions i{margin-right:5px;color:#ca563f}
@media(max-width:760px){
  .players-section>.tabs{padding-right:0}
  .mov-compl.uakino-player-actions{
    position:static;height:auto;min-height:34px;line-height:1.25;padding:8px 12px;
    background:#1f2123;justify-content:flex-end
  }
  .mov-compl.uakino-player-actions a,
  .mov-compl.uakino-player-actions .uakino-player-action{font-size:13px}
}

/* ---------- Comments: snapshot DOM adapter only ---------- */
.comments .addcomments-amount {
  display:flex;
  font-size:16px;
  font-weight:600;
  padding-bottom:18px;
}
.comments .addcomments__footer { margin-top:15px; }
.comments #comments::placeholder { color:#ccc; opacity:1; }
.comments textarea[id="comments"] {
  transition:height .2s;
  min-height:40px;
  height:40px;
  overflow-y:hidden;
}
.comments-sort__item { user-select:none; }
.comm-admin-left { float:left; margin-left:0; font-style:italic; }
.comm-admin-left .form-check-label { display:inline-block; margin-right:8px; }
.comm-admin-left a { margin-right:8px; }
.comments-replies-toggle {
  display:inline-block;
  margin:10px 0 0 30px;
  padding:0;
  border:0;
  background:transparent;
  color:#9f9f9f;
  font:inherit;
  cursor:pointer;
}
.comments-replies-toggle i { margin-right:6px; transition:transform .15s ease; }
.comments-replies-toggle.is-open i { transform:rotate(180deg); }
.comments-tree-item > .comments-tree-list { display:none; padding-left:30px; }
.comments-tree-item.uakino-replies-open > .comments-tree-list { display:block; }
@media(max-width:590px) {
  .comments-sort { flex-wrap:wrap; }
  .comments-sort__item { width:calc(33.333% - 7px); }
}

/* ---------- UAKino v5.5 comments: snapshot spacing + DLE admin/guest adapters ---------- */
/* Snapshot keeps a visible gap between the editor, sorting and the list. */
.comments .addcomments {
  margin-bottom: 20px;
}
.comments .comments-sort {
  margin: 20px 0 25px;
}
.comments .comments-items {
  padding-top: 0;
}

/* Keep the captured UAKino guest row instead of DLE's generic form geometry. */
.comments .addcomments-block {
  padding: 14px;
  background: #222;
}
.comments .addcomments-body {
  display: flex;
}
.comments .addcomments-body > .avatar {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  margin: 5px 16px 0 0;
}
.comments .addcomments-body > .avatar img {
  width: 40px;
  height: 40px;
}
.comments .addcomments__input {
  display: block;
  width: calc(100% - 56px);
  min-width: 0;
}
.comments .not-logged {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin: 0 0 40px;
  padding: 0 15px;
}
.comments .not-logged-input {
  width: 45%;
}
.comments .not-logged-input input {
  display: block;
  width: 100%;
  height: 48px;
  box-sizing: border-box;
  padding: 0 15px;
  border: 0;
  border-bottom: 1px solid #343638;
  border-radius: 0;
  outline: 0;
  box-shadow: none;
  background: #1b1c1e;
  color: #ddd;
  font: inherit;
}
.comments .not-logged-input input:focus {
  border-bottom-color: #ca563f;
  background: #1f2123;
  box-shadow: none;
}
.comments .bb-editor textarea#comments {
  display: block;
  width: 100%;
  height: 40px;
  min-height: 40px;
  max-height: 180px;
  box-sizing: border-box;
  padding: 10px 0;
  overflow-y: hidden;
  resize: vertical;
  border: 0;
  border-bottom: 1px solid #343638;
  border-radius: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
  color: #ccc;
  font: inherit;
  line-height: 20px;
}
.comments .bb-editor textarea#comments:focus {
  border-bottom-color: #555;
}
.comments .bb-editor textarea#comments::placeholder {
  color: #ccc;
  opacity: 1;
}

/* DLE security checks are preserved but adapted to the comment form instead of .sep-input. */
.comments .addcomments-security {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 15px;
}
.comments .addcomments-security:empty {
  display: none;
}
.comments .addcomments-security__item {
  padding: 0;
  margin: 0;
  background: transparent;
}
.comments .addcomments-security__question {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.comments .addcomments-security__question label {
  color: #9f9f9f;
  font-size: 12px;
}
.comments .addcomments-security__question input,
.comments .addcomments-security__captcha input {
  height: 36px;
  min-width: 160px;
  padding: 0 10px;
  border: 1px solid #343638;
  border-radius: 0;
  outline: 0;
  background: #1b1c1e;
  color: #ddd;
}
.comments .addcomments-security__captcha {
  display: flex;
  align-items: center;
  gap: 12px;
}
.comments .addcomments-security__captcha-image {
  display: flex;
  align-items: center;
  max-width: 210px;
  overflow: hidden;
}
.comments .addcomments-security__captcha-image img {
  display: block;
  max-width: 210px;
  max-height: 70px;
  width: auto;
  height: auto;
}
.comments .addcomments__footer {
  margin-top: 15px;
}

/* DLE moderator mass actions: retain functionality, style as part of UAKino. */
.comments .mass_comments_action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 42px;
  height: auto;
  box-sizing: border-box;
  margin: 25px 0 20px;
  padding: 7px 10px;
  background: #1f2123;
  color: #9f9f9f;
  font-size: 12px;
  text-align: right;
}
.comments .mass_comments_action select {
  width: auto;
  min-width: 190px;
  height: 30px;
  margin: 0;
  padding: 0 28px 0 9px;
  border: 1px solid #333638;
  border-radius: 2px;
  outline: 0;
  background: #131415;
  color: #ccc;
  font: inherit;
}
.comments .mass_comments_action select:focus {
  border-color: #555;
  background: #161719;
}
.comments .mass_comments_action .bbcodes,
.comments .mass_comments_action input[type="submit"],
.comments .mass_comments_action button {
  height: 30px;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 0;
  border-radius: 2px;
  box-shadow: none;
  text-shadow: none;
  background: #ca563f;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 30px;
  text-transform: uppercase;
  cursor: pointer;
}
.comments .mass_comments_action .bbcodes:hover,
.comments .mass_comments_action input[type="submit"]:hover,
.comments .mass_comments_action button:hover {
  background: #d9654e;
}

@media (max-width: 590px) {
  .comments .comments-sort { margin-top: 15px; margin-bottom: 20px; }
  .comments .addcomments-body > .avatar { display: none; }
  .comments .addcomments__input { width: 100%; }
  .comments .not-logged {
    display: block;
    margin-bottom: 25px;
    padding: 0;
  }
  .comments .not-logged-input { width: 100%; }
  .comments .not-logged-input:first-child { margin-bottom: 15px; }
  .comments .addcomments-security__captcha {
    align-items: flex-start;
    flex-direction: column;
  }
  .comments .mass_comments_action {
    align-items: stretch;
    flex-direction: column;
  }
  .comments .mass_comments_action select,
  .comments .mass_comments_action .bbcodes,
  .comments .mass_comments_action input[type="submit"],
  .comments .mass_comments_action button {
    width: 100%;
  }
}
/* Hide the stock DLE mass-action caption while retaining every moderator control. */
.comments .mass_comments_action { font-size: 0; }
.comments .mass_comments_action select { font-size: 12px; }
.comments .mass_comments_action .bbcodes,
.comments .mass_comments_action input[type="submit"],
.comments .mass_comments_action button { font-size: 11px; }
.comments .mass_comments_action input[type="checkbox"] { accent-color: #ca563f; }
.comments .addcomments-security__captcha a { color:#9f9f9f; font-size:12px; }
.comments .addcomments-security__captcha a:hover { color:#ca563f; }


/* Trending Info modal: UAKino snapshot geometry, scoped to this plugin only */
.trending-info-dialog #dleuserpopup {
    padding: 0 !important;
    overflow: hidden !important;
}
.trending-info-fallback {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0,0,0,.72);
}
.trending-info-fallback__dialog {
    width: min(700px, 100%);
    background: #202223;
    border: 1px solid #323536;
    box-shadow: 0 16px 50px rgba(0,0,0,.5);
}
.trending-info-fallback__head {
    height: 54px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #3a3c3d;
    color: #fff;
}
.trending-info-fallback__head button {
    border: 0;
    background: none;
    color: #9b463e;
    font-size: 30px;
    cursor: pointer;
}
.trending-info-fallback iframe,
#trendinginfoframe,
.trending-info-dialog iframe {
    width: 100%;
    height: 430px;
    display: block;
    border: 0;
}
@media (max-width: 720px) {
    .trending-info-fallback iframe,
    #trendinginfoframe,
    .trending-info-dialog iframe { height: 390px; }
}

/* v5.7.1: robust optional xfield values + dedicated Trending UI */
.imdb-votes-value:empty { display: none; }
.imdb-votes-value:not(:empty)::before { content: "/"; }
.episodes-total-value:empty { display: none; }
.episodes-total-value:not(:empty)::before { content: " / "; }
.episodes-total-value:not(:empty)::after { content: " серій"; }
.episodes-total-value--ru:not(:empty)::after { content: " серий"; }


/* UAKino auth forms v5.21 */

/* Registration and password recovery follow the original UAKino/DLE form layout. */
.form-wrap{background:#1f2123;border:1px solid #1f2123;padding:20px;margin:20px 0}.form-title{text-align:left;padding:0 15px 30px 0}.form-title h1{display:inline-block;margin:0;font-size:24px}.form-wrap>div{border-top:1px solid #3b4045}.form-wrap>div:nth-child(2n){background:#333}.form-wrap .sep-input{padding:10px 10px 10px 170px}.form-wrap .label{float:left;width:150px;margin-left:-160px;color:inherit;background:none;padding:0;border-radius:0;text-align:left}.form-wrap .input{float:right;width:100%;position:relative}.form-wrap .label label{display:block;height:40px;line-height:40px;font-weight:700;font-size:14px}.form-wrap .input input:not([type=button]):not([type=file]),.form-wrap .xfields input{box-sizing:border-box;display:block;width:100%;max-width:400px;height:38px;line-height:38px;padding:0 15px;color:#000;background:#f0f0f0;border:1px solid #1f2123;border-radius:3px}.form-wrap .input input:focus{background:#fff;border-color:#04a2dc;box-shadow:0 0 10px rgba(4,162,220,.5)}.form-wrap .sep-textarea,.form-wrap .sep-xfield{padding:10px}.form-wrap .sep-textarea textarea{box-sizing:border-box;width:100%;min-height:110px;background:#f0f0f0;color:#111}.form-wrap .register-check{position:absolute;right:0;top:0;width:130px!important;padding:0 10px!important;font-size:12px!important}.form-wrap #result-registration{max-width:400px;min-height:18px;margin-top:5px;font-size:12px}.form-wrap .secur .label label{background:#cf0003;color:#fff;text-align:center}.form-wrap .sec-capcha input{float:left;max-width:150px;margin-right:10px}.form-wrap .sec-capcha img,.form-wrap #dle-captcha{display:inline-block;vertical-align:middle}.sep-submit{padding:30px 10px}.sep-submit .fbutton{background:#ca563f;color:#fff}.sep-submit .fbutton:hover{background:#d96048}.form-wrap .full-text{line-height:1.55}.form-wrap .full-text a{color:#ca563f}
@media screen and (max-width:490px){.form-wrap{padding:15px}.form-title{padding-bottom:18px}.form-title h1{font-size:20px}.form-wrap .sep-input{padding:10px}.form-wrap .label,.form-wrap .input{float:none;width:100%;margin-left:0}.form-wrap .label label{height:auto;line-height:1.4;padding:0 0 7px}.form-wrap .register-check{position:static;width:auto!important;margin-top:8px}.form-wrap .input input:not([type=button]):not([type=file]){max-width:none}.sep-submit{padding:20px 0}}


/* UAKino polish v5.8.0: homepage user collections + season fullstory */
.go-watch{color:#ca563f!important}
.uc-home-section .msi-title{margin-bottom:0}
.uc-home-swiper{position:relative}
.uc-home-slide{height:auto}
.uc-home-card{display:block;color:inherit!important;text-decoration:none!important}
.uc-home-card__media{position:relative;background:#111}
.uc-home-card__media .uc-home-mosaic{position:absolute;inset:0;display:grid;width:100%;height:100%;overflow:hidden}
.uc-home-card__media .uc-cover-mosaic--1{grid-template-columns:1fr}
.uc-home-card__media .uc-cover-mosaic--2{grid-template-columns:repeat(2,1fr)}
.uc-home-card__media .uc-cover-mosaic--3,.uc-home-card__media .uc-cover-mosaic--4{grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr)}
.uc-home-card__media .uc-home-mosaic span{display:block;min-width:0;min-height:0;overflow:hidden}
.uc-home-card__media .uc-home-mosaic img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s ease}
.uc-home-card:hover .uc-home-mosaic img{transform:scale(1.035)}
.uc-home-card__media .movie-img-inner{border-color:#ca563f}
.uc-home-card__score,.uc-home-card__count{position:absolute;top:8px;z-index:110;display:inline-flex;align-items:center;min-height:29px;padding:0 8px;background:rgba(8,10,11,.86);color:#fff;font-size:12px;font-weight:700}
.uc-home-card__score{left:8px}
.uc-home-card__count{right:8px;gap:5px}
.uc-home-card__title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.uc-home-card__meta{display:block;margin-top:-6px;padding:0 8px 8px;overflow:hidden;color:#868b90;font-size:11px;text-align:center;text-overflow:ellipsis;white-space:nowrap}
.uc-home-card:hover .uc-home-card__title{color:#ca563f}

.fi-desc--genre a{color:inherit!important;text-decoration:none}
.fi-desc--genre a:hover{color:#ca563f!important;text-decoration:underline}

.season-page--snapshot .season-sidebar{width:100%;padding:0;background:transparent}
.season-page--snapshot .season-side-box{margin:0 0 20px;background:#131415}
.season-page--snapshot .season-side-box .side-title{margin:0 0 1px;text-align:center}
.season-page--snapshot .season-side-box .side-content{overflow:hidden;background:#131415}
.season-page--snapshot .season-side-box .side-movie{height:175px}
.season-page--snapshot .season-side-box--top .side-content{padding:0}
.season-page--snapshot .season-top-news{margin:0}
.season-page--snapshot .season-top-news li{min-height:42px;padding-left:40px}
.season-page--snapshot .season-top-news li:before{top:8px}
.season-page--snapshot .season-top-news a{overflow:hidden;line-height:42px;text-overflow:ellipsis;white-space:nowrap}
.season-page--snapshot .film-top-info{display:grid;grid-template-columns:minmax(270px,36%) minmax(0,1fr);gap:2px;align-items:start}
.season-page--snapshot .film-poster-serial,.season-page--snapshot .film-info-serial{float:none;width:auto;min-width:0;margin:0}
.season-page--snapshot .film-info-serial .film-info{min-width:0}
.season-page--snapshot .fi-item-s{display:grid;grid-template-columns:100px minmax(0,1fr);gap:14px;align-items:start;min-height:60px;box-sizing:border-box;padding:18px 20px}
.season-page--snapshot .fi-item-s .fi-label,.season-page--snapshot .fi-item-s .fi-desc{float:none;width:auto;min-width:0}
.season-page--snapshot .fi-item-s .fi-label{color:#9f9f9f;font-weight:500}
.season-page--snapshot .fi-item-s .fi-desc{overflow-wrap:anywhere;color:#fff;font-weight:700;line-height:1.45}
.season-page--snapshot .film-poster{padding:12px}
.season-page--snapshot .film-poster img{width:100%;height:auto;max-height:none;object-fit:cover}
.season-page--snapshot .favoritepro-host,.season-page--snapshot .full-rate{max-width:100%}
.season-page--snapshot .imdb-votes-value{font-weight:400;color:#b6b6b6}

@media screen and (max-width:950px){
  .season-page--snapshot .film-top-info{grid-template-columns:minmax(230px,34%) minmax(0,1fr)}
  .season-page--snapshot .fi-item-s{grid-template-columns:92px minmax(0,1fr);padding:14px}
}
@media screen and (max-width:760px){
  .season-page--snapshot .season-sidebar{width:300px;margin:0 auto}
  .season-page--snapshot .film-top-info{grid-template-columns:1fr;gap:12px}
  .season-page--snapshot .film-poster-serial{max-width:420px;margin:0 auto;width:100%}
  .season-page--snapshot .fi-item-s{grid-template-columns:96px minmax(0,1fr)}
}
@media screen and (max-width:590px){
  .uc-home-card__meta{font-size:10px}
  .season-page--snapshot .fi-item-s{grid-template-columns:84px minmax(0,1fr);gap:10px;padding:12px 10px}
}

/* ---------- UAKino category fidelity v5.9 ----------
 * Reproduces the current category layout from uakino.best and the supplied snapshot.
 */
.cat-wr{
  width:100%;max-width:1400px;padding-top:36px;
}
.cat-wr>.title_desc_site{
  margin:0 0 4px;padding:0 20px 2px;background:transparent;color:#f4f4f4;
  font-size:30px;font-weight:400;line-height:38px;text-align:center;
}
.uakino-catalog-module{width:100%;overflow:visible}
.uakino-catalog-module .cat-filter{
  width:100%;margin:0 0 0;padding:0;background:#131415;overflow:visible;
}
.uakino-catalog-module .item-col33{
  display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;
  min-height:42px;margin:0 0 4px;padding:0;
}
.uakino-catalog-module .colection-n-link{
  display:inline-flex;float:none;align-items:center;justify-content:center;
  width:auto;height:42px;min-height:42px;margin:0;padding:0 12px;
  border:1px solid #e2674f;border-radius:12px;background:#111213;color:#fff;
  font-size:16px;font-weight:400;line-height:40px;text-decoration:none;
  box-shadow:none;
}
.uakino-catalog-module .colection-n-link:hover,
.uakino-catalog-module .colection-n-link.colection-select{
  background:#ec654b;border-color:#ec654b;color:#fff;text-decoration:none;
}
.uakino-catalog-module .filter-box{
  position:relative;z-index:1200;width:100%;margin:0 0 0;padding:12px 13px;
  border:0;border-radius:12px;background:#1f2123;overflow:visible;
}
.uakino-catalog-module .filter-row{
  position:relative;z-index:1201;display:grid;
  grid-template-columns:minmax(300px,1.15fr) minmax(270px,1fr) minmax(300px,1.08fr) auto;
  align-items:center;gap:12px;width:100%;min-height:48px;padding:0;background:transparent;overflow:visible;
}
.uakino-catalog-module .filter-row>*{min-width:0}
.uakino-catalog-module .uakino-filter-control,
.uakino-catalog-module .year-period{position:relative;width:100%;min-width:0;margin:0;padding:0}
.uakino-catalog-module .uakino-native-select.uakino-enhanced-select{display:none!important}

/* Chosen-like controls. */
.uakino-catalog-module .uakino-chosen{
  position:relative;z-index:1;width:100%;min-width:0;height:48px;margin:0;
  border-radius:5px;background:#131415;
}
.uakino-catalog-module .uakino-chosen.open{z-index:1300}
.uakino-catalog-module .uakino-chosen-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  width:100%;height:48px;margin:0;padding:0 14px;
  border:0;border-radius:5px;background:#131415;color:#f4f4f4;
  font:700 15px/48px 'PT Sans',Arial,sans-serif;text-align:left;outline:0;cursor:pointer;
  box-shadow:none;
}
.uakino-catalog-module .uakino-chosen-label{
  display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.uakino-catalog-module .uakino-chosen-label.is-placeholder{color:#a9aaac;font-weight:400}
.uakino-catalog-module .uakino-chosen-arrow{
  flex:0 0 auto;width:0;height:0;margin-left:auto;
  border-left:5px solid transparent;border-right:5px solid transparent;border-top:7px solid #747678;
  transition:transform .18s ease;
}
.uakino-catalog-module .uakino-chosen.open .uakino-chosen-arrow{transform:rotate(180deg)}
.uakino-catalog-module .uakino-chosen-drop{
  display:none;position:absolute;left:0;right:0;top:52px;z-index:1400;
  padding:7px;border:1px solid #2b2d2f;border-radius:5px;background:#131415;
  box-shadow:0 16px 34px rgba(0,0,0,.55);
}
.uakino-catalog-module .uakino-chosen.open .uakino-chosen-drop{display:block}
.uakino-catalog-module .uakino-chosen-search{padding:0 0 7px}
.uakino-catalog-module .uakino-chosen-search input{
  display:block;width:100%;height:36px;margin:0;padding:0 10px;
  border:1px solid #303234;border-radius:3px;background:#1c1e20;color:#eee;outline:0;
  font:400 14px/36px 'PT Sans',Arial,sans-serif;
}
.uakino-catalog-module .uakino-chosen-search input:focus{border-color:#ca563f}
.uakino-catalog-module .uakino-chosen-results{
  display:block;max-height:310px;margin:0;padding:0;overflow-x:hidden;overflow-y:auto;list-style:none;
}
.uakino-catalog-module .uakino-chosen-results::-webkit-scrollbar{width:6px}
.uakino-catalog-module .uakino-chosen-results::-webkit-scrollbar-thumb{border-radius:10px;background:#3a3c3e}
.uakino-catalog-module .uakino-chosen-results li{
  display:block;min-height:34px;margin:0;padding:8px 10px;border-radius:3px;color:#d8d8d8;
  font-size:14px;line-height:18px;cursor:pointer;white-space:normal;
}
.uakino-catalog-module .uakino-chosen-results li.active-result:hover,
.uakino-catalog-module .uakino-chosen-results li.active-result.result-selected{
  background:#ca563f;color:#fff;
}
.uakino-catalog-module .uakino-chosen-results li.group-result{
  min-height:auto;padding:9px 10px 4px;color:#858789;font-size:12px;font-weight:700;text-transform:uppercase;cursor:default;
}
.uakino-catalog-module .uakino-chosen-results li.no-results{color:#858789;cursor:default}

.uakino-catalog-module .filter-btns{
  display:flex;align-items:center;justify-content:flex-end;gap:12px;width:auto;height:48px;margin:0;text-align:right;
}
.uakino-catalog-module .uakino-filter-reset,
.uakino-catalog-module .uakino-filter-settings{
  display:inline-flex;align-items:center;justify-content:center;height:48px;margin:0;
  border:0;border-radius:4px;background:#131415;color:#fff;text-decoration:none;box-shadow:none;outline:0;
}
.uakino-catalog-module .uakino-filter-reset{
  min-width:126px;padding:0 20px;font-size:16px;font-weight:700;line-height:48px;
}
.uakino-catalog-module .uakino-filter-settings{
  flex:0 0 48px;width:48px;padding:0;font-size:18px;cursor:pointer;
}
.uakino-catalog-module .uakino-filter-reset:hover,
.uakino-catalog-module .uakino-filter-settings:hover{background:#ca563f;color:#fff}
.uakino-catalog-module .uakino-filter-settings .fa{font-size:18px;line-height:1}

.uakino-catalog-module>.coloredgray{position:relative;z-index:1;min-height:180px;padding-top:0;background:transparent}
.uakino-catalog-results{width:100%;min-height:180px;padding-top:0}
.uakino-catalog-results:after{content:"";display:block;clear:both}

/* Five-column poster grid exactly like the category snapshot. */
.uakino-catalog-results .short-item{
  position:relative;float:left;width:18%;margin:10px 1% 40px;
}
.uakino-catalog-results .short-item .movie-img{
  position:relative;width:100%;height:auto;aspect-ratio:172/243;overflow:hidden;background:#18191b;
}
.uakino-catalog-results .short-item .movie-img>img{
  display:block;width:100%;height:100%;min-height:0;object-fit:cover;object-position:center;
}
.uakino-catalog-results .short-item .movie-title{
  display:block;height:42px;margin-top:5px;overflow:hidden;color:#a9a9aa;text-align:center;
  font-size:15px;font-weight:700;line-height:20px;
}
.uakino-catalog-results .short-item:hover .movie-title{color:#fff}
.uakino-catalog-results .short-item .full-quality{
  top:16px;right:0;min-width:58px;height:35px;padding:0 10px;background:#161819;color:#fff;
  font-size:14px;font-weight:700;line-height:35px;text-align:center;
}
.uakino-catalog-results .short-item>.related-item-rating{
  top:18px;left:6px;min-width:40px;padding:6px 10px;border-radius:5px;font-size:13px;line-height:18px;
}
.uakino-catalog-results .short-item>.related-item-rating.uakino-comments-badge{
  top:54px;margin:0!important;background:#202224;
}
.uakino-catalog-results .short-item .movie-img-inner{border:5px solid #ca563f}
.uakino-catalog-results .short-item .go-watch{color:#ca563f}

.uakino-catalog-module.is-loading .uakino-catalog-results{opacity:.42;pointer-events:none}
.uakino-catalog-module.is-loading:after{
  content:"";position:fixed;left:50%;top:50%;z-index:9999;width:30px;height:30px;margin:-15px;
  border:3px solid rgba(255,255,255,.18);border-top-color:#ca563f;border-radius:50%;animation:uakino-spin .65s linear infinite;
}

.uakino-navigation{display:flex;clear:both;justify-content:center;align-items:center;gap:0;padding:20px 0 28px}
.uakino-navigation a,.uakino-navigation span{
  display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;margin:0;padding:0 10px;
  border:1px solid #2b2d2f;border-left-width:0;border-radius:0;background:#1b1d1f;color:#ddd;text-decoration:none;
}
.uakino-navigation>*:first-child{border-left-width:1px;border-radius:3px 0 0 3px}
.uakino-navigation>*:last-child{border-radius:0 3px 3px 0}
.uakino-navigation span:not(.nav-ellipsis),.uakino-navigation a:hover{background:#ca563f;color:#fff}
.uakino-navigation .nav-ellipsis{background:#1b1d1f;color:#777}

@media screen and (max-width:1450px){
  .cat-wr{max-width:calc(100% - 40px)}
}
@media screen and (max-width:1100px){
  .uakino-catalog-module .filter-row{grid-template-columns:1fr 1fr}
  .uakino-catalog-module .filter-btns{justify-content:stretch}
  .uakino-catalog-module .uakino-filter-reset{flex:1}
  .uakino-catalog-results .short-item{width:23%;margin-left:1%;margin-right:1%}
}
@media screen and (max-width:760px){
  .cat-wr{max-width:100%;padding:26px 12px 0}
  .cat-wr>.title_desc_site{padding:0 4px 8px;font-size:23px;line-height:29px}
  .uakino-catalog-module .item-col33{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:10px;
  }
  .uakino-catalog-module .colection-n-link{width:100%;height:38px;min-height:38px;padding:0 7px;border-radius:9px;font-size:13px;line-height:36px}
  .uakino-catalog-module .filter-box{padding:10px}
  .uakino-catalog-module .filter-row{display:grid;grid-template-columns:1fr;gap:9px}
  .uakino-catalog-module .uakino-chosen,.uakino-catalog-module .uakino-chosen-head{height:44px}
  .uakino-catalog-module .uakino-chosen-head{font-size:14px;line-height:44px}
  .uakino-catalog-module .filter-btns{display:grid;grid-template-columns:1fr 44px;gap:9px;width:100%;height:44px}
  .uakino-catalog-module .uakino-filter-reset,.uakino-catalog-module .uakino-filter-settings{height:44px;line-height:44px}
  .uakino-catalog-module .uakino-filter-settings{width:44px;flex-basis:44px}
  .uakino-catalog-module .uakino-chosen-drop{position:fixed;left:12px;right:12px;top:78px;max-height:calc(100vh - 96px)}
  .uakino-catalog-module .uakino-chosen-results{max-height:52vh}
  .uakino-catalog-results .short-item{width:31.333%;margin:10px 1% 34px}
}
@media screen and (max-width:520px){
  .uakino-catalog-results .short-item{width:48%;margin:8px 1% 30px}
  .uakino-catalog-results .short-item .movie-title{height:40px;font-size:13px;line-height:19px}
  .uakino-catalog-results .short-item .full-quality{top:10px;height:30px;min-width:50px;padding:0 7px;font-size:12px;line-height:30px}
  .uakino-catalog-results .short-item>.related-item-rating{top:10px;left:5px;padding:4px 8px;font-size:12px}
  .uakino-catalog-results .short-item>.related-item-rating.uakino-comments-badge{top:42px}
}
@media screen and (max-width:380px){
  .uakino-catalog-module .item-col33{grid-template-columns:1fr}
}

/* ---------- v6.1: restore original UAKino catalog scale ----------
 * The reference snapshot uses the original 1200px content width and 37px controls.
 * Previous fidelity overrides enlarged the catalog to 1400px/48px and made posters oversized.
 */
.cat-wr{max-width:1200px!important;margin-left:auto!important;margin-right:auto!important}
.uakino-catalog-module .cat-filter{max-width:1200px!important;margin-left:auto!important;margin-right:auto!important}
.uakino-catalog-module .item-col33{gap:7px!important;min-height:34px!important;margin-bottom:4px!important}
.uakino-catalog-module .colection-n-link{
  height:34px!important;min-height:34px!important;padding:0 12px!important;
  border-radius:9px!important;font:700 13px/32px 'PT Sans',Arial,sans-serif!important;
}
.uakino-catalog-module .filter-box{
  width:100%!important;max-width:1200px!important;margin:0 auto!important;padding:10px!important;
  border-radius:10px!important;background:#1f2123!important;
}
.uakino-catalog-module .filter-row{
  display:grid!important;grid-template-columns:minmax(220px,280px) minmax(220px,286px) minmax(220px,286px) 1fr!important;
  gap:10px!important;min-height:37px!important;align-items:center!important;
}
.uakino-catalog-module .uakino-chosen,
.uakino-catalog-module .uakino-chosen-head{
  height:37px!important;min-height:37px!important;border-radius:5px!important;
}
.uakino-catalog-module .uakino-chosen-head{
  padding:0 12px!important;font:700 14px/37px 'PT Sans',Arial,sans-serif!important;
}
.uakino-catalog-module .uakino-chosen-drop{top:42px!important}
.uakino-catalog-module .filter-btns{height:37px!important;gap:10px!important}
.uakino-catalog-module .uakino-filter-reset,
.uakino-catalog-module .uakino-filter-settings{height:37px!important;line-height:37px!important}
.uakino-catalog-module .uakino-filter-reset{min-width:103px!important;padding:0 16px!important;font-size:13px!important}
.uakino-catalog-module .uakino-filter-settings{flex-basis:37px!important;width:37px!important;font-size:16px!important}

/* Card dimensions are intentionally the same as the original theme. */
.uakino-catalog-results .short-item{width:18%!important;margin:10px 1% 40px!important}
.uakino-catalog-results .short-item .movie-title{height:40px!important;margin-top:5px!important;font-size:15px!important;line-height:20px!important}
.uakino-catalog-results .short-item .full-quality{
  top:15px!important;right:0!important;min-width:0!important;height:30px!important;padding:0 10px!important;
  font-size:12px!important;line-height:30px!important;background:rgba(0,0,0,.7)!important;
}
.uakino-catalog-results .short-item>.related-item-rating{
  top:15px!important;left:5px!important;min-width:0!important;padding:4px 10px!important;border-radius:4px!important;
  font-size:12px!important;line-height:18px!important;
}
.uakino-catalog-results .short-item>.related-item-rating.uakino-comments-badge{top:45px!important}
.uakino-catalog-results .short-item .movie-img-inner{border-width:5px!important}

/* ---------- v6.1: raw URL/full iframe xfields ---------- */
.uakino-embed,.uakino-embed__mount{display:block;width:100%;background:#000}
.uakino-embed__source{display:none!important}
.uakino-embed__mount iframe{display:block;width:100%!important;height:400px!important;margin:0;border:0;background:#000}

@media screen and (max-width:1100px){
  .cat-wr{max-width:calc(100% - 40px)!important}
  .uakino-catalog-module .filter-row{grid-template-columns:1fr 1fr!important;min-height:0!important}
  .uakino-catalog-module .filter-btns{justify-content:flex-start!important}
  .uakino-catalog-results .short-item{width:23%!important;margin-left:1%!important;margin-right:1%!important}
}
@media screen and (max-width:760px){
  .cat-wr{max-width:100%!important;padding-left:35px!important;padding-right:35px!important}
  .uakino-catalog-module .item-col33{grid-template-columns:1fr!important;gap:9px!important;margin-bottom:20px!important}
  .uakino-catalog-module .colection-n-link{width:100%!important;height:33px!important;min-height:33px!important;line-height:31px!important}
  .uakino-catalog-module .filter-row{grid-template-columns:1fr!important;gap:9px!important}
  .uakino-catalog-module .uakino-chosen,.uakino-catalog-module .uakino-chosen-head{height:37px!important;min-height:37px!important}
  .uakino-catalog-module .uakino-chosen-head{line-height:37px!important}
  .uakino-catalog-module .filter-btns{display:grid!important;grid-template-columns:1fr 37px!important;height:37px!important}
  .uakino-catalog-module .uakino-filter-settings{width:37px!important;flex-basis:37px!important}
  .uakino-catalog-results .short-item{width:31.333%!important;margin:10px 1% 34px!important}
  .uakino-embed__mount iframe{height:300px!important}
}
@media screen and (max-width:520px){
  .cat-wr{padding-left:20px!important;padding-right:20px!important}
  .uakino-catalog-results .short-item{width:48%!important;margin:8px 1% 30px!important}
  .uakino-catalog-results .short-item .movie-title{height:40px!important;font-size:13px!important;line-height:19px!important}
  .uakino-catalog-results .short-item .full-quality{top:10px!important;height:30px!important;font-size:12px!important;line-height:30px!important}
  .uakino-catalog-results .short-item>.related-item-rating{top:10px!important;left:5px!important;padding:4px 8px!important;font-size:12px!important}
  .uakino-catalog-results .short-item>.related-item-rating.uakino-comments-badge{top:40px!important}
}
