@font-face { font-family: 'ModernWarfare'; src: url(ModernWarfare.ttf) format('truetype'); font-weight: normal; font-style: normal; }
@font-face { font-family: 'Vampherine'; src: url(Vampherine.ttf) format('truetype'); font-weight: normal; font-style: normal; }
@font-face { font-family: 'SpiderToon'; src: url(SpiderToon.ttf) format('truetype'); font-weight: normal; font-style: normal; }
@font-face { font-family: 'Rosehot'; src: url(Rosehot.ttf) format('truetype'); font-weight: normal; font-style: normal; }
@font-face { font-family: 'LastTrunks'; src: url(LastTrunks.ttf) format('truetype'); font-weight: normal; font-style: normal; }
@font-face { font-family: 'Wonderbar'; src: url(Wonderbar.otf) format('opentype'); font-weight: normal; font-style: normal; }
@font-face { font-family: 'VtksCriminal'; src: url(VtksCriminal.ttf) format('truetype'); font-weight: normal; font-style: normal; }
@font-face { font-family: 'WizardryNight'; src: url(WizardryNight.otf) format('opentype'); font-weight: normal; font-style: normal; }
@font-face { font-family: 'Saphifen'; src: url(Saphifen.otf) format('opentype'); font-weight: normal; font-style: normal; }
@font-face { font-family: 'Craze'; src: url(Craze.otf) format('opentype'); font-weight: normal; font-style: normal; }
@font-face { font-family: 'Morvien'; src: url(Morvien.ttf) format('truetype'); font-weight: normal; font-style: normal; }
@font-face { font-family: 'Corpta'; src: url(Corpta.otf) format('opentype'); font-weight: normal; font-style: normal; }
@font-face { font-family: 'StormGust'; src: url(StormGust.otf) format('opentype'); font-weight: normal; font-style: normal; }
@font-face { font-family: 'Valcore'; src: url(Valcore.otf) format('opentype'); font-weight: normal; font-style: normal; }
/* Rules added after the main sheet. Kept in their own file so a TV browser that stumbles on something in style.css still reads these. */
/* pop-up menus (the ⋯ More list, sort, etc.): the option under the remote's cursor must be plainly lit */
.menu button:focus, .menu a:focus { outline: none; background: #fff; color: #111; box-shadow: none; }
html[data-theme="light"] .menu button:focus, html[data-theme="light"] .menu a:focus { background: #111; color: #fff; }
html.a-focus .menu button:focus { outline: 5px solid #ffd60a !important; outline-offset: 2px !important; }

/* TV: glass blur and soft shadows are the costliest thing the TV's browser draws; plain panels keep the arrows fluid */
html.tv *, html.tv *::before, html.tv *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.tv .card:focus, html.tv .card:hover { box-shadow: none; }

/* skip view (overlay hidden, just the time and scrub bar): it sits at the bottom of the picture, not the top */
.player.mini .ui { justify-content: flex-end; }
.player.mini .foot { margin-top: auto; }

.lic { white-space: pre-wrap; font-size: .85rem; line-height: 1.45; padding: 8px 10px; margin: 4px 0; border-radius: 8px; }
.lic:focus { outline: none; background: rgba(255,255,255,.14); box-shadow: none; }

.menu button.kf, .menu a.kf { outline: none; background: #fff !important; color: #111 !important; box-shadow: none; }
html[data-theme="light"] .menu button.kf, html[data-theme="light"] .menu a.kf { background: #111 !important; color: #fff !important; }

.avatar { color: #fff; }

/* skip view: pinned to the bottom edge whatever the TV does with flex layouts */
.player.mini .foot { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; }
/* TV: only the lift is animated; shadows and filters changing on every arrow press are what made it stutter */
html.tv .card, html.tv .t10 { transition: transform .12s ease-out !important; }
html.tv .card:focus, html.tv .card:hover, html.tv .t10:focus { box-shadow: none !important; filter: none !important; }
html.tv .btn:focus, html.tv .btn:hover, html.tv .act:focus .act-c { filter: none !important; transition: transform .1s ease-out !important; }
html.tv .card .art img, html.tv .t10 .art img { transition: none !important; }

/* the option under the remote: several cues at once (marker, outline, shift, colour) so one of them always shows on a TV */
.menu button.kf, .menu a.kf { outline: none !important; box-shadow: none !important; }

/* Top bar: the tab under the remote lifts out of the bar as a see-through raised tile, larger and clearer than its neighbours. */
html .top { align-items: center; }
html .top .tab { margin: 0 6px; border-radius: 14px; border: 1px solid transparent; background: transparent; position: relative; z-index: 1; transform-origin: 50% 50%; transition: transform .22s cubic-bezier(.2,.8,.3,1), background-color .2s ease, box-shadow .22s ease, border-color .2s ease, color .15s ease; }
html.tv .top .tab { padding: 14px 24px; font-size: 1.25rem; }
html .top .tab.on { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #fff !important; }
html .top .tab:focus, html .top .tab:hover, html .top .tab.on:focus {
  z-index: 3; outline: none; color: #fff !important; font-weight: 700; text-shadow: 0 2px 6px rgba(0,0,0,.65);
  background: -webkit-linear-gradient(top, rgba(255,255,255,.40) 0%, rgba(255,255,255,.16) 48%, rgba(255,255,255,.07) 100%);
  background: linear-gradient(180deg, rgba(255,255,255,.40) 0%, rgba(255,255,255,.16) 48%, rgba(255,255,255,.07) 100%);
  border-color: rgba(255,255,255,.55); border-bottom-color: rgba(255,255,255,.18);
  -webkit-transform: perspective(520px) translateY(-6px) translateZ(18px) rotateX(9deg) scale(1.1);
  transform: perspective(520px) translateY(-6px) translateZ(18px) rotateX(9deg) scale(1.1);
  box-shadow: 0 22px 26px -6px rgba(0,0,0,.7), 0 6px 0 -1px rgba(255,255,255,.12), inset 0 2px 0 rgba(255,255,255,.55), inset 0 -10px 16px rgba(0,0,0,.18);
}
html.tv .top { height: calc(118px * var(--tvk, 1)); }
html.a-calm .top .tab, html.a-calm .top .tab:focus { transition: none; transform: none; }
html.tv .top .tab.on, html.tv .top .tab:focus, html.tv .top .tab:hover, html.tv .top .tab.on:focus { color: #fff !important; }
html .top .tab { margin: 0 10px; }

/* Front Row billboard buttons use the app's own colours: Play/Resume is the red primary button with white text, More info is dark glass with white text.
   (Before, Play was white with dark text and turned grey with dark text when highlighted, which could not be read.) */
html .btn.bb-play, html.tv .btn.bb-play, html[data-theme] .btn.bb-play { background: #a8182a; background-image: none; color: #fff !important; border: 0; box-shadow: none; text-shadow: none; }
html .btn.bb-play:focus, html .btn.bb-play:hover, html.tv .btn.bb-play:focus { background: #ff4a57; background-image: none; color: #fff !important; box-shadow: 0 14px 26px rgba(0,0,0,.55); }
html .btn.bb-info, html.tv .btn.bb-info, html[data-theme] .btn.bb-info { background: rgba(20,20,28,.62); color: #fff !important; border: 1px solid rgba(255,255,255,.25); }
html .btn.bb-info:focus, html .btn.bb-info:hover, html.tv .btn.bb-info:focus { background: rgba(255,255,255,.28); color: #fff !important; border-color: rgba(255,255,255,.6); box-shadow: 0 14px 26px rgba(0,0,0,.55); }

/* Every button gets the same raised look as the top bar, a little gentler. */
html .btn:focus, html .btn:hover, html .row:focus, html .row:hover, html .chip:focus, html .ib:focus, html .tp-play:focus, html .tp-restart:focus, html .act:focus .act-c, html .act:hover .act-c {
  -webkit-transform: perspective(520px) translateY(-4px) translateZ(20px) rotateX(6deg) scale(1.1);
  transform: perspective(520px) translateY(-4px) translateZ(20px) rotateX(6deg) scale(1.1);
  box-shadow: 0 16px 20px -6px rgba(0,0,0,.65), 0 4px 0 -1px rgba(255,255,255,.1), inset 0 2px 0 rgba(255,255,255,.4), inset 0 -8px 12px rgba(0,0,0,.14);
  border-color: rgba(255,255,255,.45);
}
html .btn, html .row, html .chip, html .ib, html .act .act-c { transition: transform .2s cubic-bezier(.2,.8,.3,1), box-shadow .2s ease, background-color .18s ease, border-color .18s ease; }
html.a-calm .btn:focus, html.a-calm .btn:hover, html.a-calm .row:focus, html.a-calm .chip:focus, html.a-calm .ib:focus, html.a-calm .act:focus .act-c { transform: none; }
html .btn.bb-play:focus, html .btn.bb-info:focus, html.tv .btn.bb-play:focus, html.tv .btn.bb-info:focus { box-shadow: 0 16px 20px -6px rgba(0,0,0,.65), inset 0 2px 0 rgba(255,255,255,.4); }

/* Browse by genre: tiles on Home and the lettering of a genre page. Each genre gets a quiet tint and its own style of lettering, nothing loud. */
.rail > .gtile { flex: 0 0 auto; width: auto; min-width: 190px; height: 92px; margin: 0; padding: 0 34px; text-align: center; color: #fff; border: 1px solid var(--line, #2a2a37); border-radius: 16px; background: var(--panel2, #1d1d27); cursor: pointer; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
html.tv .rail > .gtile { height: calc(112px * var(--tvk, 1)); min-width: calc(230px * var(--tvk, 1)); margin-right: 14px; }
.gtile .gt-name { display: block; font-size: 1.45rem; line-height: 1.15; color: #fff; }
html.tv .gtile .gt-name { font-size: 1.85rem; }
.ghead { padding: 26px 0 8px; margin-bottom: 8px; }
.ghead h1 { margin: 0 0 6px; }
.g-action { } .g-action .gt-name, h1.g-action { font-family: "Arial Black", Impact, sans-serif; font-weight: 900; font-style: italic; letter-spacing: .02em; text-transform: uppercase; }
.g-comedy { } .g-comedy .gt-name, h1.g-comedy { font-family: "Trebuchet MS", "Segoe UI", sans-serif; font-weight: 800; letter-spacing: .01em; }
.g-drama { } .g-drama .gt-name, h1.g-drama { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: .01em; }
.g-horror { } .g-horror .gt-name, h1.g-horror { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 700; letter-spacing: .08em; text-shadow: 0 0 14px rgba(200,30,50,.45); }
.g-scifi { } .g-scifi .gt-name, h1.g-scifi { font-family: "Courier New", monospace; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.g-romance { } .g-romance .gt-name, h1.g-romance { font-family: Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: .02em; }
.g-thriller { } .g-thriller .gt-name, h1.g-thriller { font-family: "Arial Narrow", Arial, sans-serif; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.g-crime { } .g-crime .gt-name, h1.g-crime { font-family: "Courier New", monospace; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.g-animation { } .g-animation .gt-name, h1.g-animation { font-family: "Trebuchet MS", "Segoe UI", sans-serif; font-weight: 800; letter-spacing: .03em; }
.g-family { } .g-family .gt-name, h1.g-family { font-family: "Trebuchet MS", "Segoe UI", sans-serif; font-weight: 700; }
.g-adventure { } .g-adventure .gt-name, h1.g-adventure { font-family: Georgia, serif; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.g-fantasy { } .g-fantasy .gt-name, h1.g-fantasy { font-family: Palatino, "Palatino Linotype", Georgia, serif; font-style: italic; font-weight: 700; letter-spacing: .04em; }
.g-mystery { } .g-mystery .gt-name, h1.g-mystery { font-family: Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: .1em; }
.g-documentary { } .g-documentary .gt-name, h1.g-documentary { font-family: Arial, Helvetica, sans-serif; font-weight: 300; letter-spacing: .12em; text-transform: uppercase; }
.g-war { } .g-war .gt-name, h1.g-war { font-family: "Courier New", monospace; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.g-western { } .g-western .gt-name, h1.g-western { font-family: Georgia, serif; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.g-history { } .g-history .gt-name, h1.g-history { font-family: Georgia, serif; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; }
.g-music { } .g-music .gt-name, h1.g-music { font-family: "Trebuchet MS", sans-serif; font-style: italic; font-weight: 700; letter-spacing: .03em; }
.g-other { } .g-other .gt-name, h1.g-other { font-weight: 700; letter-spacing: .02em; }
.ghead h1 { background: none !important; }
/* same raised focus as the other buttons */
html .gtile:focus { transform: perspective(520px) translateY(-4px) translateZ(20px) rotateX(6deg) scale(1.06); border-color: var(--accent-hi, #ff4a57); background: #262634; box-shadow: 0 10px 22px rgba(0,0,0,.55), inset 0 -3px 0 var(--accent, #e0303c); outline: none; }
html.a-calm .gtile:focus { transform: none; }

/* Top bar, 0.1.32: tabs keep one weight so a focused tab never widens into its neighbours; a dark backing appears once the page has scrolled so labels never sit on poster art */
html.tv .top .tab { font-weight: 700; }
html.tv .top.solid { background: -webkit-linear-gradient(top, rgba(11,11,15,.96) 0%, rgba(11,11,15,.92) 70%, rgba(11,11,15,0) 100%) !important; background: linear-gradient(180deg, rgba(11,11,15,.96) 0%, rgba(11,11,15,.92) 70%, rgba(11,11,15,0) 100%) !important; }
#topsent { position: absolute; top: 30px; left: 0; width: 1px; height: 1px; pointer-events: none; visibility: hidden; }

/* ---- 0.1.33: water-like motion, and the genre tiles made like the top bar ---- */
/* Every lift and settle takes a little longer and eases out slowly, like iOS. Only transform and opacity animate, so it costs the TV nothing. */
html.tv .card, html.tv .t10, html.tv .btn, html.tv .row, html.tv .chip, html.tv .ib, html.tv .act-c, html.tv .gtile, html.tv .rarrow { transition: transform .38s cubic-bezier(.22, .61, .36, 1), opacity .3s ease !important; }
html.tv .btn:focus, html.tv .btn:hover, html.tv .act:focus .act-c { transition: transform .34s cubic-bezier(.22, .61, .36, 1), opacity .3s ease !important; }
html.tv .top .tab { transition: transform .4s cubic-bezier(.22, .61, .36, 1), color .3s ease, border-color .3s ease !important; }
html.a-calm.tv .card, html.a-calm.tv .btn, html.a-calm.tv .gtile, html.a-calm.tv .top .tab { transition: none !important; }
/* a new page eases in instead of cutting */
@-webkit-keyframes pgIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pgIn { from { opacity: 0; } to { opacity: 1; } }
/* (the page fade-in was removed in 0.1.37: an animated layer the height of a long page is a risk for the TV's graphics memory) */
html.a-calm.tv main { animation: none; }

/* the glass behind a focused top-bar tab fades in with the lift (a gradient itself cannot be animated, so it lives on a layer whose opacity does) */
html .top .tab::before { content: ''; position: absolute; left: -1px; right: -1px; top: -1px; bottom: -1px; border-radius: 14px; z-index: -1; opacity: 0; pointer-events: none;
  background: -webkit-linear-gradient(top, rgba(255,255,255,.40) 0%, rgba(255,255,255,.16) 48%, rgba(255,255,255,.07) 100%);
  background: linear-gradient(180deg, rgba(255,255,255,.40) 0%, rgba(255,255,255,.16) 48%, rgba(255,255,255,.07) 100%);
  box-shadow: 0 22px 26px -6px rgba(0,0,0,.7), 0 6px 0 -1px rgba(255,255,255,.12), inset 0 2px 0 rgba(255,255,255,.55), inset 0 -10px 16px rgba(0,0,0,.18);
  -webkit-transition: opacity .4s ease; transition: opacity .4s ease; }
html .top .tab:focus::before, html .top .tab:hover::before { opacity: 1; }
html .top .tab:focus, html .top .tab:hover, html .top .tab.on:focus { background: transparent !important; box-shadow: none !important; }
html.a-calm .top .tab::before { transition: none; }

/* genre tiles: the same glass as the top bar. At rest the soft panel of the current tab, lifted and lit when the remote is on them. */
.rail > .gtile { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.gtile::before { content: ''; position: absolute; left: -1px; right: -1px; top: -1px; bottom: -1px; border-radius: 16px; z-index: -1; opacity: 0; pointer-events: none;
  background: -webkit-linear-gradient(top, rgba(255,255,255,.40) 0%, rgba(255,255,255,.16) 48%, rgba(255,255,255,.07) 100%);
  background: linear-gradient(180deg, rgba(255,255,255,.40) 0%, rgba(255,255,255,.16) 48%, rgba(255,255,255,.07) 100%);
  box-shadow: 0 22px 26px -6px rgba(0,0,0,.7), 0 6px 0 -1px rgba(255,255,255,.12), inset 0 2px 0 rgba(255,255,255,.55), inset 0 -10px 16px rgba(0,0,0,.18);
  -webkit-transition: opacity .4s ease; transition: opacity .4s ease; }
.rail > .gtile { z-index: 1; overflow: visible; }
html .gtile:focus, html .gtile:hover { background: rgba(255,255,255,.08) !important; border-color: rgba(255,255,255,.55) !important; box-shadow: none !important; outline: none; z-index: 3;
  -webkit-transform: perspective(520px) translateY(-6px) translateZ(18px) rotateX(9deg) scale(1.1); transform: perspective(520px) translateY(-6px) translateZ(18px) rotateX(9deg) scale(1.1); }
html .gtile:focus::before, html .gtile:hover::before { opacity: 1; }
html .gtile:focus .gt-name { text-shadow: 0 2px 6px rgba(0,0,0,.65); }
html.a-calm .gtile::before { transition: none; }

/* Action: Valcore (supplied by the owner), as the font is drawn: no slant, no forced capitals */
.g-action .gt-name, h1.g-action { font-family: 'Valcore', "Arial Black", Impact, sans-serif; font-weight: normal; font-style: normal; text-transform: none; letter-spacing: .02em; }
html.tv .g-action .gt-name { font-size: 2.1rem; }

/* Horror: Storm Gust (supplied by the owner) */
.g-horror .gt-name, h1.g-horror { font-family: 'StormGust', Georgia, serif; font-weight: normal; font-style: normal; text-transform: none; letter-spacing: .04em; text-shadow: 0 0 14px rgba(200,30,50,.35); }

/* Science Fiction: Corpta (supplied by the owner) */
.g-scifi .gt-name, h1.g-scifi { font-family: 'Corpta', "Courier New", monospace; font-weight: normal; font-style: normal; text-transform: none; letter-spacing: .06em; }

/* Adventure: Morvien (supplied by the owner) */
.g-adventure .gt-name, h1.g-adventure { font-family: 'Morvien', Georgia, serif; font-weight: normal; font-style: normal; text-transform: none; letter-spacing: .04em; }

/* Drama: Craze (supplied by the owner) */
.g-drama .gt-name, h1.g-drama { font-family: 'Craze', Georgia, serif; font-weight: normal; font-style: normal; text-transform: none; letter-spacing: .03em; }

/* Thriller: Saphifen (supplied by the owner) */
.g-thriller .gt-name, h1.g-thriller { font-family: 'Saphifen', "Arial Narrow", Arial, sans-serif; font-weight: normal; font-style: normal; text-transform: none; letter-spacing: .05em; }

/* Comedy: Wizardry Night (supplied by the owner) */
.g-comedy .gt-name, h1.g-comedy { font-family: 'WizardryNight', "Trebuchet MS", sans-serif; font-weight: normal; font-style: normal; text-transform: none; letter-spacing: .03em; }

/* Crime: VTKS Criminal (supplied by the owner) */
.g-crime .gt-name, h1.g-crime { font-family: 'VtksCriminal', "Courier New", monospace; font-weight: normal; font-style: normal; text-transform: none; letter-spacing: .04em; }

/* Fantasy: Wonderbar (supplied by the owner) */
.g-fantasy .gt-name, h1.g-fantasy { font-family: 'Wonderbar', Palatino, Georgia, serif; font-weight: normal; font-style: normal; text-transform: none; letter-spacing: .04em; }

/* Family: The Last Trunks (supplied by the owner) */
.g-family .gt-name, h1.g-family { font-family: 'LastTrunks', "Trebuchet MS", sans-serif; font-weight: normal; font-style: normal; text-transform: none; letter-spacing: .03em; }

/* Romance: Rosehot (supplied by the owner) */
.g-romance .gt-name, h1.g-romance { font-family: 'Rosehot', Georgia, serif; font-weight: normal; font-style: normal; text-transform: none; letter-spacing: .03em; }

/* Animation: Spider Toon (supplied by the owner) */
.g-animation .gt-name, h1.g-animation { font-family: 'SpiderToon', "Trebuchet MS", sans-serif; font-weight: normal; font-style: normal; text-transform: none; letter-spacing: .03em; }

/* Mystery: Vampherine (supplied by the owner) */
.g-mystery .gt-name, h1.g-mystery { font-family: 'Vampherine', Georgia, serif; font-weight: normal; font-style: normal; text-transform: none; letter-spacing: .05em; }

/* War: Modern Warfare (supplied by the owner) */
.g-war .gt-name, h1.g-war { font-family: 'ModernWarfare', "Courier New", monospace; font-weight: normal; font-style: normal; text-transform: none; letter-spacing: .05em; }

/* 0.1.35: genre tiles smaller and closer together, so more fit on screen and the row is quicker to move along */
.rail > .gtile { height: 70px; min-width: 120px; padding: 0 20px; border-radius: 14px; }
html.tv .rail > .gtile { height: calc(78px * var(--tvk, 1)); min-width: calc(140px * var(--tvk, 1)); margin-right: 8px; padding: 0 calc(22px * var(--tvk, 1)); }
.gtile .gt-name { font-size: 1.15rem; letter-spacing: .02em; }
html.tv .gtile .gt-name { font-size: 1.4rem; }
html.tv .g-action .gt-name { font-size: 1.6rem; }
html.tv .g-scifi .gt-name { letter-spacing: .02em; }
.gtile::before { border-radius: 14px; }

/* The logo stays put with nothing behind it (transparent); tabs that scroll toward it fade out before they reach it (see fadeTabs in app.js) */
html .top .brand { position: -webkit-sticky; position: sticky; left: 0; z-index: 9; margin-left: -48px; padding-left: 48px; padding-right: 44px; margin-right: 0; align-self: stretch; background: none; }
html.tv .top .brand { left: calc(-48px * var(--tvk, 1)); margin-left: calc(-48px * var(--tvk, 1)); padding-left: calc(48px * var(--tvk, 1)); }
html[data-theme="light"] .top .brand { background: none; }

/* On a TV the pointer's resting place must not light a second tile: only the tile the remote is on is raised */
html.tv .gtile:hover:not(:focus) { background: rgba(255,255,255,.08) !important; border-color: rgba(255,255,255,.14) !important; -webkit-transform: none; transform: none; z-index: 1; }
html.tv .gtile:hover:not(:focus)::before { opacity: 0; }
html.tv .top .tab:hover:not(:focus):not(.on) { -webkit-transform: none; transform: none; }
html.tv .top .tab:hover:not(:focus)::before { opacity: 0; }

/* A-Z strip: a big vertical drum, three quarters of the screen high, equal space above and below, letters spaced well apart and turned in 3D */
#rolo { top: 12.5vh; bottom: 12.5vh; height: auto; width: calc(360px * var(--tvk, 1)); display: none; -webkit-transform: none; transform: none; padding: 0; background: -webkit-linear-gradient(left, rgba(0,0,0,.82), rgba(0,0,0,.55) 55%, rgba(0,0,0,0)); background: linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.55) 55%, rgba(0,0,0,0)); -webkit-perspective: 1100px; perspective: 1100px; -webkit-perspective-origin: 30% 50%; perspective-origin: 30% 50%; overflow: visible; }
#rolo.on { display: block; }
#rolo .rl { position: absolute; left: calc(70px * var(--tvk, 1)); top: 50%; width: calc(150px * var(--tvk, 1)); height: calc(120px * var(--tvk, 1)); margin-top: calc(-60px * var(--tvk, 1)); padding: 0; flex: none; display: block; text-align: center; font-size: calc(76px * var(--tvk, 1)); line-height: calc(120px * var(--tvk, 1)); font-weight: 800; color: #fff; border-radius: calc(34px * var(--tvk, 1)); background: none; -webkit-backface-visibility: hidden; backface-visibility: hidden; -webkit-transition: transform .42s cubic-bezier(.22,.61,.36,1), opacity .42s, background-color .42s, color .42s; transition: transform .42s cubic-bezier(.22,.61,.36,1), opacity .42s, background-color .42s, color .42s; text-shadow: 0 6px 18px rgba(0,0,0,.6); }
#rolo .rl:focus, #rolo .rl.sel { outline: none; color: #fff; background: -webkit-linear-gradient(top, rgba(255,255,255,.42), rgba(255,255,255,.14)); background: linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,.14)); box-shadow: inset 0 2px 0 rgba(255,255,255,.55), inset 0 -2px 0 rgba(255,255,255,.1), 0 26px 50px rgba(0,0,0,.6), 0 0 60px rgba(255,200,170,.35); }
#rolo .rl:disabled { color: rgba(255,255,255,.5); }
html:not(.tv) #rolo { width: 220px; }
html:not(.tv) #rolo .rl { width: 92px; height: 74px; margin-top: -37px; left: 24px; font-size: 46px; line-height: 74px; border-radius: 22px; }

/* Titles pop: the title under a poster lifts further and sits on a pane of glass when the tile is selected */
.card .t { padding: 4px 8px; margin-left: -4px; margin-right: -4px; margin-top: 4px; border-radius: 12px; background-color: rgba(255,255,255,0); -webkit-transition: transform .38s cubic-bezier(.22,.61,.36,1), background-color .38s, color .3s, box-shadow .38s; transition: transform .38s cubic-bezier(.22,.61,.36,1), background-color .38s, color .3s, box-shadow .38s; }
html.tv .card .t { margin-top: calc(6px * var(--tvk, 1)); }
.card:focus .t, .card:hover .t { color: #fff; font-weight: 800; background: -webkit-linear-gradient(top, rgba(255,255,255,.34), rgba(255,255,255,.12)); background: linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,.12)); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -1px 0 rgba(255,255,255,.08), 0 10px 22px rgba(0,0,0,.5); -webkit-transform: translate3d(0, 1px, 0) scale(1.07); transform: translate3d(0, 1px, 0) scale(1.07); text-shadow: 0 1px 6px rgba(0,0,0,.55); }
html.tv .card .t { -webkit-transition: transform .38s cubic-bezier(.22,.61,.36,1), background-color .38s, color .3s, box-shadow .38s !important; transition: transform .38s cubic-bezier(.22,.61,.36,1), background-color .38s, color .3s, box-shadow .38s !important; }
html.tv .card:focus .t, html.tv .card:hover:focus .t { -webkit-transform: translate3d(0, 2px, 0) scale(1.1); transform: translate3d(0, 2px, 0) scale(1.1); }
html.tv .card:hover:not(:focus) .t { background: none; box-shadow: none; -webkit-transform: none; transform: none; font-weight: 600; }
html[data-theme="light"] .card:focus .t, html[data-theme="light"] .card:hover .t { color: #111; background: -webkit-linear-gradient(top, #fff, rgba(255,255,255,.7)); background: linear-gradient(180deg, #fff, rgba(255,255,255,.7)); text-shadow: none; box-shadow: inset 0 1px 0 #fff, 0 10px 22px rgba(20,20,40,.25); }
html.a-calm .card .t { transition: none !important; }
@font-face { font-family: 'Avengeance'; src: url(Avengeance.otf) format('opentype'); font-weight: normal; font-style: normal; }
.scv { white-space: nowrap; display: inline-flex; align-items: baseline; }
.scv-s { text-transform: uppercase; font-size: .86em; font-weight: 800; letter-spacing: .03em; line-height: 1; background: -webkit-linear-gradient(top, #fff6e4, #f0b79e); background: linear-gradient(180deg, #fff6e4, #f0b79e); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.scv-v { text-transform: uppercase; margin-right: .05em; position: relative; top: .15em; font-family: 'Avengeance', 'Arial Narrow', sans-serif; font-weight: normal; font-size: 1em; line-height: 1; letter-spacing: .04em; margin-left: -.09em; background: none; -webkit-text-fill-color: #fff; color: #fff; text-shadow: .045em .045em 0 #e0303c; }
html[data-theme="light"] .scv-s { background: -webkit-linear-gradient(top, #e0303c, #a5121f); background: linear-gradient(180deg, #e0303c, #a5121f); -webkit-background-clip: text; background-clip: text; }
html[data-theme="light"] .scv-v { -webkit-text-fill-color: #14141c; color: #14141c; }
.btn.pri .scv-s, .btn.primary .scv-s, .btn.red .scv-s { background: none; -webkit-text-fill-color: #fff; color: #fff; }
.btn.pri .scv-v, .btn.primary .scv-v, .btn.red .scv-v { -webkit-text-fill-color: #fff; color: #fff; text-shadow: .045em .045em 0 rgba(0,0,0,.4); }

/* Posters fade with distance from the selected one (set in app.js, TV only) */
html.tv .rail > .card { -webkit-transition: transform .38s cubic-bezier(.22,.61,.36,1), opacity .42s cubic-bezier(.22,.61,.36,1), box-shadow .38s; transition: transform .38s cubic-bezier(.22,.61,.36,1), opacity .42s cubic-bezier(.22,.61,.36,1), box-shadow .38s; }
html.tv .rail > .card.fo1 { opacity: .96; } html.tv .rail > .card.fo2 { opacity: .9; } html.tv .rail > .card.fo3 { opacity: .84; } html.tv .rail > .card.fo4 { opacity: .78; }
html.tv .rail > .card.fo5 { opacity: .72; } html.tv .rail > .card.fo6 { opacity: .68; } html.tv .rail > .card.fo7 { opacity: .66; }
html.a-calm .rail > .card { opacity: 1 !important; }

/* Scena-coloured gradient behind the show and season pages, with a faint picture of the show on top */
.pagebd { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; overflow: hidden; pointer-events: none; animation: none !important;
  background: #14141d; background: -webkit-linear-gradient(135deg, #3a1420 0%, #1b1220 38%, #14141d 70%, #0d0d14 100%); background: linear-gradient(135deg, #3a1420 0%, #1b1220 38%, #14141d 70%, #0d0d14 100%); }
.pagebd img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; opacity: .22; }
.pagebd::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: -webkit-linear-gradient(top, rgba(13,13,20,0), rgba(13,13,20,.7)); background: linear-gradient(180deg, rgba(13,13,20,0), rgba(13,13,20,.7)); }
html[data-theme="light"] .pagebd { display: none; }

/* ---- 0.1.48: the selected tile rises exactly like the Sky Stream home screen ----
 * It grows about its own centre (no lift) to about 1.18 times, gains a thin pale ring with a soft blue glow, and the tiles around it are dimmed a little.
 * The row slides beneath it so it rests at the row's left edge; the move eases out over about 0.38 s. */
html.tv .card:focus, html.tv .card:hover:focus { -webkit-transform: translate3d(0, 0, 0) scale(1.18); transform: translate3d(0, 0, 0) scale(1.18); z-index: 7; }
html.tv .card:hover:not(:focus) { -webkit-transform: none; transform: none; z-index: auto; }
.card .art { -webkit-transition: box-shadow .38s cubic-bezier(.22, .61, .36, 1); transition: box-shadow .38s cubic-bezier(.22, .61, .36, 1); }
html.tv .card:focus .art { box-shadow: 0 0 0 2px rgba(228, 240, 255, .92), 0 0 24px 3px rgba(120, 175, 255, .5), 0 22px 40px rgba(0, 0, 0, .55); }
html.tv .rail > .card.fo1 { opacity: .9; } html.tv .rail > .card.fo2 { opacity: .82; } html.tv .rail > .card.fo3 { opacity: .76; } html.tv .rail > .card.fo4 { opacity: .72; }
html.tv .rail > .card.fo5, html.tv .rail > .card.fo6, html.tv .rail > .card.fo7 { opacity: .68; }
html.a-calm.tv .card:focus { -webkit-transform: none; transform: none; }
html.a-focus.tv .card:focus .art { box-shadow: none; }

/* Skip intro / recap / credits: a clear outer ring so you can tell it is the thing OK will press, and a quick press feedback */
.btn.skipbtn { box-shadow: 0 0 0 3px rgba(255, 255, 255, .92), 0 0 22px 4px rgba(255, 255, 255, .28), 0 6px 24px rgba(0, 0, 0, .66); -webkit-transition: transform .12s ease, box-shadow .12s ease; transition: transform .12s ease, box-shadow .12s ease; }
.btn.skipbtn:focus { -webkit-transform: none; transform: none; box-shadow: 0 0 0 4px #fff, 0 0 28px 6px rgba(255, 255, 255, .4), 0 6px 24px rgba(0, 0, 0, .66); }
.btn.skipbtn.pressed { -webkit-transform: scale(.94); transform: scale(.94); box-shadow: 0 0 0 6px rgba(255, 255, 255, .95), 0 0 34px 10px rgba(255, 255, 255, .5); }

/* The last tile of a row sat against the screen's edge, partly hidden (the end padding of a sideways-scrolling row is dropped by older TV browsers, and the selected tile is also larger).
 * A spacer after the last tile gives it room. */
.rail::after { content: ""; -webkit-box-flex: 0; -webkit-flex: 0 0 auto; flex: 0 0 auto; width: 48px; height: 1px; }
html.tv .rail::after { width: calc(120px * var(--tvk, 1)); }
/* Skip intro / recap / credits: a red outer ring, set apart from the button by a thin dark gap so it shows on any picture (an outline, so no box-shadow rule can hide it) */
html .btn.skipbtn, html.tv .btn.skipbtn { outline: 4px solid #e0303c !important; outline-offset: 5px !important; box-shadow: 0 0 0 5px rgba(0, 0, 0, .55), 0 6px 24px rgba(0, 0, 0, .66) !important; }
html .btn.skipbtn:focus, html.tv .btn.skipbtn:focus { outline-color: #ff4a57 !important; outline-width: 5px !important; }
html .btn.skipbtn.pressed, html.tv .btn.skipbtn.pressed { outline-color: #fff !important; }
/* Episode and season grids on a TV: room around the raised tile so the first and last column are never pushed off the screen */
html.tv .ep-grid, html.tv .season-grid, html.tv main .grid { padding: 20px calc(34px * var(--tvk, 1)) 20px; }
/* TV top bar: sizes are set by the app (fitTopBar) to the largest at which every tab fits; no end gap is needed then */
html.tv .top .brand { margin-right: calc(14px * var(--tvk, 1)); }
html.tv .top { padding-right: calc(24px * var(--tvk, 1)); }
/* the second credits button (Watch credits) sits above Next episode, in the same style */
.btn.skipbtn.skip2 { bottom: calc(17vh + 78px); }
html.tv .btn.skipbtn.skip2 { bottom: calc(17vh + 104px * var(--tvk, 1)); }
/* Skip / credits buttons: a bar that runs down over the time the button is on offer (like Netflix) */
.btn.skipbtn { overflow: hidden; }
.btn.skipbtn .skfill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: rgba(255, 255, 255, .3); pointer-events: none; -webkit-transition: width .5s linear; transition: width .5s linear; }
.btn.skipbtn .sklbl { position: relative; }

/* the word Scena, wherever it is written */
.scn { text-transform: uppercase; font-size: .9em; font-weight: 800; letter-spacing: .03em; background: -webkit-linear-gradient(top, #fff6e4, #f0b79e); background: linear-gradient(180deg, #fff6e4, #f0b79e); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
html[data-theme="light"] .scn { background: -webkit-linear-gradient(top, #e0303c, #a5121f); background: linear-gradient(180deg, #e0303c, #a5121f); -webkit-background-clip: text; background-clip: text; }
.btn.pri .scn, .btn.primary .scn, .btn.red .scn { background: none; -webkit-text-fill-color: #fff; color: #fff; }

/* show / hide password */
.pw { position: relative; display: block; min-width: 0; } .pw > input { width: 100%; box-sizing: border-box; padding-right: 52px; }
.pw-eye { position: absolute; right: 6px; top: 50%; margin-top: -20px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: none; border: 0; border-radius: 10px; color: var(--muted); cursor: pointer; padding: 0; }

/* light look for slow TVs (set by the app on sets with about 2 GB of memory): no big blurs or shadows, a plain focus ring */
html.lite .bb-img.blur { display: none; }
html.lite *, html.lite *::before, html.lite *::after { text-shadow: none !important; -webkit-filter: none !important; filter: none !important; }
html.lite .card, html.lite .card:focus, html.lite .t10 .art, html.lite .t10:focus .art, html.lite .dial .art, html.lite .sheet, html.lite .menu, html.lite .player .bar { box-shadow: none !important; }
html.lite .row:focus, html.lite .chip:focus { outline: 4px solid #fff !important; outline-offset: 3px; }
/* tiles: no ring; the selected tile lifts exactly as on the LG (the lift is cheap, it is the blur and the shadow that slow a small TV down) */
html.lite .card:focus, html.lite .t10:focus .art { outline: none !important; }
html.lite.tv .card, html.lite .card { -webkit-transition: -webkit-transform .2s ease !important; transition: transform .2s ease !important; }
html.lite.tv .card:hover, html.lite.tv .card:focus, html.lite.a-calm .card:hover, html.lite.a-calm .card:focus { -webkit-transform: translate3d(0, -14px, 0) scale(1.14) !important; transform: translate3d(0, -14px, 0) scale(1.14) !important; z-index: 6; }
html.lite .top .tab:focus { outline: 3px solid #fff; outline-offset: 2px; border-radius: 8px; }


/* the Android TV app's own video player draws behind the page: everything but the player layer lets it show through */
html.nplay, html.nplay body { background: transparent !important; }
html.nplay #app { visibility: hidden; }
html.nplay .player { background: transparent; }
html.nplay .player video { background: transparent; }
