html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  position: fixed;
  left: 0;
  top: 0;
  overflow: hidden;
  background: #07090f;
  color: #f5f7fb;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  -webkit-user-select: none;
  user-select: none;
}

button {
  font-family: Arial, Helvetica, sans-serif;
}

.app-root,
.screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.screen {
  position: relative;
  background: #07090f;
}

.home-screen {
  position: relative;
}

.sidebar {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 15;
  width: 90px;
  height: 100%;
  border-right: 0;
  padding: 34px 0 26px 0;
  box-sizing: border-box;
  overflow: hidden;
  -webkit-transition: width 180ms ease-out, box-shadow 180ms ease-out;
  transition: width 180ms ease-out, box-shadow 180ms ease-out;
  will-change: width;
}

.sidebar-expanded {
  width: 338px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.96) 70%, rgba(0, 0, 0, 0.58) 88%, rgba(0, 0, 0, 0.0) 100%);
  box-shadow: 24px 0 70px rgba(0, 0, 0, 0.34);
}

.sidebar-collapsed {
  width: 90px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.88) 72%, rgba(0, 0, 0, 0.0) 100%);
}

.brand {
  position: relative;
  width: 278px;
  height: 76px;
  margin: 0 0 54px 0;
  overflow: hidden;
}

.brand-logo {
  display: block;
  position: absolute;
  border: 0;
  -webkit-transition: opacity 150ms ease-out, -webkit-transform 180ms ease-out;
  transition: opacity 150ms ease-out, transform 180ms ease-out;
}

.brand-logo-collapsed {
  left: 18px;
  top: 11px;
  width: 54px;
  height: 54px;
  opacity: 1;
  -webkit-transform: scale(1);
  transform: scale(1);
  -webkit-transform-origin: left center;
  transform-origin: left center;
}

.brand-logo-expanded {
  left: 18px;
  top: -22px;
  width: 214px;
  height: 121px;
  opacity: 0;
  -webkit-transform: scale(0.88);
  transform: scale(0.88);
  -webkit-transform-origin: left center;
  transform-origin: left center;
  pointer-events: none;
}

.sidebar-expanded .brand-logo-collapsed {
  opacity: 0;
  -webkit-transform: scale(0.86);
  transform: scale(0.86);
}

.sidebar-expanded .brand-logo-expanded {
  opacity: 1;
  -webkit-transform: scale(1);
  transform: scale(1);
}

.sidebar-menu {
  position: absolute;
  left: 0;
  top: 164px;
  width: 338px;
}

.sidebar-bottom {
  position: absolute;
  left: 0;
  bottom: 32px;
  width: 338px;
}

.nav-item {
  display: block;
  position: relative;
  width: 312px;
  height: 62px;
  margin: 0 16px 8px 0;
  border: 0;
  background: transparent;
  color: #aeb6c4;
  font-size: 23px;
  text-align: left;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.nav-active-indicator {
  display: inline-block;
  width: 4px;
  height: 28px;
  margin: 17px 18px 0 0;
  background: transparent;
  border-radius: 0 4px 4px 0;
  vertical-align: top;
}

.nav-item.is-active {
  color: #ffffff;
}

.sidebar-expanded .nav-item.is-active {
  background: linear-gradient(90deg, rgba(229, 9, 20, 0.35) 0%, rgba(229, 9, 20, 0.1) 50%, rgba(229, 9, 20, 0) 100%);
}

.nav-item.is-active .nav-active-indicator {
  background: #e50914;
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.44);
}

.nav-item.is-active .nav-icon {
  color: #ffffff;
}

.nav-item.is-active .nav-label {
  color: #ffffff;
  font-weight: bold;
}

.nav-icon {
  display: inline-block;
  position: relative;
  width: 46px;
  height: 62px;
  margin-right: 24px;
  line-height: 62px;
  text-align: center;
  font-weight: bold;
  color: #aeb6c4;
  vertical-align: top;
}

.nav-label {
  display: inline-block;
  width: 190px;
  height: 62px;
  line-height: 62px;
  opacity: 0;
  -webkit-transform: translateX(-12px);
  transform: translateX(-12px);
  vertical-align: top;
  color: #aeb6c4;
  overflow: hidden;
  white-space: nowrap;
  -webkit-transition: opacity 140ms ease-out, -webkit-transform 160ms ease-out, color 120ms linear;
  transition: opacity 140ms ease-out, transform 160ms ease-out, color 120ms linear;
}

.sidebar-expanded .nav-label {
  opacity: 1;
  -webkit-transform: translateX(0);
  transform: translateX(0);
}

.nav-icon svg {
  display: block;
  width: 30px;
  height: 30px;
  margin: 16px auto 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-content {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.home-scroll {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background: #07090f;
}

.hero {
  position: relative;
  height: 640px;
  width: 100%;
  padding: 40px 84px 30px 136px;
  box-sizing: border-box;
  overflow: hidden;
  background: #05070c;
}

.detail-poster:after,
.poster-art:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.24);
}

