/* Final Stage 2 History item layout. Presentation only; History data/actions stay unchanged. */

body.cinema-v2.cinema-history-page .history-core-column-head,
body.cinema-v2.cinema-history-page .history-core-row {
  display: grid !important;
  grid-template-columns: minmax(240px,1.55fr) 130px minmax(145px,.82fr) 118px 86px 76px !important;
  gap: 14px !important;
  align-items: center !important;
}

body.cinema-v2.cinema-history-page .history-core-column-head {
  min-height: 38px !important;
  padding: 0 16px !important;
  color: #666c7d !important;
  font-size: .56rem !important;
  font-weight: 780 !important;
  letter-spacing: .065em !important;
}

body.cinema-v2.cinema-history-page .history-core-table {
  overflow: hidden !important;
}

body.cinema-v2.cinema-history-page .history-core-row {
  min-height: 70px !important;
  padding: 11px 16px !important;
  background: rgba(9,13,22,.34) !important;
  border-bottom: 1px solid rgba(255,255,255,.06) !important;
}

body.cinema-v2.cinema-history-page .history-core-row:nth-child(even) {
  background: rgba(13,17,28,.5) !important;
}

body.cinema-v2.cinema-history-page .history-core-row:hover {
  background: rgba(119,66,185,.075) !important;
}

body.cinema-v2.cinema-history-page .history-core-title {
  min-width: 0;
  display: grid !important;
  gap: 4px !important;
}

body.cinema-v2.cinema-history-page .history-core-title strong {
  color: #f3eff7 !important;
  font-size: .83rem !important;
  font-weight: 820 !important;
  line-height: 1.25 !important;
}

body.cinema-v2.cinema-history-page .history-core-title small {
  color: #707688 !important;
  font-size: .62rem !important;
}

body.cinema-v2.cinema-history-page .history-core-row > div:nth-child(2) {
  min-width: 0;
  display: flex;
  align-items: center;
}

body.cinema-v2.cinema-history-page .history-core-source {
  width: fit-content;
  max-width: 100%;
  min-height: 27px !important;
  padding: 0 9px !important;
  display: inline-flex !important;
  align-items: center !important;
  overflow: hidden;
  border: 1px solid rgba(155,92,255,.24) !important;
  border-radius: 999px !important;
  background: rgba(112,58,180,.11) !important;
  color: #bda1e7 !important;
  font-size: .61rem !important;
  font-weight: 790 !important;
  line-height: 1 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.cinema-v2.cinema-history-page .history-core-source.is-plex {
  border-color: rgba(93,229,140,.2) !important;
  background: rgba(38,128,75,.075) !important;
  color: #79dca1 !important;
}

body.cinema-v2.cinema-history-page .history-core-reaction {
  min-width: 0;
  display: block !important;
}

body.cinema-v2.cinema-history-page .history-core-reaction select {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 34px !important;
  padding: 0 30px 0 10px !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 8px !important;
  background-color: #0a0e17 !important;
  color: #c9c5d0 !important;
  font-size: .65rem !important;
}

body.cinema-v2.cinema-history-page .history-core-reaction select:hover,
body.cinema-v2.cinema-history-page .history-core-reaction select:focus {
  border-color: rgba(155,92,255,.35) !important;
}

body.cinema-v2.cinema-history-page .history-core-row time {
  color: #9398a8 !important;
  font-size: .64rem !important;
  white-space: nowrap;
}

body.cinema-v2.cinema-history-page .history-core-watch-count {
  color: #747a8c !important;
  font-size: .63rem !important;
  white-space: nowrap;
}

body.cinema-v2.cinema-history-page .history-core-open {
  width: 100%;
  min-width: 0;
  min-height: 32px !important;
  padding: 0 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(155,92,255,.22) !important;
  border-radius: 8px !important;
  background: rgba(112,58,180,.12) !important;
  color: #ccb2f2 !important;
  font-size: .62rem !important;
  font-weight: 810 !important;
  cursor: pointer;
}

body.cinema-v2.cinema-history-page .history-core-open:hover {
  border-color: rgba(170,103,255,.42) !important;
  background: rgba(125,67,198,.22) !important;
  color: #f3eaff !important;
}

@media (max-width: 1180px) {
  body.cinema-v2.cinema-history-page .history-core-column-head,
  body.cinema-v2.cinema-history-page .history-core-row {
    grid-template-columns: minmax(190px,1.25fr) 116px minmax(130px,.85fr) 96px 74px !important;
    gap: 10px !important;
  }

  body.cinema-v2.cinema-history-page .history-core-column-head > :nth-child(5),
  body.cinema-v2.cinema-history-page .history-core-row > :nth-child(5) {
    display: none !important;
  }
}

@media (max-width: 760px) {
  body.cinema-v2.cinema-history-page .history-core-column-head {
    display: none !important;
  }

  body.cinema-v2.cinema-history-page .history-core-row {
    grid-template-columns: minmax(0,1fr) auto !important;
    gap: 9px 12px !important;
    padding: 14px !important;
  }

  body.cinema-v2.cinema-history-page .history-core-title {
    grid-column: 1;
  }

  body.cinema-v2.cinema-history-page .history-core-row > div:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  body.cinema-v2.cinema-history-page .history-core-reaction {
    grid-column: 1 / -1;
  }

  body.cinema-v2.cinema-history-page .history-core-row time,
  body.cinema-v2.cinema-history-page .history-core-watch-count {
    grid-column: auto;
  }

  body.cinema-v2.cinema-history-page .history-core-open {
    grid-column: 1 / -1;
  }
}
