/* Кадр — оформление. Холст 1920×1080, масштабируется под экран телевизора. */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background: #0a0c11; }
body {
  font-family: "LG Smart UI", "Roboto", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: #f2f3f5; -webkit-font-smoothing: antialiased; cursor: default;
  -webkit-user-select: none; user-select: none;
}
#app { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; overflow: hidden; background: #0a0c11; -webkit-transform-origin: 0 0; transform-origin: 0 0; }
img { display: block; }
.hidden { display: none !important; }
.ic { width: 34px; height: 34px; flex-shrink: 0; }

/* ---------- заставка (Netflix Style: REIGN) ---------- */
#splash {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  z-index: 100;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.75s ease-out;
  -webkit-transition: opacity 0.75s ease-out;
}
#splash.fade-out {
  opacity: 0;
  pointer-events: none;
}
.intro-video {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  object-fit: cover;
  background: #000000;
}
.splash-disclaimer {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
  z-index: 2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
  pointer-events: none;
}

/* ---------- боковое меню ---------- */
#menu { position: absolute; left: 0; top: 0; bottom: 0; width: 110px; z-index: 20; overflow: hidden; background: linear-gradient(90deg, rgba(7, 8, 12, .98), rgba(7, 8, 12, .9)); transition: width .25s ease; }
#menu.open { width: 380px; box-shadow: 40px 0 80px rgba(0, 0, 0, .7); }
.menu-logo { height: 96px; display: flex; align-items: center; padding-left: 31px; cursor: pointer; }
.menu-logo .mark.reign-mark { width: 48px; height: 48px; border-radius: 14px; background: #E50914; color: #fff; font-family: "Bebas Neue", "Arial Black", Impact, sans-serif; font-size: 34px; font-weight: 900; flex-shrink: 0; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 18px rgba(229, 9, 20, 0.5); }
.menu-logo .word.reign-word { margin-left: 18px; font-family: "Bebas Neue", "Arial Black", Impact, sans-serif; font-size: 38px; font-weight: 900; color: #E50914; letter-spacing: 3px; text-shadow: 0 0 20px rgba(229, 9, 20, 0.4); opacity: 0; transition: opacity .2s; }
#menu.open .word.reign-word { opacity: 1; }
.menu-items { position: absolute; top: 96px; bottom: 36px; left: 0; right: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; -ms-overflow-style: none; }
.menu-items::-webkit-scrollbar { display: none; }
.menu-item { position: relative; height: 56px; margin: 4px 14px; border-radius: 14px; display: flex; align-items: center; padding-left: 18px; color: #868c98; white-space: nowrap; transition: background .15s, color .15s; cursor: pointer; }
.menu-item .ic { width: 28px; height: 28px; }
.menu-item span { margin-left: 22px; font-size: 24px; font-weight: 600; opacity: 0; transition: opacity .2s; }
#menu.open .menu-item span { opacity: 1; }
.menu-item.active { color: #fff; }
.menu-item.active::before { content: ''; position: absolute; left: -14px; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: #E50914; box-shadow: 0 0 10px rgba(229, 9, 20, 0.7); }
.menu-item:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.menu-item.focus { background: #fff; color: #0a0c11; }
.menu-foot { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-size: 15px; color: #4a4f5a; }

/* Аппаратное ускорение для плавности 60fps на Smart TV (кроме полноэкранного плеера) */
.track, .card, .chip, .screen:not(.full), .menu-item, .btn {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
#clock { position: absolute; right: 60px; top: 40px; z-index: 19; font-size: 32px; font-weight: 600; color: #e9ebef; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
body.fullscreen #clock { display: none; }

/* Режим плеера на весь экран: сбрасываем масштабирование canvas, видео строго 100% x 100% */
body.fullscreen #app {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  -webkit-transform: none !important;
  transform: none !important;
  overflow: visible !important;
}
body.fullscreen #screens {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  -webkit-transform: none !important;
  transform: none !important;
  overflow: visible !important;
}

/* ---------- экраны ---------- */
#screens { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; }
.screen { position: absolute; left: 110px; top: 0; right: 0; bottom: 0; overflow: hidden; }
.screen.full { left: 0; z-index: 30; background: #000; }
.page-head { position: absolute; left: 60px; top: 46px; font-size: 48px; font-weight: 800; }
.page-hint { position: absolute; left: 60px; top: 116px; font-size: 24px; color: #7f8591; }

/* ---------- кнопки и фишки ---------- */
.btn { display: inline-flex; align-items: center; height: 78px; padding: 0 40px; border-radius: 39px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 28px; font-weight: 600; margin-right: 20px; white-space: nowrap; transition: transform .15s ease, background .15s; }
.btn .ic { width: 32px; height: 32px; margin-right: 14px; }
.btn.primary { background: #E50914; box-shadow: 0 4px 16px rgba(229, 9, 20, 0.4); }
.btn.on .ic { color: #ff5a6e; }
.btn.focus { background: #fff; color: #0a0c11; -webkit-transform: scale(1.06); transform: scale(1.06); }
.btn.focus.on .ic { color: #ff2d55; }
.chips-view { position: absolute; left: 0; right: 0; top: 130px; height: 90px; overflow: visible; }
.chips { position: relative; display: flex; padding-left: 60px; transition: transform .3s ease; }
.chip { height: 62px; padding: 0 30px; border-radius: 31px; background: rgba(255, 255, 255, .08); font-size: 25px; font-weight: 600; display: flex; align-items: center; margin-right: 16px; flex-shrink: 0; white-space: nowrap; color: #b9bec8; transition: background .15s, color .15s, transform .15s; }
.chip.active { background: rgba(255, 90, 54, .22); color: #ffb39f; }
.chip.focus { background: #fff; color: #0a0c11; -webkit-transform: scale(1.05); transform: scale(1.05); }
.chip.filter-main { background: rgba(255, 90, 54, .18); color: #ff9b80; border: 1px solid rgba(255, 90, 54, .35); }
.chip.filter-main .ic { width: 24px; height: 24px; margin-right: 10px; }
.chip.filter-main.focus { background: #fff; color: #0a0c11; border-color: #fff; }
.chip.filter-chip { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.chip.filter-chip small { margin-left: 8px; opacity: .7; font-size: 18px; }
.chip.filter-chip.active { background: rgba(255, 90, 54, .25); color: #ffb39f; border-color: rgba(255, 90, 54, .5); }
.chip.filter-chip.focus { background: #fff; color: #0a0c11; border-color: #fff; }
.chip.filter-chip.focus small { color: #0a0c11; }
.chip.filter-reset { background: rgba(255, 255, 255, .04); color: #8b919c; border: 1px solid rgba(255, 255, 255, .08); }
.chip.filter-reset.focus { background: #ff5a36; color: #fff; border-color: #ff5a36; }
.chip-divider { width: 2px; height: 38px; margin: 12px 16px 0 4px; background: rgba(255, 255, 255, .12); flex-shrink: 0; }
.chip-rate { display: inline-flex; align-items: center; font-weight: 700; }
.chip-rate .ic { width: 24px; height: 24px; margin-right: 6px; }
.chip-rate.good { color: #4cd07d; } .chip-rate.mid { color: #f5c542; } .chip-rate.bad { color: #ff6b6b; }

/* ---------- ряды и карточки ---------- */
.row { position: relative; padding-bottom: 26px; }
.row-title { font-size: 32px; font-weight: 700; margin: 0 0 18px 60px; height: 42px; color: #eef0f3; }
.row-view { position: relative; padding: 14px 0 6px; }
.track { position: relative; display: flex; transition: transform .3s ease; }
.track > :first-child { margin-left: 60px; }
.row-msg { margin-left: 60px; font-size: 26px; color: #7f8591; height: 120px; display: flex; align-items: center; }
.card { position: relative; width: 220px; flex-shrink: 0; margin-right: 28px; transition: transform .2s ease; }
.card .poster { position: relative; width: 220px; height: 330px; border-radius: 18px; overflow: hidden; background: #181b23; }
.card .poster img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.card .poster img.loaded, .ep img.loaded, .person img.loaded, .tile-logo img.loaded { opacity: 1; }
.card .poster::after { content: ''; position: absolute; left: 0; top: 0; right: 0; bottom: 0; border-radius: 18px; border: 5px solid transparent; transition: border-color .15s; }
.card .ph { position: absolute; left: 16px; right: 16px; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 24px; color: #565c68; font-weight: 600; }
.card.focus { -webkit-transform: scale(1.08); transform: scale(1.08); z-index: 2; }
.card.focus .poster { box-shadow: 0 24px 50px rgba(0, 0, 0, .65); }
.card.focus .poster::after { border-color: #fff; }
.card .rate { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 10px; background: rgba(8, 9, 13, .78); font-size: 20px; font-weight: 700; }
.card .tag { position: absolute; top: 12px; right: 12px; padding: 4px 10px; border-radius: 10px; background: rgba(255, 90, 54, .9); font-size: 15px; font-weight: 700; max-width: 155px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 4px 12px rgba(0, 0, 0, .4); z-index: 1; }
.card .tag.tv-fresh { background: linear-gradient(135deg, #ff5a36 0%, #e03e1a 100%); box-shadow: 0 4px 12px rgba(255, 90, 54, .45); }
.card .name { margin-top: 14px; font-size: 24px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #c9cdd5; }
.card .sub { font-size: 20px; color: #737985; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card.focus .name { color: #fff; }
.progress { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.progress i { display: block; height: 100%; background: #ff5a36; }
.card.skeleton .poster { background: #14171e; }
.card.more .poster { display: flex; align-items: center; justify-content: center; background: #151820; }
.more-in { display: flex; flex-direction: column; align-items: center; color: #9aa0ab; font-size: 24px; }
.more-in .ic { width: 64px; height: 64px; margin-bottom: 12px; }
.card.more.focus .more-in { color: #fff; }

/* ---------- главная ---------- */
.hero { position: absolute; left: 0; top: 0; right: 0; height: 640px; }
.hero .bd { position: absolute; right: 0; top: 0; width: 1420px; height: 800px; background-size: cover; background-position: center top; opacity: 0; transition: opacity .7s ease; }
.hero .bd.on { opacity: 1; }
.hero .shade-l { position: absolute; left: 0; top: 0; width: 1100px; height: 800px; background: linear-gradient(90deg, #0a0c11 28%, rgba(10, 12, 17, .85) 52%, rgba(10, 12, 17, 0)); }
.hero .shade-b { position: absolute; left: 0; right: 0; top: 380px; height: 420px; background: linear-gradient(180deg, rgba(10, 12, 17, 0), #0a0c11 82%); }
.hero .info { position: absolute; left: 60px; top: 104px; width: 940px; }
.hero h1 { margin: 0; font-size: 70px; line-height: 1.06; font-weight: 800; max-height: 150px; overflow: hidden; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.meta { margin-top: 22px; font-size: 27px; color: #c9cdd5; display: flex; align-items: center; flex-wrap: wrap; }
.meta > * { margin-right: 14px; }
.meta > * + *::before { content: '•'; margin-right: 14px; color: #5d636e; }
.hero .overview { margin-top: 22px; font-size: 26px; line-height: 1.45; color: #a9aeb8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-height: 114px; }
.home .rows-view { position: absolute; left: 0; right: 0; top: 460px; bottom: 0; overflow: hidden; }
.home .rows { position: relative; transition: transform .35s ease; }
.row.welcome { padding: 30px 60px; }

/* ---------- сетка ---------- */
.grid-view { position: absolute; left: 0; right: 0; top: 230px; bottom: 0; overflow: hidden; }
.grid-view.nochips { top: 160px; }
.grid { position: relative; display: flex; flex-wrap: wrap; padding: 20px 40px 0 60px; transition: transform .3s ease; }
.grid .card { width: 210px; margin: 0 24px 34px 0; }
.grid .card .poster { width: 210px; height: 315px; }
.grid.cols5 .card { width: 186px; }
.grid.cols5 .card .poster { width: 186px; height: 279px; }
.grid-msg { position: absolute; left: 60px; top: 60px; font-size: 28px; color: #7f8591; display: flex; align-items: center; }

/* ---------- плитки (плейлисты, каналы) ---------- */
.tile { width: 400px; height: 200px; margin: 0 26px 26px 0; border-radius: 22px; background: #161922; padding: 28px 30px; position: relative; transition: transform .15s ease, background .15s; overflow: hidden; }
.tile .tile-ic { width: 52px; height: 52px; color: #ff7a5a; }
.tile .tile-ic .ic { width: 52px; height: 52px; }
.tile-name { margin-top: 18px; font-size: 28px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-sub { margin-top: 6px; font-size: 20px; color: #737985; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.focus { background: #fff; color: #0a0c11; -webkit-transform: scale(1.05); transform: scale(1.05); }
.tile.focus .tile-sub { color: #555b66; }
.tile.add { border: 3px dashed #2c313c; background: transparent; }
.tile.chan { width: 250px; height: 230px; padding: 20px; text-align: center; }
.tile-logo { position: relative; width: 170px; height: 110px; margin: 0 auto; display: flex; align-items: center; justify-content: center; color: #4a4f5a; }
.tile-logo img { max-width: 170px; max-height: 110px; opacity: 0; transition: opacity .3s; }
.tile-logo .ic { width: 64px; height: 64px; }
.tile.chan .tile-name { font-size: 23px; margin-top: 14px; }

/* ---------- поиск ---------- */
.search-left { position: absolute; left: 0; top: 0; bottom: 0; width: 760px; }
.search-q { position: absolute; left: 60px; top: 150px; width: 640px; height: 90px; border-radius: 20px; background: #161922; display: flex; align-items: center; padding: 0 26px; font-size: 34px; font-weight: 600; overflow: hidden; white-space: nowrap; }
.search-q .q-ic .ic { color: #6b717c; margin-right: 18px; }
.caret { display: inline-block; width: 3px; height: 40px; background: #ff5a36; margin-left: 4px; -webkit-animation: blink 1s step-end infinite; animation: blink 1s step-end infinite; }
@-webkit-keyframes blink { 50% { opacity: 0; } }
@keyframes blink { 50% { opacity: 0; } }
.search .kb { position: absolute; left: 60px; top: 280px; }
.search-right { position: absolute; left: 760px; top: 0; right: 0; bottom: 0; }
.search-info { position: absolute; left: 60px; top: 60px; font-size: 30px; font-weight: 700; color: #d7dae0; }
.search-right .grid-view { top: 110px; }

/* ---------- экранная клавиатура ---------- */
.kb { width: 640px; }
.kb-grid { display: flex; flex-wrap: wrap; }
.kb-ctrls { display: flex; flex-wrap: wrap; margin-top: 6px; }
.key { width: 80px; height: 74px; margin: 0 10px 10px 0; border-radius: 14px; background: rgba(255, 255, 255, .07); display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 600; color: #e5e7eb; transition: background .1s, transform .1s; }
.key .ic { width: 34px; height: 34px; }
.key.w1 { width: 80px; } .key.w2 { width: 170px; } .key.w3 { width: 260px; }
.key.txt { font-size: 24px; }
.key.on { color: #ff7a5a; }
.key.ok { background: rgba(255, 90, 54, .85); color: #fff; }
.key.focus { background: #fff; color: #0a0c11; -webkit-transform: scale(1.06); transform: scale(1.06); }

/* ---------- карточка фильма ---------- */
.details .d-bd { position: absolute; right: 0; top: 0; width: 1500px; height: 1080px; background-size: cover; background-position: center top; opacity: 0; transition: opacity .7s ease; }
.details .d-bd.on { opacity: 1; }
.details .d-shade { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: linear-gradient(90deg, #0a0c11 30%, rgba(10, 12, 17, .82) 55%, rgba(10, 12, 17, .25)), linear-gradient(180deg, rgba(10, 12, 17, 0) 40%, #0a0c11 95%); }
.details .d-view { position: absolute; left: 0; top: 0; right: 0; bottom: 0; }
.d-track { position: relative; transition: transform .35s ease; }
.d-top { position: relative; min-height: 800px; padding: 120px 0 40px 60px; }
.d-top h1 { margin: 0; font-size: 74px; line-height: 1.05; font-weight: 800; width: 1100px; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.d-top .orig { margin-top: 14px; font-size: 27px; color: #9097a3; }
.d-top .tagline { margin-top: 22px; font-size: 27px; font-style: italic; color: #d4d7de; width: 1000px; }
.d-top .overview { margin-top: 22px; width: 1000px; font-size: 28px; line-height: 1.5; color: #b6bbc5; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; max-height: 210px; }
.d-top .actions { margin-top: 46px; display: flex; }
.d-top .spinner { margin-top: 40px; }
.section { position: relative; padding-bottom: 20px; }
.section-title { font-size: 32px; font-weight: 700; margin: 0 0 6px 60px; }
.section .chips-view { position: relative; top: 0; height: 90px; padding-top: 12px; }
.ep { position: relative; width: 400px; flex-shrink: 0; margin-right: 28px; transition: transform .2s ease; }
.ep .still { position: relative; width: 400px; height: 225px; border-radius: 16px; overflow: hidden; background: #181b23; }
.ep .still img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.ep .still .ph { position: absolute; left: 0; right: 0; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; font-size: 26px; color: #565c68; }
.ep .still::after { content: ''; position: absolute; left: 0; top: 0; right: 0; bottom: 0; border-radius: 16px; border: 5px solid transparent; }
.ep .seen { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border-radius: 22px; background: rgba(76, 208, 125, .92); display: flex; align-items: center; justify-content: center; }
.ep .seen .ic { width: 28px; height: 28px; }
.ep .name { margin-top: 14px; font-size: 24px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #c9cdd5; }
.ep .sub { margin-top: 4px; font-size: 20px; color: #737985; }
.ep.focus { -webkit-transform: scale(1.06); transform: scale(1.06); z-index: 2; }
.ep.focus .still::after { border-color: #fff; }
.ep.focus .name { color: #fff; }
.person { width: 170px; flex-shrink: 0; margin-right: 26px; text-align: center; transition: transform .2s ease; }
.person .ph { position: relative; width: 150px; height: 150px; border-radius: 75px; overflow: hidden; margin: 0 auto; background: #1b1e27; border: 4px solid transparent; }
.person .ph span { position: absolute; left: 0; right: 0; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; font-size: 54px; font-weight: 700; color: #4a4f5a; }
.person .ph img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.person .n { margin-top: 14px; font-size: 22px; font-weight: 600; color: #d4d7de; }
.person .r { margin-top: 4px; font-size: 19px; color: #737985; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person.focus { -webkit-transform: scale(1.08); transform: scale(1.08); }
.person.focus .ph { border-color: #fff; }

/* ---------- окна ---------- */
.modal { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 40; background: rgba(4, 5, 8, .7); }
#modals { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 40; pointer-events: none; }
#modals > * { pointer-events: auto; }
.panel { position: absolute; right: 0; top: 0; bottom: 0; width: 840px; background: #12151c; box-shadow: -40px 0 90px rgba(0, 0, 0, .65); padding-top: 60px; }
.panel h2 { margin: 0 60px; font-size: 42px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-hint { margin: 10px 60px 0; font-size: 24px; color: #8b919c; }
.list-view { position: absolute; left: 0; right: 0; top: 170px; bottom: 0; overflow: hidden; }
.list { position: relative; padding: 0 40px 40px; transition: transform .3s ease; }
.li-head { margin: 28px 24px 12px; font-size: 21px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #ff8a6b; }
.li-status { display: flex; align-items: center; margin: 0 24px 10px; font-size: 24px; color: #7f8591; min-height: 50px; }
.li-status .spinner { width: 34px; height: 34px; border-width: 4px; margin-right: 16px; }
.li-status.err { color: #ff8b8b; }
.li { position: relative; padding: 22px 80px 22px 30px; border-radius: 18px; margin-bottom: 10px; background: rgba(255, 255, 255, .04); transition: background .12s; }
.li .t { font-size: 28px; font-weight: 600; }
.li .s { font-size: 21px; color: #8b919c; margin-top: 6px; }
.li.active .t { color: #ff8a6b; }
.li .chk { position: absolute; right: 26px; top: 50%; margin-top: -17px; color: #ff8a6b; }
.li.focus { background: #fff; color: #0a0c11; }
.li.focus .s { color: #4b505a; }
.li.focus.active .t, .li.focus .chk { color: #e2471f; }
.modal.center { display: flex; align-items: center; justify-content: center; }
.dialog { width: 900px; padding: 56px 60px 50px; border-radius: 30px; background: #151820; box-shadow: 0 40px 100px rgba(0, 0, 0, .7); }
.dialog.wide { width: 820px; }
.dialog-text { font-size: 34px; font-weight: 600; line-height: 1.4; white-space: pre-line; }
.dialog-title { font-size: 34px; font-weight: 700; }
.dialog-hint { margin-top: 8px; font-size: 22px; color: #8b919c; }
.dialog-btns { margin-top: 44px; display: flex; }
.prompt-input { margin: 26px 0 26px; height: 84px; border-radius: 18px; background: #0d0f15; display: flex; align-items: center; padding: 0 24px; font-size: 32px; overflow: hidden; white-space: nowrap; }
.dialog .kb { width: 700px; }
.dialog .key { width: 86px; }
.dialog .key.w2 { width: 182px; } .dialog .key.w3 { width: 278px; }

/* ---------- настройки ---------- */
.list.settings { padding: 0 60px 60px; width: 1500px; }
.list.settings .li-head { margin-left: 0; }
.set { display: flex; align-items: center; justify-content: space-between; padding: 24px 32px; border-radius: 18px; margin-bottom: 10px; background: rgba(255, 255, 255, .04); }
.set .t { font-size: 28px; font-weight: 600; }
.set .s { font-size: 20px; color: #7f8591; margin-top: 6px; }
.set-v { font-size: 25px; color: #ff9b80; max-width: 560px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-left: 30px; }
.set.focus { background: #fff; color: #0a0c11; }
.set.focus .s { color: #555b66; }
.set.focus .set-v { color: #d8401a; }

/* ---------- плеер ---------- */
.screen.full.player {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 30;
  background: #000;
  -webkit-transform: none !important;
  transform: none !important;
  -webkit-backface-visibility: visible !important;
  backface-visibility: visible !important;
  overflow: hidden !important;
}
.player video {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: #000;
  -webkit-transform: none !important;
  transform: none !important;
  z-index: 1;
}
.player.fit-contain video { object-fit: contain; }
.osd { position: absolute; left: 0; top: 0; right: 0; bottom: 0; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; pointer-events: none; z-index: 10; }
.player.osd-on .osd { opacity: 1; visibility: visible; pointer-events: auto; }
.osd-top { position: absolute; left: 0; top: 0; right: 0; height: 240px; padding: 46px 70px 0; display: flex; justify-content: space-between; align-items: flex-start; background: linear-gradient(180deg, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .5) 60%, transparent 100%); pointer-events: none; }
.osd-top-left { display: flex; align-items: center; gap: 28px; max-width: 1450px; pointer-events: auto; }
.osd-back-btn { width: 68px; height: 68px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: flex; align-items: center; justify-content: center; color: #fff; cursor: pointer; transition: background .15s, transform .15s, color .15s, box-shadow .15s; flex-shrink: 0; }
.osd-back-btn .ic { width: 36px; height: 36px; fill: currentColor; }
.osd-back-btn.focus { background: #fff; color: #0a0c11; transform: scale(1.1); -webkit-transform: scale(1.1); box-shadow: 0 0 25px rgba(255, 255, 255, .6); }
.osd-info { display: flex; flex-direction: column; min-width: 0; }
.osd-title { font-size: 42px; font-weight: 800; max-width: 1300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.osd-sub { margin-top: 6px; font-size: 24px; font-weight: 500; color: #b3b3b3; max-width: 1300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 8px rgba(0, 0, 0, .8); }
.osd-top-right { display: flex; align-items: center; gap: 20px; pointer-events: auto; }
.osd-badge { padding: 4px 12px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .4); font-size: 20px; font-weight: 700; color: #e5e5e5; background: rgba(0, 0, 0, .45); letter-spacing: 1px; }
.osd-clock { font-size: 28px; font-weight: 600; color: #e5e5e5; text-shadow: 0 2px 8px rgba(0, 0, 0, .8); }
.osd-bottom { position: absolute; left: 0; right: 0; bottom: 0; height: 320px; padding: 100px 70px 0; background: linear-gradient(0deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .6) 65%, transparent 100%); }
.pbar { position: relative; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .25); transition: height .15s ease; cursor: pointer; }
.pbar .buf { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 5px; background: rgba(255, 255, 255, .4); }
.pbar .cur { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 5px; background: #e50914; box-shadow: 0 0 12px rgba(229, 9, 20, .6); }
.pbar .knob { position: absolute; top: 50%; left: 0; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: #fff; opacity: 0; transition: opacity .15s, transform .15s; box-shadow: 0 0 0 6px rgba(229, 9, 20, .65); }
.pbar.focus { height: 14px; }
.pbar.focus .knob { opacity: 1; transform: scale(1.1); -webkit-transform: scale(1.1); }
.pbar.f-off .cur, .pbar.f-off .buf { display: none; }
.times { display: flex; justify-content: space-between; margin-top: 14px; font-size: 23px; font-weight: 600; color: #b3b3b3; }
.ctrls { display: flex; align-items: center; margin-top: 18px; }
.ctrl { height: 76px; min-width: 76px; border-radius: 38px; display: flex; align-items: center; justify-content: center; margin-right: 14px; background: rgba(255, 255, 255, .1); color: #fff; transition: background .12s, transform .12s, color .12s, box-shadow .12s; cursor: pointer; }
.ctrl .ic { width: 38px; height: 38px; fill: currentColor; }
.ctrl.txt { padding: 0 26px 0 20px; }
.ctrl.txt .ic { width: 30px; height: 30px; margin-right: 12px; }
.ctrl span { font-size: 23px; font-weight: 700; }
.ctrl-gap { -webkit-box-flex: 1; flex: 1; }
.ctrl.focus { background: #fff; color: #0a0c11; -webkit-transform: scale(1.08); transform: scale(1.08); box-shadow: 0 0 24px rgba(255, 255, 255, .55); }
.ctrl.ctrl-play { width: 84px; height: 84px; min-width: 84px; border-radius: 42px; background: rgba(255, 255, 255, .18); margin-right: 18px; }
.ctrl.ctrl-play .ic { width: 44px; height: 44px; }
.ctrl.ctrl-play.focus { background: #e50914; color: #fff; box-shadow: 0 0 35px rgba(229, 9, 20, .75); -webkit-transform: scale(1.12); transform: scale(1.12); }
.seek-ind { position: absolute; left: 50%; top: 50%; width: 420px; margin: -60px 0 0 -210px; height: 120px; border-radius: 60px; background: rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center; font-size: 48px; font-weight: 700; opacity: 0; transition: opacity .2s; }
.seek-ind.show { opacity: 1; }
.pause-ind { position: absolute; left: 50%; top: 50%; width: 160px; height: 160px; margin: -80px 0 0 -80px; border-radius: 80px; background: rgba(0, 0, 0, .55); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; }
.pause-ind .ic { width: 70px; height: 70px; }
.pause-ind.show { opacity: 1; }
.player:not(.osd-on) .pause-ind { opacity: 0 !important; visibility: hidden !important; }
.player .spinner.big { position: absolute; left: 50%; top: 50%; width: 110px; height: 110px; margin: -55px 0 0 -55px; border-width: 9px; opacity: 0; transition: opacity .2s; }
.player .spinner.big.show { opacity: 1; }
.player-error { position: absolute; left: 50%; top: 50%; width: 1000px; margin-left: -500px; -webkit-transform: translateY(-50%); transform: translateY(-50%); padding: 50px 60px; border-radius: 30px; background: rgba(20, 22, 30, .95); text-align: center; }
.err-text { font-size: 32px; line-height: 1.4; }
.err-btns { margin-top: 36px; display: flex; justify-content: center; }
.player video::cue { font-size: 44px; background: rgba(0, 0, 0, .55); }
.trailer iframe { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; border: 0; }
.trailer-hint { position: absolute; right: 40px; bottom: 30px; padding: 12px 24px; border-radius: 20px; background: rgba(0, 0, 0, .6); font-size: 22px; color: #c3c7cf; }

/* ---------- Netflix-стиль: пропуск заставки и следующая серия ---------- */
.skip-intro-btn {
  position: absolute;
  right: 80px;
  bottom: 100px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 36px;
  border-radius: 40px;
  background: rgba(20, 22, 30, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  -webkit-transform: translateY(20px);
  transform: translateY(20px);
  transition: bottom .3s ease, opacity .3s ease, -webkit-transform .3s ease, transform .3s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.player.osd-on .skip-intro-btn {
  bottom: 260px;
}
.skip-intro-btn.show {
  opacity: 1;
  pointer-events: auto;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}
.skip-intro-btn .ic {
  width: 30px;
  height: 30px;
  fill: currentColor;
}
.skip-intro-btn.focus {
  background: #e50914;
  border-color: #e50914;
  color: #fff;
  box-shadow: 0 0 35px rgba(229, 9, 20, 0.65);
  -webkit-transform: scale(1.06);
  transform: scale(1.06);
}

.next-ep-card {
  position: absolute;
  right: 80px;
  bottom: 100px;
  width: 580px;
  z-index: 55;
  padding: 28px 32px;
  border-radius: 24px;
  background: rgba(16, 18, 26, 0.94);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  -webkit-transform: translateY(30px) scale(0.96);
  transform: translateY(30px) scale(0.96);
  transition: bottom .3s ease, opacity .35s cubic-bezier(0.16, 1, 0.3, 1), -webkit-transform .35s cubic-bezier(0.16, 1, 0.3, 1), transform .35s cubic-bezier(0.16, 1, 0.3, 1);
}
.player.osd-on .next-ep-card {
  bottom: 260px;
}
.next-ep-card.show {
  opacity: 1;
  pointer-events: auto;
  -webkit-transform: translateY(0) scale(1);
  transform: translateY(0) scale(1);
}
.next-ep-countdown {
  font-size: 22px;
  font-weight: 700;
  color: #e50914;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.next-ep-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 18px;
}
.next-ep-fill {
  height: 100%;
  background: linear-gradient(90deg, #e50914, #ff3844);
  width: 100%;
  transition: width 1s linear;
}
.next-ep-title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.next-ep-sub {
  font-size: 22px;
  color: #a4a9b6;
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.next-ep-actions {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}
.next-ep-btn {
  -webkit-box-flex: 1;
  flex: 1;
  height: 64px;
  padding: 0 24px;
  border-radius: 18px;
  background: #e50914;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s;
}
.next-ep-btn .ic {
  width: 26px;
  height: 26px;
  fill: currentColor;
}
.next-ep-btn.focus {
  background: #fff;
  color: #0a0c11;
  border-color: #fff;
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.6);
  -webkit-transform: scale(1.04);
  transform: scale(1.04);
}
.next-ep-cancel {
  height: 64px;
  padding: 0 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  color: #c3c7cf;
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.15);
  transition: all .2s;
}
.next-ep-cancel.focus {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  border-color: #fff;
  -webkit-transform: scale(1.04);
  transform: scale(1.04);
}

/* ---------- прочее ---------- */
.spinner { width: 60px; height: 60px; border-radius: 50%; border: 6px solid rgba(255, 255, 255, .15); border-top-color: #ff5a36; -webkit-animation: spin .8s linear infinite; animation: spin .8s linear infinite; }
@-webkit-keyframes spin { to { -webkit-transform: rotate(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
#toast { position: absolute; left: 50%; bottom: 70px; z-index: 50; max-width: 1200px; -webkit-transform: translate(-50%, 30px); transform: translate(-50%, 30px); padding: 22px 40px; border-radius: 40px; background: rgba(28, 31, 40, .96); font-size: 27px; font-weight: 600; opacity: 0; transition: opacity .25s, transform .25s; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
#toast.show { opacity: 1; -webkit-transform: translate(-50%, 0); transform: translate(-50%, 0); }
.set-v.dim { color: #6b717c; }
.set.add-src .t, .li.own .t { display: flex; align-items: center; color: #ff9b80; }
.set.add-src .ic, .li.own .ic { width: 30px; height: 30px; margin-right: 12px; }
.set.add-src.focus .t, .li.own.focus .t { color: #d8401a; }
.ep .still img.loaded, .person .ph img.loaded, .tile-logo img.loaded, .card .poster img.loaded { opacity: 1; }

/* ---------- выбор языка при первом запуске (Netflix Dark Red) ---------- */
.modal.lang-modal-backdrop { background: rgba(3, 4, 7, .92); }
.dialog.lang-dialog { width: 1260px; padding: 44px 44px 40px; background: linear-gradient(180deg, #181b24 0%, #0d0f14 100%); border-radius: 28px; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 40px 100px rgba(0, 0, 0, .85), 0 0 50px rgba(229, 9, 20, .15); text-align: center; }
.lang-modal-brand { font-size: 38px; font-weight: 900; letter-spacing: 8px; color: #e50914; margin-bottom: 12px; text-transform: uppercase; text-shadow: 0 0 25px rgba(229, 9, 20, .6); }
.lang-modal-title { font-size: 34px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.lang-modal-desc { font-size: 21px; color: #8b919c; margin-bottom: 36px; }
.lang-cards-grid { display: flex; gap: 24px; justify-content: center; margin-bottom: 28px; }
.lang-choice-card { flex: 1; max-width: 370px; padding: 30px 20px; border-radius: 22px; background: rgba(255, 255, 255, .05); border: 2px solid rgba(255, 255, 255, .08); text-align: center; cursor: pointer; transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; -webkit-transition: -webkit-transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.lang-choice-card.focus { transform: scale(1.06); -webkit-transform: scale(1.06); background: rgba(229, 9, 20, .14); border-color: #e50914; box-shadow: 0 0 35px rgba(229, 9, 20, .45); }
.lang-choice-card.focus .lang-card-badge { background: #e50914; color: #fff; box-shadow: 0 4px 18px rgba(229, 9, 20, .6); }
.lang-card-flag { font-size: 64px; line-height: 1; margin-bottom: 16px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); }
.lang-card-title { font-size: 32px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.lang-card-sub { font-size: 19px; color: #a2a8b4; line-height: 1.35; margin-bottom: 22px; min-height: 48px; }
.lang-card-badge { display: inline-block; padding: 10px 32px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 20px; font-weight: 700; color: #e5e5e5; transition: background .15s, color .15s; }
.lang-modal-hint { font-size: 19px; color: #69707e; margin-top: 8px; }

/* ---------- Netflix Player: Звук и субтитры (2 колонки) ---------- */
.dialog.netflix-as-dialog {
  width: 1280px;
  max-width: 92vw;
  padding: 44px 50px 36px;
  background: linear-gradient(180deg, #18191e 0%, #0d0e12 100%);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 35px 90px rgba(0, 0, 0, .92), 0 0 50px rgba(229, 9, 20, .15);
}
.netflix-as-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.netflix-as-title {
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.netflix-as-close {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #e5e5e5;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
}
.netflix-as-close .ic {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.netflix-as-close.focus {
  background: #fff;
  color: #0a0c11;
  -webkit-transform: scale(1.05);
  transform: scale(1.05);
}
.netflix-as-grid {
  display: flex;
  gap: 36px;
}
.netflix-as-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.netflix-as-col-title {
  font-size: 20px;
  font-weight: 800;
  color: #8c8c8c;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-left: 8px;
}
.netflix-as-list {
  max-height: 480px;
  overflow-y: auto;
  padding-right: 8px;
}
.netflix-as-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-radius: 14px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, .04);
  border: 2px solid transparent;
  color: #e5e5e5;
  cursor: pointer;
  transition: background .12s, border-color .12s, transform .12s, color .12s;
  -webkit-transition: background .12s, border-color .12s, -webkit-transform .12s, color .12s;
}
.netflix-as-item .chk {
  width: 32px;
  height: 32px;
  margin-right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e50914;
  flex-shrink: 0;
}
.netflix-as-item .chk .ic {
  width: 26px;
  height: 26px;
  fill: currentColor;
}
.netflix-as-text {
  flex: 1;
  min-width: 0;
}
.netflix-as-text .t {
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.netflix-as-text .s {
  font-size: 17px;
  color: #8c8c8c;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.netflix-as-item.focus {
  background: #fff;
  color: #0a0c11;
  -webkit-transform: scale(1.02);
  transform: scale(1.02);
  border-color: #fff;
  box-shadow: 0 0 25px rgba(255, 255, 255, .5);
}
.netflix-as-item.focus .chk {
  color: #e50914;
}
.netflix-as-item.focus .netflix-as-text .s {
  color: #555;
}
.netflix-as-item.change-voiceover {
  border: 1px dashed rgba(229, 9, 20, .5);
  background: rgba(229, 9, 20, .08);
  margin-top: 8px;
}
.netflix-as-item.change-voiceover .chk {
  color: #e50914;
}
.netflix-as-item.change-voiceover.focus {
  background: #e50914;
  color: #fff;
  border-color: #e50914;
  box-shadow: 0 0 30px rgba(229, 9, 20, .6);
}
.netflix-as-item.change-voiceover.focus .chk {
  color: #fff;
}
.netflix-as-item.change-voiceover.focus .netflix-as-text .s {
  color: #ffcccc;
}
.netflix-as-hint {
  font-size: 18px;
  color: #737373;
  text-align: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

/* ---------- Netflix Player: Карусель серий (Episodes Drawer) ---------- */
.modal.netflix-ep-modal {
  background: rgba(0, 0, 0, .75);
}
.netflix-ep-drawer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 520px;
  background: linear-gradient(180deg, rgba(16, 18, 26, .98) 0%, rgba(8, 9, 12, .99) 100%);
  border-top: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .85);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  padding: 30px 60px 36px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  animation: netflixEpSlideUp .25s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-animation: netflixEpSlideUp .25s cubic-bezier(0.16, 1, 0.3, 1);
}
@-webkit-keyframes netflixEpSlideUp {
  from { -webkit-transform: translateY(100%); transform: translateY(100%); }
  to { -webkit-transform: translateY(0); transform: translateY(0); }
}
@keyframes netflixEpSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.netflix-ep-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.netflix-ep-header-title {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.netflix-ep-close {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
}
.netflix-ep-close .ic {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.netflix-ep-close.focus {
  background: #fff;
  color: #0a0c11;
  -webkit-transform: scale(1.05);
  transform: scale(1.05);
}
.netflix-ep-seasons {
  margin-bottom: 18px;
  flex-shrink: 0;
}
.netflix-ep-seasons .chips {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0 8px;
}
.netflix-ep-seasons .chip {
  padding: 10px 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #b3b3b3;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s ease;
}
.netflix-ep-seasons .chip.active {
  background: #e50914;
  border-color: #e50914;
  color: #fff;
  box-shadow: 0 4px 18px rgba(229, 9, 20, .5);
}
.netflix-ep-seasons .chip.focus {
  background: #fff;
  border-color: #fff;
  color: #0a0c11;
  -webkit-transform: scale(1.06);
  transform: scale(1.06);
  box-shadow: 0 0 24px rgba(255, 255, 255, .6);
}
.netflix-ep-cards-wrap {
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 10px;
}
.netflix-ep-cards {
  display: flex;
  gap: 22px;
  height: 100%;
  align-items: stretch;
}
.netflix-ep-card {
  width: 360px;
  flex-shrink: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, .05);
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
  -webkit-transition: -webkit-transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
}
.netflix-ep-card.focus {
  -webkit-transform: scale(1.04);
  transform: scale(1.04);
  border-color: #e50914;
  background: rgba(229, 9, 20, .14);
  box-shadow: 0 10px 30px rgba(229, 9, 20, .45);
}
.netflix-ep-card.active {
  border-color: rgba(229, 9, 20, .7);
}
.netflix-ep-still {
  position: relative;
  width: 100%;
  height: 190px;
  background: #181920;
  overflow: hidden;
  flex-shrink: 0;
}
.netflix-ep-still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .2s;
}
.netflix-ep-still .ph {
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  font-size: 26px;
  font-weight: 800;
  color: #555b68;
}
.netflix-ep-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 12px;
  border-radius: 6px;
  background: #e50914;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .6);
}
.netflix-ep-still .progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: rgba(255, 255, 255, .3);
}
.netflix-ep-still .progress i {
  display: block;
  height: 100%;
  background: #e50914;
}
.netflix-ep-still .seen {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .75);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #46d369;
}
.netflix-ep-still .seen .ic {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.netflix-ep-info {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.netflix-ep-t {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.netflix-ep-meta {
  font-size: 15px;
  font-weight: 600;
  color: #8c8c8c;
  margin-top: 4px;
}
.netflix-ep-desc {
  font-size: 14px;
  color: #a3a3a3;
  margin-top: 6px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.netflix-ep-status {
  padding: 60px 0;
  font-size: 24px;
  font-weight: 600;
  color: #8c8c8c;
  text-align: center;
  width: 100%;
}

/* ---------- Экран PIN-доступа для новых устройств ---------- */
.pin-gate-backdrop {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  background: rgba(8, 10, 16, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.pin-gate-card {
  background: #141824;
  border: 1px solid #252c3f;
  border-radius: 20px;
  width: 640px;
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 1px rgba(255, 255, 255, 0.2);
}
.pin-gate-badge {
  background: linear-gradient(135deg, #e50914, #ff414d);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 8px;
  letter-spacing: 2px;
  margin-bottom: 16px;
  display: inline-block;
}
.pin-gate-title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.pin-gate-desc {
  font-size: 16px;
  color: #8c9bb3;
  margin-bottom: 30px;
  line-height: 1.45;
  max-width: 520px;
}
.pin-slots-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}
.pin-slot {
  width: 56px;
  height: 70px;
  background: #1b2132;
  border: 2px solid #2a334d;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  transition: all 0.2s ease;
}
.pin-slot.filled {
  border-color: #3b82f6;
  background: #1e263d;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.35);
}
.pin-slot.active {
  border-color: #e50914;
  box-shadow: 0 0 16px rgba(229, 9, 20, 0.45);
}
.pin-slot-divider {
  font-size: 28px;
  color: #4a5675;
  font-weight: 700;
  margin: 0 4px;
}
.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 110px);
  gap: 14px;
  margin-bottom: 20px;
}
.pin-key {
  height: 64px;
  background: #1d2335;
  border: 1px solid #2b354e;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: #f0f3fa;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pin-key.f:focus, .pin-key.f.focused {
  background: #e50914 !important;
  color: #fff !important;
  border-color: #ff3340 !important;
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.5);
  outline: none;
}
.pin-key-action {
  font-size: 15px;
  font-weight: 600;
  background: #232b40;
}
.pin-gate-status {
  font-size: 15px;
  min-height: 24px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.pin-gate-status.error {
  color: #ff4d4f;
}
.pin-gate-status.success {
  color: #52c41a;
}
@keyframes pinShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-10px); }
  40%, 80% { transform: translateX(10px); }
}
.pin-shake {
  animation: pinShake 0.4s ease;
}



