.watch-film {
  display: grid;
  justify-items: center;
  position: relative;
  min-width: 0;
}
.watch-film .watch-finish[hidden] { display: none; }
.watch-film .watch-finish {
  position: absolute;
  z-index: 1;
  inset: 0;
  box-sizing: border-box;
  width: min(100%, 265px);
  margin: auto;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 13px;
  color: #fff;
  text-align: center;
  background: radial-gradient(ellipse at 45% 0, #28514b, #101f25 76%);
  border-radius: 14px;
  box-shadow: 0 12px 32px #17232333;
}
.watch-finish img { width: 38px; height: 38px; border-radius: 10px; }
.watch-finish strong { line-height: 1.15; }
.watch-finish .watch-finish-price { color: #e5ede8; font-size: .8rem; line-height: 1.2; }
.watch-finish a, .watch-finish button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: 8px;
  font: 700 .88rem/1.16 system-ui, sans-serif;
}
.watch-finish a { background: #f5e9bf; color: #172825; text-decoration: none; }
.watch-finish button { border: 1px solid #91a7a1; background: transparent; color: #fff; cursor: pointer; }
.watch-finish a:focus-visible, .watch-finish button:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}
.watch-film:has(.watch-finish:not([hidden])) video { visibility: hidden; }
.watch-finish-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 650px), (max-height: 560px) {
  .watch-film .watch-finish {
    inset: auto;
    align-self: center;
    position: absolute;
    gap: 4px 10px;
    padding: 8px 11px;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "icon title" "icon price" "store replay";
    justify-items: stretch;
    text-align: left;
  }
  .watch-finish img { grid-area: icon; align-self: center; }
  .watch-finish strong { grid-area: title; }
  .watch-finish .watch-finish-price { grid-area: price; }
  .watch-finish a { grid-area: store; margin-top: 4px; white-space: nowrap; }
  .watch-finish button { grid-area: replay; margin-top: 4px; }
}
