/* Local favorites and playback history; colors follow the existing theme. */
.new-old-personal-actions { align-items: center; display: flex; flex-wrap: wrap; gap: .5rem .8rem; margin: .65rem 0 1rem; }
.scroll-item > a { display: block; }
.scroll-item .media-card { height: auto; }
.new-old-save { align-items: center; background: var(--new-old-surface-soft); border: 1px solid var(--new-old-border); border-radius: .4rem; color: var(--bulma-text-strong); cursor: pointer; font: inherit; font-size: .875rem; min-height: 2.5rem; padding: .4rem .8rem; }
.new-old-save:hover, .new-old-save:focus-visible { border-color: var(--new-old-accent); }
.new-old-save[aria-pressed="true"] { border-color: var(--new-old-accent); color: var(--bulma-text-strong); }
.new-old-save:disabled { cursor: not-allowed; opacity: .6; }
.new-old-save--compact { font-size: .8rem; padding-inline: .65rem; }
.new-old-progress-label { color: var(--new-old-muted); font-size: .8rem; }
.new-old-progress-label.is-complete { font-weight: 600; }
.new-old-personal-shelf { margin-bottom: 2.5rem; }
.new-old-personal-heading { align-items: center; display: flex; flex-wrap: wrap; gap: .75rem 1rem; justify-content: space-between; margin-bottom: 1rem; }
.new-old-personal-heading .title { margin: 0; }
.new-old-personal-heading > a { font-size: .9rem; }
.new-old-personal-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.new-old-personal-card { background: var(--new-old-surface); border: 1px solid var(--new-old-border); border-radius: .6rem; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.new-old-personal-card__image { align-items: center; aspect-ratio: 16 / 9; background: var(--new-old-surface-soft); color: var(--new-old-muted); display: flex; justify-content: center; overflow: hidden; }
.new-old-personal-card__image img { height: 100%; object-fit: cover; width: 100%; }
.new-old-personal-card__body { align-items: flex-start; display: flex; flex: 1; flex-direction: column; gap: .55rem; padding: 1rem; }
.new-old-personal-card h3 { font-size: 1rem; font-weight: 650; line-height: 1.35; margin: 0; overflow-wrap: anywhere; }
.new-old-personal-card h3 a { color: var(--bulma-text-strong); }
.new-old-personal-card__type, .new-old-personal-card__series { color: var(--new-old-muted); font-size: .8rem; line-height: 1.4; margin: 0; }
.new-old-personal-card__type { font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }
.new-old-personal-progress { accent-color: var(--new-old-highlight); display: block; height: .45rem; margin-top: auto; width: 100%; }
.new-old-personal-resume { font-size: .85rem; font-weight: 600; }
.new-old-personal-remove { background: transparent; border: 0; color: var(--new-old-muted); cursor: pointer; font: inherit; font-size: .8rem; margin-top: auto; min-height: 2.5rem; padding: .35rem 0; text-decoration: underline; text-underline-offset: .2em; }
.new-old-personal-settings { background: var(--new-old-surface-soft); border: 1px solid var(--new-old-border); border-radius: .5rem; margin: 1.5rem 0; padding: 1rem; }
.new-old-personal-settings label { align-items: center; display: flex; gap: .5rem; }
.new-old-personal-settings input { accent-color: var(--new-old-highlight); height: 1.1rem; width: 1.1rem; }
.new-old-personal-settings .help { color: var(--new-old-muted); }
.new-old-personal-notice { background: var(--new-old-surface); border: 1px solid var(--new-old-border); border-radius: .5rem; bottom: 1rem; box-shadow: 0 .25rem 1rem rgb(0 0 0 / .3); color: var(--bulma-text-strong); left: 1rem; margin: 0; max-width: min(32rem, calc(100vw - 2rem)); padding: 1rem; position: fixed; z-index: 1100; }
.new-old-personal-section { margin-block: 2.5rem; scroll-margin-top: 1rem; }
.new-old-personal-player-actions { align-items: center; display: flex; flex-wrap: wrap; gap: .6rem; padding: .75rem 1rem; }
.new-old-playlist__heading .new-old-personal-player-actions { padding: .75rem 0 0; }
.new-old-personal-player-actions .new-old-save { background: #202630; border-color: #586375; color: #f5f5f5; }
.new-old-personal-player-actions .button { min-height: 2.5rem; }
.new-old-resume { display: flex; flex-wrap: wrap; gap: .5rem; }
.new-old-playlist-progress { color: #c4cfff; display: block; font-size: .75rem; font-weight: 400; line-height: 1.4; margin-top: .25rem; }
/* Cinema is a reversible layout change. The existing video is never moved or recreated. */
body.new-old-cinema::before { background: rgb(0 0 0 / .68); content: ''; inset: 0; pointer-events: none; position: fixed; z-index: 1000; }
.new-old-cinema .new-old-cinema-main { flex: none; width: 100%; }
.new-old-cinema .new-old-cinema-sidebar { display: none; }
.new-old-cinema .new-old-cinema-player { position: relative; scroll-margin-top: 1rem; z-index: 1001; }
.new-old-cinema-player .new-old-player__video { max-height: calc(100vh - 10rem); max-height: calc(100svh - 10rem); object-fit: contain; }
.new-old-personal-page .new-old-personal-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
@media (max-width: 480px) {
 .new-old-personal-grid { grid-template-columns: minmax(0, 1fr); }
 .new-old-personal-card { display: grid; grid-template-columns: 6rem minmax(0, 1fr); }
 .new-old-personal-card__image { aspect-ratio: auto; min-height: 7.5rem; }
 .new-old-personal-card__body { padding: .8rem; }
 .new-old-personal-player-actions { padding: .6rem; }
 .new-old-cinema-player .new-old-player__video { max-height: calc(100svh - 8rem); }
}

/* A 32px face in a 44px target stays compact without making touch harder. */
.new-old-save.new-old-save--pin {
  align-self: center; background: transparent; border: 0; border-radius: .6rem;
  color: var(--bulma-text-strong); display: inline-grid; flex: 0 0 auto;
  height: max(44px, 2.75rem); min-height: 44px; min-width: 44px;
  padding: 0; place-items: center; width: max(44px, 2.75rem);
}
.new-old-save__face {
  align-items: center; background: var(--new-old-surface-soft); border: 1px solid var(--new-old-border);
  border-radius: .55rem; display: inline-flex; height: 2rem; justify-content: center; pointer-events: none; width: 2rem;
}
.new-old-save__face svg { display: block; }
.new-old-save__check, .new-old-save--pin[aria-pressed="true"] .new-old-save__plus { display: none; }
.new-old-save--pin[aria-pressed="true"] .new-old-save__check { display: inline; }
.new-old-save--pin:is(:hover, :focus-visible):not(:disabled) .new-old-save__face {
  background: var(--new-old-highlight-wash); border-color: var(--new-old-highlight); color: var(--new-old-highlight);
}
.new-old-save--pin[aria-pressed="true"] .new-old-save__face {
  background: var(--new-old-highlight-wash); border-color: var(--new-old-highlight); color: var(--new-old-highlight);
}
.new-old-save--pin:focus-visible { outline: 2px solid var(--new-old-focus); outline-offset: -2px; }
.new-old-shelf-card > .new-old-save--pin { inset-block-start: .2rem; inset-inline-end: .2rem; position: absolute; z-index: 1; }
.new-old-shelf-card .new-old-save__face { background: #162127; border-color: #77868a; color: white; }
.new-old-shelf-card .new-old-save--pin[aria-pressed="true"] .new-old-save__face { background: #15483f; border-color: #8bebd9; color: #a6f8e9; }
.new-old-shelf-card .new-old-save--pin:focus-visible { outline-color: white; }
.new-old-shelf-card__caption .new-old-progress-label { color: #a4f3e1; display: block; line-height: 1.4; margin-top: .15rem; }
.new-old-progress-label.is-complete { color: var(--new-old-highlight); }
.new-old-personal-card__footer { align-items: center; display: flex; flex-wrap: wrap; gap: 0 .8rem; justify-content: space-between; margin-top: auto; width: 100%; }
.new-old-personal-card__footer > :is(a, button) { align-items: center; display: inline-flex; margin: 0; min-height: 44px; }
@media (forced-colors: active) {
  .new-old-save__face { border-color: ButtonText; }
  .new-old-save--pin[aria-pressed="true"] .new-old-save__face { border: 2px solid Highlight; }
}