.hero-featured {
  border-bottom: 1px solid #111827;
}

.hero-backdrop {
  position: absolute;
  left: 20%;
  right: 0;
  top: 0;
  bottom: 0;
  background-repeat: no-repeat;
  background-position: center right;
  background-size: auto 100%;
  -webkit-mask-image: -webkit-linear-gradient(left, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 26%, rgba(0,0,0,1) 55%);
  -webkit-transition: opacity 200ms ease-out;
  transition: opacity 200ms ease-out;
}

.hero-vignette {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: -webkit-linear-gradient(left, #05070c 0%, #05070c 20%, rgba(5, 7, 12, 0.5) 40%, rgba(5, 7, 12, 0) 60%), -webkit-linear-gradient(bottom, #05070c 0%, rgba(5, 7, 12, 0.6) 15%, rgba(5, 7, 12, 0) 40%);
  background: linear-gradient(90deg, #05070c 0%, #05070c 20%, rgba(5, 7, 12, 0.5) 40%, rgba(5, 7, 12, 0) 60%), linear-gradient(0deg, #05070c 0%, rgba(5, 7, 12, 0.6) 15%, rgba(5, 7, 12, 0) 40%);
}

.hero-text {
  position: relative;
  z-index: 2;
  width: 640px;
  height: 570px;
  padding-top: 10px;
  box-sizing: border-box;
  -webkit-transition: margin-left 140ms linear;
  transition: margin-left 140ms linear;
}

.eyebrow {
  color: #e50914;
  font-size: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 2px;
}

.hero-title,
.detail-title,
.search-title {
  margin: 0 0 18px 0;
  font-size: 58px;
  line-height: 1.05;
  font-weight: bold;
}

.hero .hero-title {
  margin-bottom: 12px;
  height: 96px;
  min-height: 96px;
  max-height: 96px;
  font-size: 40px;
  line-height: 1.2;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.55);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta {
  height: 28px;
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  color: #d7dde8;
  font-size: 20px;
  line-height: 28px;
}

.hero-meta-item {
  display: inline-block;
  margin-right: 18px;
  color: #d7dde8;
}

.hero-meta-item.match {
  color: #52d273;
  font-weight: bold;
}

.hero-desc,
.detail-desc,
.modal-copy {
  margin: 0;
  color: #d4dce8;
  line-height: 1.35;
}

.hero .hero-desc {
  width: 620px;
  height: 78px;
  overflow: hidden;
  color: #f2f4f8;
  font-size: 20px;
  line-height: 1.3;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.65);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.hero-actions,
.detail-actions {
  margin-top: 16px;
  height: 70px;
}

.hero-pick-rail {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 170px;
  white-space: nowrap;
  overflow: visible;
}

.hero-pick-card {
  position: relative;
  display: inline-block;
  vertical-align: top;
  width: 104px;
  height: 154px;
  margin-right: 14px;
  border: 3px solid rgba(255, 255, 255, 0.18);
  background: #142033;
  box-sizing: border-box;
  overflow: hidden;
  color: #ffffff;
  -webkit-transition: -webkit-transform 120ms ease-out, border-color 120ms linear, box-shadow 120ms ease-out;
  transition: transform 120ms ease-out, border-color 120ms linear, box-shadow 120ms ease-out;
}

.hero-pick-art {
  position: relative;
  width: 98px;
  height: 148px;
}

.hero-pick-art:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.18);
}

.hero-pick-card.is-active {
  border-color: rgba(255, 255, 255, 0.8);
}

.tv-button,
.control-button,
.keyboard-key {
  height: 58px;
  margin-right: 18px;
  padding: 0 28px;
  border: 3px solid #516278;
  background: #182436;
  color: #f6f8fb;
  font-size: 24px;
}

.tv-button.primary,
.control-button.primary {
  background: #d8232a;
  border-color: #ff7378;
}

.rails {
  position: relative;
  z-index: 3;
  width: 100%;
  overflow: visible;
  padding: 24px 0 90px 136px;
  box-sizing: border-box;
  background: #07090f;
}

.rail {
  margin-bottom: 26px;
}

.rail-title {
  margin: 0 0 14px 0;
  font-size: 28px;
  font-weight: bold;
}

.rail-scroller {
  position: relative;
  width: 100%;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  height: 296px;
  padding: 20px 400px 40px 16px;
  box-sizing: border-box;
}

.home-scroll::-webkit-scrollbar,
.rail-scroller::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.poster-card {
  position: relative;
  display: inline-block;
  vertical-align: top;
  width: 300px;
  height: 236px;
  margin-right: 24px;
  background: #142033;
  border: 4px solid transparent;
  box-sizing: border-box;
  color: #ffffff;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0) scale(1);
  transform: translateZ(0) scale(1);
  -webkit-transition: -webkit-transform 150ms ease-out, border-color 150ms linear;
  transition: transform 150ms ease-out, border-color 150ms linear;
  will-change: transform;
}



