/* WatchVIM cinematic poster placement refinement.
   Scoped to playback routes so title and series detail pages remain unchanged. */

body.wv-cinematic-player-route .wv-cinematic-details-card {
  grid-template-columns: 184px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 24px;
}

body.wv-cinematic-player-route .wv-cinematic-poster {
  width: 168px;
  aspect-ratio: 2 / 3;
  justify-self: center;
  align-self: center;
  position: relative;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, .28);
  background: #050505;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .42);
}

body.wv-cinematic-player-route .wv-cinematic-poster img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center top;
}

body.wv-cinematic-player-route .wv-cinematic-details-copy {
  align-self: center;
  padding-right: 8px;
}

@media (min-width: 768px) and (max-width: 1100px) {
  body.wv-cinematic-player-route .wv-cinematic-details-card {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 22px;
    padding: 20px;
  }

  body.wv-cinematic-player-route .wv-cinematic-poster {
    width: 142px;
  }
}

@media (max-width: 767px) {
  body.wv-cinematic-player-route .wv-cinematic-details-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 14px;
  }

  body.wv-cinematic-player-route .wv-cinematic-poster {
    width: 96px;
    justify-self: start;
    align-self: start;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .34);
  }

  body.wv-cinematic-player-route .wv-cinematic-details-copy {
    align-self: start;
    padding-right: 0;
  }
}

/* Keep the standalone design preview aligned with the integrated Watch Page. */
@media (min-width: 768px) {
  body:not(.wv-cinematic-player-route) .details-card {
    grid-template-columns: 184px minmax(0, 1fr) !important;
    gap: 28px !important;
    align-items: center;
    padding: 24px !important;
  }

  body:not(.wv-cinematic-player-route) .details-poster {
    width: 168px;
    justify-self: center;
    align-self: center;
    border-color: rgba(212, 175, 55, .28) !important;
    box-shadow: 0 16px 38px rgba(0, 0, 0, .42);
  }
}

@media (max-width: 767px) {
  body:not(.wv-cinematic-player-route) .details-card {
    grid-template-columns: 96px minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: start;
  }

  body:not(.wv-cinematic-player-route) .details-poster {
    width: 96px !important;
    justify-self: start;
  }
}
