@charset "utf-8";
/* CSS Document */
* {
  box-sizing: border-box
}
/*body {
  margin: 0;
  background: #111;
  font-family: sans-serif
}*/
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
/*  gap: 24px;*/
/*  padding: 40px*/
}
.movie-card {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer
}
.movie-card img {
  width: 100%;
  display: block;
  border-radius: 18px;
  transition: .35s
}
.movie-card:hover img {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .3)
}
.movie-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 20, .92);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: .4s
}
.movie-modal.active {
  opacity: 1;
  visibility: visible
}
.modal-overlay {
  position: absolute;
  inset: 0
}
.modal-window {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(20px) scale(.96);
  transition: .4s cubic-bezier(.22, 1, .36, 1)
}
.movie-modal.active .modal-window {
  opacity: 1;
  transform: none
}
.movie-frame {
  aspect-ratio: 9/16;
      width:auto;
   max-width:95vw;
  height:calc(95vh - 70px);

  background: #000;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0, 0, 0, .55)
}
iframe {
  width: 100%;
  height: 100%;
  border: 0
}
.modal-header {
  position: absolute;
  top: -52px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center
}
.modal-label {
  color: #fff;
  background: rgba(255, 255, 255, .08);
  padding: .45rem .8rem;
  border-radius: 999px;
  backdrop-filter: blur(10px)
}
.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .12);
  position: relative;
  cursor: pointer
}
.modal-close span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2px;
  background: #fff
}
.modal-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg)
}
.modal-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg)
}
.player-loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center
}
.spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, .25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite
}
@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}