.nx-cinema {
  margin: 24px 0;
  border: 1px solid #38232c;
  border-radius: 18px;
  overflow: hidden;
  background: #050507;
  color: #f7f3f5;
  box-shadow: 0 20px 65px rgba(0, 0, 0, .333);
}
.nx-cinema-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 17px 22px;
  background: #100c11;
  border-bottom: 1px solid #30202a;
}
.nx-cinema-bar strong {
  font: 800 19px Arial, sans-serif;
  letter-spacing: 4px;
  color: #ff344d;
}
.nx-cinema-bar span {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nx-cinema .video-frame {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #000;
}
.nx-cinema [hidden] {
  display: none !important;
}
.nx-control {
  border: 1px solid #54313e;
  background: #21151e;
  color: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  min-height: 44px;
  font: 500 14px Arial, sans-serif;
  cursor: pointer;
}
.nx-control:hover {
  background: #422032;
}
.nx-control:focus-visible {
  outline: 3px solid #ff7387;
  outline-offset: 2px;
}
.nx-cinema-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 18px;
  background: #110c12;
}
.nx-cinema-actions .nx-control {
  background: transparent;
  border-color: #382731;
}
.nx-native-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px;
  background: #100c11;
}
.nx-native-controls input {
  flex: 1 1 160px;
  min-width: 80px;
  max-width: 100%;
  height: 44px;
  accent-color: #ff3654;
}
.nx-time {
  font: 14px Arial, sans-serif;
  color: #dccbd4;
  font-variant-numeric: tabular-nums;
}
.nx-play-status {
  margin: 0;
  padding: 0 18px 12px;
  font-size: 14px;
  color: #ffb1bf;
}
.nx-play-status:empty {
  display: none;
}
.nx-cinema.nx-wide {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10000;
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
}
.nx-cinema.nx-wide .video-frame {
  flex: 1;
  min-height: 200px;
  max-height: calc(100dvh - 170px);
}
.nx-cinema.nx-wide .video-frame video,
.nx-cinema.nx-wide .video-frame iframe {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.nx-cinema:fullscreen {
  width: 100%;
  height: 100%;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.nx-cinema:fullscreen .video-frame {
  flex: 1;
  min-height: 0;
}
.nx-cinema:fullscreen video,
.nx-cinema:fullscreen iframe {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.nx-cinema #screen {
  width: 100%;
  flex-shrink: 0;
}
.nx-cinema.nx-wide #screen {
  flex: 1;
  min-height: 200px;
}
.nx-source-details {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid #34232d;
  border-radius: 10px;
}
.nx-source-details summary {
  cursor: pointer;
  min-height: 30px;
  font-size: 15px;
}
.nx-source-details .button {
  margin-top: 10px;
}
@media (max-width: 600px) {
  .nx-cinema {
    margin: 16px 0;
    border-radius: 12px;
  }
  .nx-cinema-bar {
    padding: 13px;
    gap: 12px;
  }
  .nx-cinema-bar strong {
    font-size: 16px;
    letter-spacing: 2px;
  }
  .nx-native-controls {
    padding: 10px;
  }
  .nx-native-controls input {
    order: 8;
    flex-basis: 100%;
  }
  .nx-cinema-actions {
    padding: 10px;
  }
  .nx-control {
    padding: 10px;
    font-size: 14px;
  }
  .nx-cinema.nx-wide .video-frame {
    max-height: calc(100dvh - 230px);
  }
}
.nx-cinema.nx-wide .video-frame,
.nx-cinema:fullscreen .video-frame {
  height: auto;
  padding-bottom: 0;
  flex: 1 1 300px;
}
.nx-cinema.nx-wide #screen,
.nx-cinema:fullscreen #screen {
  aspect-ratio: auto;
  flex: 1 1 300px;
}
.nx-ident {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 220px;
  aspect-ratio: 16/9;
  background: #030306;
  overflow: hidden;
  outline-offset: -5px;
}
.nx-ident img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  border-radius: 22px;
  animation: nx-mark 1.2s ease both;
}
.nx-ident strong {
  color: #f53351;
  font: 900 clamp(28px, 6vw, 72px)/1.1 Arial, sans-serif;
  letter-spacing: .16em;
  margin: 18px 0 0 .16em;
  animation: nx-word 1.2s ease both;
}
.nx-cinema-bar {
  display: none;
}
.nx-cinema.nx-wide .nx-cinema-bar,
.nx-cinema:fullscreen .nx-cinema-bar {
  display: flex;
}
.nx-cinema.nx-wide .nx-ident,
.nx-cinema:fullscreen .nx-ident {
  flex: 1;
  aspect-ratio: auto;
}
@keyframes nx-mark {
  0% {
    opacity: 0;
    transform: scale(.82);
  }
  30% {
    opacity: 1;
  }
  75% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.04);
  }
}
@keyframes nx-word {
  0%, 12% {
    opacity: 0;
    transform: translateY(10px);
  }
  40%, 75% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nx-ident img,
  .nx-ident strong {
    animation: none;
  }
}
@media (max-width: 600px) {
  .nx-ident img {
    width: 76px;
    height: 76px;
    border-radius: 15px;
  }
  .nx-ident strong {
    margin-top: 12px;
  }
}
