.vod-catalog-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); grid-template-rows: minmax(0,1fr); gap: 25px; height: 626px; }
.vod-side { display: flex; flex-direction: column; gap: 9px; overflow: auto; padding: 6px; align-self: start; width: 100%; max-height: 620px; }
.vod-side button { text-align: left; min-height: 44px; }
.poster-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  grid-auto-rows: 270px;
  align-content: start;
  gap: 15px;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 7px;
}
.poster-button { min-width: 0; display: flex; flex-direction: column; padding: 0; overflow: hidden; text-align: left; background: #191714; }
.poster-art { position: relative; display: block; width: 100%; flex: 0 0 212px; background: linear-gradient(120deg,#282216,#141414); overflow: hidden; }
.poster-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.poster-rating {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 5px 8px;
  border-radius: 5px;
  background: rgba(10, 10, 10, .9);
  color: var(--gold);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}
.poster-button strong, .poster-button small { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poster-button strong { margin: 9px 10px 7px; font-size: 17px; }
.poster-button small { margin: 0 10px 8px; font-size: 14px; color: var(--muted); }
.more-tile { height: 100%; }
.screen.vhd-cinema { padding: 0; background: #101113; }
.cinema-stage { position: absolute; inset: 0; overflow: hidden; }
.cinema-art { position: absolute; inset: 0 0 auto; width: 100%; height: 592px; object-fit: cover; object-position: center 32%; }
.cinema-poster-art { left: auto; right: 0; width: 1000px; object-position: 50% 29%; }
.cinema-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, #101113 26%, rgba(12,13,15,.9) 36%, transparent 68%),
    linear-gradient(90deg, rgba(6,7,8,.98) 1%, rgba(7,8,9,.88) 28%, rgba(9,10,11,.54) 56%, rgba(9,10,11,.15) 100%),
    linear-gradient(180deg, rgba(6,7,8,.75), transparent 24%);
}
.cinema-episodes .cinema-shade { background-color: rgba(8,9,11,.55); }
.cinema-header { position: absolute; inset: 20px 45px auto 48px; height: 53px; border-bottom: 1px solid rgba(236,223,192,.19); }
.cinema-header button, .cinema-tabs button, .cinema-actions button { border-radius: 8px; }
.cinema-back { position: absolute; left: 0; top: 0; height: 42px; min-width: 108px; padding: 0 17px; background: rgba(14,14,16,.71); font-size: 17px; }
.cinema-brand { position: absolute; right: 10px; top: 4px; color: var(--gold); font-size: 24px; font-weight: 700; letter-spacing: 3px; }
.cinema-movie .cinema-brand { right: auto; left: 135px; }
.cinema-status { position: absolute; top: 10px; right: 108px; max-width: 655px; margin: 0; text-align: right; line-height: 1.26; font-size: 17px; color: #eee0c9; }
.cinema-status:empty { display: none; }
.cinema-retry { position: absolute; right: 94px; top: 0; height: 41px; padding: 0 15px; font-size: 16px; }
.cinema-header.with-retry .cinema-status { right: 195px; }
.cinema-kicker { position: absolute; top: 111px; left: 60px; color: var(--gold); font-size: 19px; font-weight: 700; letter-spacing: 2px; }
.cinema-title { position: absolute; left: 55px; top: 137px; width: 785px; height: 178px; margin: 0; color: #fff;
  text-shadow: 0 3px 16px #08090a; font-size: 90px; line-height: .98; overflow: hidden;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: break-word;
}
.cinema-title-long { font-size: 73px; }
.cinema-series .cinema-title { top: 151px; width: 890px; height: 142px; font-size: 66px; line-height: 1.03; }
.cinema-series .cinema-title-long { font-size: 59px; }
.cinema-meta { position: absolute; left: 60px; top: 327px; width: 880px; display: flex; flex-wrap: wrap; gap: 6px 25px; color: #eae2d6; font-size: 25px; }
.cinema-rating { color: var(--gold); font-weight: 700; white-space: nowrap; }
.cinema-summary { position: absolute; left: 60px; top: 375px; width: 725px; max-height: 64px; margin: 0;
  color: #ede8df; font-size: 23px; line-height: 1.34; overflow: hidden;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.cinema-series .cinema-meta { top: 295px; font-size: 22px; }
.cinema-series .cinema-summary { top: 342px; width: 805px; font-size: 23px; }
.cinema-actions { position: absolute; top: 453px; left: 54px; display: flex; gap: 19px; align-items: center; }
.cinema-actions button { min-width: 188px; height: 62px; padding: 0 16px; font-size: 19px; font-weight: bold; background: rgba(26,25,23,.83); }
.cinema-actions button:focus, .cinema-tabs button:focus { background: var(--selected); }
.cinema-actions .primary { width: 287px; height: 78px; background: #e5b256; color: #14100b; font-size: 24px; }
.cinema-actions .primary:focus { background: #edc370; }
.cinema-series .cinema-actions { top: 421px; left: 59px; }
.cinema-series .cinema-actions button { height: 52px; }
.cinema-series .cinema-actions .primary { width: 250px; }
.cinema-series #vod-episode-button { min-width: 202px; }
.cinema-series #cinema-favorite { min-width: 220px; }
.cinema-next { position: absolute; left: 62px; top: 485px; color: #e3d2b2; font-size: 19px; }
.cinema-tabs { position: absolute; left: 55px; top: 539px; display: flex; }
.cinema-tabs button { background: transparent; border-color: transparent; padding: 0 22px; height: 49px; font-weight: bold; }
.cinema-tabs [aria-pressed="true"] { border-bottom: 3px solid var(--gold); border-radius: 0; }
.cinema-lower { position: absolute; left: 48px; top: 591px; right: 48px; bottom: 35px;
  padding: 18px 11px 0; border-top: 1px solid #39332a; color: #e3ded5;
}
.cinema-lower h2 { margin: 0 0 13px; color: #fff; font-size: 26px; }
.cinema-lower p { margin: 0; font-size: 21px; line-height: 1.43; }
.cinema-lower > div { overflow-y: auto; min-height: 0; max-height: 100%; padding: 2px 18px 6px 5px; }
.cinema-scroll:focus { outline-offset: -3px; }
.cinema-series .cinema-lower { top: 558px; display: grid; grid-template-columns: 805px minmax(0,1fr); column-gap: 20px; padding: 0; }
.cinema-series .cinema-lower > div { padding: 22px 25px 8px 11px; }
.cinema-series .cinema-lower .cinema-details { border-left: 1px solid #39332a; padding-left: 30px; }
.cinema-facts { margin: 0; display: grid; gap: 8px 28px; }
.cinema-movie .cinema-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
.cinema-facts div { display: flex; gap: 15px; line-height: 1.27; }
.cinema-facts dt { min-width: 98px; color: #bfb5a3; }
.cinema-facts dd { margin: 0; }
.cinema-episodes .cinema-kicker { top: 79px; }
.cinema-episodes .cinema-title { top: 106px; width: 1310px; height: 72px; font-size: 53px; -webkit-line-clamp: 1; }
.cinema-season-title, .cinema-episode-count, .cinema-rail-label { position: absolute; margin: 0; top: 191px; }
.cinema-season-title { left: 287px; font-size: 32px; }
.cinema-episode-count { right: 63px; top: 206px; color: #d8caae; }
.cinema-rail-label { left: 42px; top: 211px; color: var(--gold); font-size: 16px; letter-spacing: 2px; }
.cinema-seasons { position: absolute; left: 36px; top: 244px; width: 221px; max-height: 470px; }
.cinema-episodes .episode-grid { position: absolute; top: 242px; left: 277px; right: 51px; max-height: 475px; padding: 15px 8px 8px;
  border-top: 1px solid #39332a; overflow: auto; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px;
  align-content: start;
}
.episode-card { display: block; min-width: 0; padding: 0; text-align: left; overflow: hidden; background: #171717; }
.cinema-episode-art { display: block; height: 132px; background: linear-gradient(135deg,#28231b,#151517); overflow: hidden; }
.episode-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.episode-card img.episode-series-art { object-fit: contain; }
.episode-copy { display: grid; gap: 5px; min-width: 0; padding: 9px 12px 12px; }
.episode-copy strong, .episode-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.episode-copy small { color: var(--muted); font-size: 16px; }
.cinema-episode-caption { position: absolute; top: 738px; left: 287px; right: 62px; max-height: 55px; color: #e1d8c8; font-size: 19px; overflow: hidden; }

#vod-player { position: absolute; inset: 0; background: black; }
#vod-player:focus { outline: none; }
#vod-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
#vod-video::cue { font-size: calc(30px * var(--subtitle-scale,1)); color: var(--subtitle-color,#fff); background: var(--subtitle-background,rgba(0,0,0,.8)); }
#vod-caption {
  position: absolute; bottom: 8%; left: 8%; right: 8%; text-align: center; pointer-events: none;
  color: var(--subtitle-color,#fff); font-size: calc(30px * var(--subtitle-scale,1)); line-height: 1.45;
  font-weight: 700; text-shadow: 0 1px 3px #000;
}
#vod-caption span {
  padding: 0 .25em; white-space: pre-wrap; overflow-wrap: break-word; unicode-bidi: plaintext;
  background: var(--subtitle-background,rgba(0,0,0,.8));
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
#vod-controls:not([hidden]) + #vod-caption { bottom: 245px; }
#vod-play-status {
  position: absolute; top: 36%; left: 19%; width: 62%; margin: 0; border-radius: 12px;
  background: #101010cc; color: var(--ink); text-align: center; font-size: 23px; line-height: 1.45; padding: 22px 29px;
}
#vod-controls { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px 50px; background: linear-gradient(0deg,#10100ff5 30%,#151411ac); }
#vod-controls h1 { margin: 0 0 14px; font-size: 27px; }
#vod-controls nav { display: flex; justify-content: center; gap: 14px; margin-top: 18px; }
#vod-controls button { min-width: 146px; }
.seek-line { display: flex; align-items: center; gap: 18px; }
.seek-line input { flex: 1; accent-color: var(--gold); }
.seek-line output { width: 160px; text-align: right; color: #ede0c3; font-size: 17px; }

.search-controls { display: flex; align-items: center; gap: 20px; }
.search-controls input { width: 550px; min-height: 55px; padding: 12px 20px; caret-color: var(--gold); }
.search-controls nav, .inbox-tools { display: flex; align-items: center; gap: 12px; }
.search-results { max-height: 550px; overflow: auto; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding: 7px; }
.search-results button { display: flex; min-height: 63px; gap: 13px; align-items: center; text-align: left; min-width: 0; }
.search-results img { width: 52px; height: 41px; object-fit: contain; }
.search-results small { margin-left: auto; color: var(--muted); }
.inbox-tools p { margin: 0 8px 0 0; color: var(--gold); }
.inbox-layout { display: grid; gap: 19px; grid-template-columns: 390px minmax(0,1fr); height: 560px; }
#inbox-rows { padding: 7px; overflow: auto; display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
#inbox-rows button { text-align: left; width: 100%; min-height: 53px; }
#inbox-rows .unread { border-left: 4px solid var(--gold); }
#inbox-message { background: var(--panel); border: 1px solid var(--edge); border-radius: 12px; padding: 24px 30px; overflow: auto; }
#inbox-message h2 { font-size: 29px; margin-bottom: 16px; }
#inbox-message time { color: var(--muted); font-size: 17px; }
#inbox-message p { line-height: 1.55; margin-top: 19px; white-space: pre-wrap; }