.poster-art {
  position: relative;
  width: 292px;
  height: 164px;
}

.poster-title {
  height: 28px;
  padding: 10px 12px 0 12px;
  overflow: hidden;
  font-size: 21px;
  line-height: 28px;
  white-space: nowrap;
}

.poster-title-text {
  display: inline-block;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}

.is-scrolling .poster-title-text {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  -webkit-animation: slide-text 5s linear infinite alternate;
  animation: slide-text 5s linear infinite alternate;
}

@-webkit-keyframes slide-text {
  0%, 15% { -webkit-transform: translateX(0); }
  85%, 100% { -webkit-transform: translateX(calc(276px - 100%)); }
}

@keyframes slide-text {
  0%, 15% { transform: translateX(0); }
  85%, 100% { transform: translateX(calc(276px - 100%)); }
}

.poster-meta {
  padding: 4px 12px;
  color: #b8c4d6;
  font-size: 18px;
}

.poster-red {
  background: #8e2430;
}

.poster-green {
  background: #146b55;
}

.poster-gold {
  background: #8a6a18;
}

.poster-blue {
  background: #1d4f90;
}

.poster-violet {
  background: #55398b;
}

.poster-teal {
  background: #137285;
}

.is-focused {
  border-color: #ffffff !important;
  outline: none;
  -webkit-transform: translateZ(0) scale(1.12);
  transform: translateZ(0) scale(1.12);
  z-index: 10;
}

.nav-item.is-focused,
.sidebar-expanded .nav-item.is-focused.is-active {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0) 100%);
  color: #ffffff;
  border-color: transparent !important;
  outline: none;
  transform: none;
  box-shadow: none;
}

.nav-item.is-focused .nav-active-indicator {
  background: #ff4752;
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.75);
}

.nav-item.is-focused .nav-icon {
  color: #ffffff;
}

.nav-item.is-focused .nav-label {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.12);
  font-weight: bold;
}

.detail-screen {
  display: flex;
  width: 100%;
  height: 100%;
  padding: 72px;
  box-sizing: border-box;
}

.detail-poster {
  position: relative;
  width: 430px;
  height: 640px;
  margin-right: 64px;
  border: 4px solid #263b52;
}

.detail-content {
  width: 1220px;
  padding-top: 30px;
}

.detail-meta {
  margin-bottom: 24px;
  color: #91e6c8;
  font-size: 24px;
}

.search-screen {
  display: flex;
  width: 100%;
  height: 100%;
  padding: 56px 64px;
  box-sizing: border-box;
}

.search-panel {
  width: 760px;
  margin-right: 48px;
}

.search-query {
  height: 58px;
  line-height: 58px;
  margin-bottom: 24px;
  padding: 0 18px;
  background: #111b2b;
  color: #ffffff;
  border: 2px solid #2a405b;
}

.keyboard-row {
  height: 66px;
  white-space: nowrap;
}

.keyboard-key {
  width: 66px;
  padding: 0;
  margin-right: 8px;
  margin-bottom: 8px;
}

.keyboard-key:nth-child(7),
.keyboard-key:nth-child(8),
.keyboard-key:nth-child(9) {
  width: 112px;
}

.search-results {
  width: 990px;
  height: 960px;
  overflow-y: auto;
}

.search-results .poster-card {
  margin-bottom: 18px;
}

.player-screen {
  background: #000000;
  width: 100%;
  height: 100%;
}

.player-video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-surface {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: transparent;
}

.player-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 245px;
  padding: 32px 70px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.78);
}

.player-title {
  font-size: 32px;
  margin-bottom: 20px;
}

.player-error {
  height: 30px;
  line-height: 30px;
  color: #ffd34d;
  font-size: 20px;
  overflow: hidden;
}

.progress {
  height: 10px;
  width: 1780px;
  background: #344154;
  margin-bottom: 26px;
}

.progress-fill {
  width: 0;
  height: 10px;
  background: #d8232a;
}

.modal-root {
  position: absolute;
  left: 0;
  top: 0;
}

.modal-overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.72);
  z-index: 20;
}

.modal-panel {
  width: 650px;
  min-height: 260px;
  margin: 330px auto 0 auto;
  padding: 36px;
  background: #111b2b;
  border: 3px solid #3d526e;
  box-sizing: border-box;
}

.modal-title {
  margin: 0 0 18px 0;
  font-size: 34px;
}

.modal-close {
  margin-top: 30px;
}

.loading-overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #07090f;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 6px solid rgba(255, 255, 255, 0.1);
  border-top-color: #e50914;
  border-radius: 50%;
  -webkit-animation: spinner-rotate 1s linear infinite;
  animation: spinner-rotate 1s linear infinite;
}

@-webkit-keyframes spinner-rotate {
  to { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

@keyframes spinner-rotate {
  to { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}
