.favorites-page { background: var(--canvas); }
.favorites-shell, .favorites-footer { width: min(calc(100% - 96px), 1180px); margin-inline: auto; }
.favorites-shell { padding-top: 132px; }
.favorites-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 430px); align-items: end; gap: 60px; padding-bottom: 54px; }
.favorites-kicker { margin: 0 0 19px; color: var(--muted); font: 500 11px/1.4 "IBM Plex Mono", monospace; letter-spacing: .06em; text-transform: uppercase; }
.favorites-intro h1 { margin: 0; font: 500 clamp(50px, 5vw, 66px)/1 "Barlow Condensed", sans-serif; letter-spacing: -.025em; }
.favorites-intro > p { max-width: 42ch; margin: 0 0 3px; color: var(--body); font-size: 19px; line-height: 1.5; }
.favorites-index { position: sticky; top: var(--header-height); z-index: 40; display: flex; gap: 30px; overflow-x: auto; padding: 0 0 1px; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: var(--canvas); scrollbar-width: none; }
.favorites-index::-webkit-scrollbar { display: none; }
.favorites-index a { flex: none; display: inline-flex; align-items: center; min-height: 58px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 15px; line-height: 1.2; transition: color .2s ease, border-color .2s ease; }
.favorites-index a:hover, .favorites-index a[aria-current="true"] { color: var(--text); }
.favorites-index a[aria-current="true"] { border-color: var(--text); }
.favorites-index a:focus-visible, .favorites-footer a:focus-visible { outline: 2px solid var(--focus); outline-offset: -3px; }
.favorites-section { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; min-height: 324px; padding: 24px 0; border-bottom: 1px solid var(--hairline); scroll-margin-top: 112px; }
.favorites-section__heading h2 { margin: 0; color: var(--text); font: 500 34px/1.08 "Barlow Condensed", sans-serif; letter-spacing: -.018em; }
.favorites-section__heading p { max-width: 20ch; margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.favorites-section__content { min-width: 0; }
.favorites-empty { display: flex; min-height: 250px; padding-top: 6px; flex-direction: column; align-items: flex-start; justify-content: flex-start; }
.favorites-empty p { margin: 0 0 6px; color: var(--text-secondary); font-size: 18px; line-height: 1.4; }
.favorites-empty span { color: var(--muted); font-size: 15px; line-height: 1.45; }
.favorites-entries[hidden], .favorites-empty[hidden] { display: none; }
.favorites-entries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 26px; row-gap: 34px; }
#shows .favorites-entries, #movies .favorites-entries, #games .favorites-entries, #books .favorites-entries { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 260px)); gap: 24px; }
.favorite-entry { display: grid; grid-template-columns: 94px minmax(0, 1fr); gap: 20px; min-width: 0; padding-bottom: 28px; border-bottom: 1px solid var(--hairline); }
.favorite-entry__media { display: flex; align-items: flex-end; width: 94px; aspect-ratio: 2 / 3; overflow: hidden; border: 1px solid var(--hairline); border-radius: 5px; background: var(--surface-solid); }
.favorite-entry__media img { width: 100%; height: 100%; object-fit: cover; }
.favorite-entry__media span { padding: 10px; color: var(--muted); font-size: 12px; line-height: 1.3; }
.favorite-entry__type { margin: 0 0 8px; color: var(--muted); font: 400 11px/1.4 "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .04em; }
.favorite-entry h3 { margin: 0; color: var(--text); font: 500 25px/1.1 "Barlow Condensed", sans-serif; letter-spacing: -.015em; }
.favorite-entry__details { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.favorite-entry__note { margin: 15px 0 0; color: var(--body); font-size: 16px; line-height: 1.5; }
.favorites-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 35px; padding-bottom: 48px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.favorites-footer p { margin: 0; }
.favorites-footer a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 880px) { .favorites-section { grid-template-columns: 150px minmax(0,1fr); gap: 24px; } .favorites-entries { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 660px) { .favorites-shell, .favorites-footer { width: calc(100% - 48px); } .favorites-shell { padding-top: 108px; } .favorites-intro { grid-template-columns: minmax(0,1fr); gap: 16px; padding-bottom: 38px; } .favorites-intro h1 { font-size: 52px; } .favorites-intro > p { font-size: 17px; } .favorites-index { gap: 24px; margin-inline: -24px; padding-inline: 24px; } .favorites-index a { min-height: 54px; font-size: 14px; } .favorites-section { grid-template-columns: minmax(0,1fr); gap: 14px; min-height: 0; padding: 20px 0; scroll-margin-top: 106px; } .favorites-section__heading h2 { font-size: 30px; } .favorites-section__heading p { max-width: none; margin-top: 8px; font-size: 15px; } .favorites-empty { min-height: 200px; padding-top: 0; } .favorites-footer { align-items: flex-start; flex-direction: column; gap: 12px; padding-top: 31px; padding-bottom: 38px; } }
@media (prefers-reduced-motion: reduce) { .favorites-index a { transition: none; } }

/* Compact movie and show tiles fit the same content height as the empty categories. */
.favorite-entry--show { position: relative; display: block; align-self: start; width: 260px; max-width: 100%; height: 250px; padding: 0; overflow: hidden; border: 1px solid var(--hairline); border-radius: 12px; background: var(--canvas-soft); }
.favorite-entry__open { display: grid; grid-template-rows: 184px minmax(0, 1fr); width: 100%; height: 100%; padding: 0; border: 0; color: var(--text); background: transparent; text-align: left; cursor: pointer; transition: background 160ms ease, transform 160ms var(--ease); }
.favorite-entry__artwork { display: block; overflow: hidden; background: #050507; }
.favorite-entry__artwork img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.favorite-entry--show .favorite-entry__content { display: grid; align-content: center; gap: 4px; padding: 7px 12px; }
.favorite-entry__title { font: 500 26px/1.1 "Barlow Condensed", sans-serif; letter-spacing: -.015em; }
.favorite-entry__metadata { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.favorite-entry__genre { color: var(--muted); font-size: 12px; line-height: 1.3; }
.favorite-entry__personal-rating { justify-self: start; color: var(--muted); font: 500 13px/1.2 "IBM Plex Mono", monospace; font-variant-numeric: tabular-nums; }
.favorite-stream { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; min-height: 72px; padding: 14px 18px; border: 1px solid #268b91; border-radius: 12px; color: #fff; background: linear-gradient(120deg, #054950, #087c83); font-size: 16px; font-weight: 500; line-height: 1.2; transition: filter 160ms ease; }
.favorite-stream img { flex: none; width: 64px; height: 38px; object-fit: contain; }
.favorite-entry__open:active { transform: scale(.985); }
.favorite-entry__open:focus-visible { outline: 2px solid var(--focus); outline-offset: -3px; border-radius: 11px; }
.favorite-stream:focus-visible, .favorite-rating:focus-visible, .favorite-dialog__close:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.favorite-dialog { width: min(calc(100% - 48px), 1000px); max-width: none; max-height: 88svh; overflow-y: auto; overscroll-behavior: contain; border-radius: 24px; box-shadow: var(--shadow); }
.favorite-dialog__shell { position: relative; padding: 54px 32px 32px; }
.favorite-dialog__close { position: absolute; top: 10px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0 0 3px; border: 1px solid var(--hairline); border-radius: 50%; color: var(--text); background: var(--canvas-soft); font: 300 28px/1 sans-serif; cursor: pointer; transition: transform 160ms var(--ease), background 160ms ease; }
.favorite-dialog__close:active { transform: scale(.95); }
.favorite-dialog__layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; align-items: start; }
.favorite-dialog__visual > img { display: block; width: 100%; height: auto; border: 1px solid var(--hairline); border-radius: 12px; }
.favorite-dialog__visual .favorite-stream { margin-top: 16px; }
.favorite-dialog__body { min-width: 0; }
.favorite-dialog__body h2 { margin: 0; font: 500 42px/1.05 "Barlow Condensed", sans-serif; letter-spacing: -.02em; }
.favorite-ratings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 24px 0; }
.favorite-rating { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; padding: 14px 10px; border: 1px solid var(--hairline); border-radius: 10px; background: var(--canvas-soft); }
.favorite-rating__value { display: flex; align-items: center; gap: 8px; min-height: 30px; }
.favorite-rating__imdb { flex: none; width: 42px; height: 25px; object-fit: contain; }
.favorite-rating__tomato { flex: none; width: 28px; height: 28px; }
.favorite-rating__star { color: #e8bb4b; font: 24px/1 sans-serif; }
.favorite-rating__label { color: var(--muted); font-size: 11px; line-height: 1.35; }
.favorite-rating strong { color: var(--text); font: 500 27px/1 "Barlow Condensed", sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
.favorite-rating small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.favorite-rating--personal { border-color: var(--hairline-strong); background: var(--surface-elevated); }
.favorite-dialog__body h3 { margin: 24px 0 9px; color: var(--text); font: 500 22px/1.1 "Barlow Condensed", sans-serif; }
.favorite-dialog__note, .favorite-dialog__description { margin: 0; color: var(--body); font-size: 16px; line-height: 1.55; }
@media (hover: hover) and (pointer: fine) { .favorite-entry__open:hover { background: var(--surface); } .favorite-stream:hover { filter: brightness(1.12); } .favorite-rating[href]:hover, .favorite-dialog__close:hover { background: var(--surface-elevated); } }
@media (max-width: 880px) { .favorite-dialog__layout { grid-template-columns: minmax(0, 1fr); gap: 26px; } .favorite-dialog { width: min(calc(100% - 40px), 620px); } .favorite-dialog__visual > img { max-height: 260px; object-fit: contain; background: #050507; } }
@media (max-width: 440px) { .favorite-stream { gap: 12px; font-size: 15px; } .favorite-stream img { width: 60px; height: 36px; } .favorite-dialog { width: calc(100% - 24px); max-height: 92svh; border-radius: 18px; } .favorite-dialog__shell { padding: 54px 18px 24px; } .favorite-dialog__body h2 { font-size: 36px; } .favorite-rating { padding: 11px 6px; } .favorite-rating__value { gap: 6px; } .favorite-rating__imdb { width: 34px; } .favorite-rating strong { font-size: 24px; } .favorite-ratings { gap: 6px; } }
@media (prefers-reduced-motion: reduce) { .favorite-entry__open, .favorite-dialog__close, .favorite-stream { transition: none; } .favorite-entry__open:active, .favorite-dialog__close:active { transform: none; } }

@media (max-width: 660px) {
  .favorite-entry--show { width: 220px; height: 200px; border-radius: 12px; }
  .favorite-entry__open { grid-template-rows: 140px minmax(0, 1fr); }
  .favorite-entry--show .favorite-entry__content { padding: 4px 12px; gap: 2px; }
  .favorite-entry__title { font-size: 24px; }
}

@media (max-width: 360px) { .favorite-ratings { grid-template-columns: minmax(0, 1fr); } .favorite-rating { flex-direction: row; align-items: center; gap: 12px; padding: 12px; } .favorite-rating small { margin-left: auto; } .favorite-rating__imdb { width: 42px; } }

.favorite-entry--movie .favorite-entry__artwork img { object-position: center top; }
.favorite-dialog__visual--movie > img { max-height: 360px; object-fit: contain; background: #050507; }
.favorite-stream--prime { border-color: #168ac1; background: linear-gradient(120deg, #122c43, #006a9e); }
.favorite-stream--prime img { width: 72px; height: 38px; }

.favorite-entry--game .favorite-entry__artwork { position: relative; }
.favorite-entry--game .favorite-entry__artwork > img:first-child { object-position: center; }
.favorite-entry--game .favorite-entry__artwork .favorite-entry__cover-logo { position: absolute; top: 10px; left: 50%; width: 160px; height: auto; transform: translateX(-50%); object-fit: contain; }
.favorite-ratings--game { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.favorite-rating--reviewer .favorite-rating__value { flex-wrap: wrap; }
.favorite-rating__reviewer-logo { width: 76px; height: 25px; object-fit: contain; }
.favorite-stream--playstation { border-color: #288ed3; background: linear-gradient(120deg, #003c8e, #0070cc); }
.favorite-stream--playstation img { width: 38px; height: 38px; }
.favorite-stream--steam { border-color: #416b88; background: linear-gradient(120deg, #171d25, #234c65); }
.favorite-stream--steam img { width: 76px; height: 38px; }
.favorite-entry--book { width: 196px; height: 272px; border: 0; border-radius: 0; overflow: visible; background: transparent; }
.favorite-entry--book .favorite-entry__open { grid-template-rows: 198px 50px; row-gap: 24px; overflow: visible; }
.favorite-entry--book .favorite-entry__content { padding-inline: 0; }
.favorite-book__perspective { display: flex; align-items: center; justify-content: center; perspective: 900px; }
.favorite-book__volume { --book-width: 154px; --book-depth: calc(var(--book-width) * .29); position: relative; display: block; width: var(--book-width); aspect-ratio: 44 / 60; transform-style: preserve-3d; transform: rotateY(-18deg); transition: transform 250ms var(--ease); }
.favorite-book__front { position: absolute; inset: 0; display: grid; grid-template-rows: 46% 54%; overflow: hidden; border-radius: 6px 3px 3px 6px; background: #171514; box-shadow: -5px 5px 14px rgba(0, 0, 0, .3), 0 1px 2px rgba(0, 0, 0, .25); transform: translateZ(1px); backface-visibility: hidden; }
.favorite-book__illustration { display: grid; place-items: center; padding-left: 8.2%; background: linear-gradient(120deg, #ffc54a, #e9a715); }
.favorite-book__illustration svg { display: block; width: 46%; height: auto; fill: #282016; }
.favorite-book__lettering { display: flex; flex-direction: column; justify-content: space-between; padding: 9% 7% 9% 14.3%; background: linear-gradient(125deg, #24211e, #151413); }
.favorite-book__cover-title { color: #f7f2e7; font: 600 calc(var(--book-width) * .125)/1.16 "Barlow Semi Condensed", sans-serif; letter-spacing: -.02em; text-wrap: balance; }
.favorite-book__cover-author { color: #cabda6; font: 500 calc(var(--book-width) * .056)/1.2 "IBM Plex Mono", monospace; letter-spacing: .02em; }
.favorite-book__front::before { content: ''; position: absolute; z-index: 1; inset: 0 auto 0 0; width: 8.2%; background: linear-gradient(90deg, rgba(255, 255, 255, .2), rgba(0, 0, 0, .08) 28%, rgba(0, 0, 0, .38) 55%, rgba(255, 255, 255, .15) 78%, transparent); }
.favorite-book__front::after { content: ''; position: absolute; inset: 0; border: 1px solid rgba(255, 255, 255, .14); border-radius: inherit; box-shadow: inset -1px 0 2px rgba(0, 0, 0, .35); }
.favorite-book__pages { position: absolute; top: 3px; left: calc(100% - 2px); display: block; width: calc(var(--book-depth) - 2px); height: calc(100% - 6px); background: linear-gradient(90deg, #c9c6bd, transparent 70%), repeating-linear-gradient(0deg, #f6f3ea 0 1px, #ddd9d0 1px 2px); transform-origin: left center; transform: rotateY(90deg); }
.favorite-book__back { position: absolute; inset: 0; display: block; border: 1px solid #2d2722; border-radius: 6px 3px 3px 6px; background: #171316; transform: translateZ(calc(-1 * var(--book-depth))); }
.favorite-entry--book .favorite-entry__open:active { transform: none; }
.favorite-entry--book .favorite-entry__open:focus-visible { outline-offset: 6px; border-radius: 3px; }
.favorite-entry--book .favorite-entry__open:focus-visible .favorite-book__volume { transform: rotateY(-28deg); }
@media (hover: hover) and (pointer: fine) {
  .favorite-entry--book .favorite-entry__open:hover { background: transparent; }
  .favorite-entry--book .favorite-entry__open:hover .favorite-book__volume { transform: rotateY(-28deg); }
}
@media (max-width: 660px) {
  .favorite-entry--book { width: 180px; height: 224px; }
  .favorite-entry--book .favorite-entry__open { grid-template-rows: 150px 50px; }
  .favorite-entry--book .favorite-entry__content { padding-inline: 0; }
  .favorite-book__volume { --book-width: 118px; }
}
@media (prefers-reduced-motion: reduce) {
  .favorite-book__volume { transition: none; }
  .favorite-entry--book .favorite-entry__open:hover .favorite-book__volume,
  .favorite-entry--book .favorite-entry__open:focus-visible .favorite-book__volume { transform: rotateY(-18deg); }
}
.favorite-dialog__visual--book > img { max-height: 360px; object-fit: contain; background: #080608; }
.favorite-dialog__author { margin: 10px 0 0; color: var(--muted); font-size: 16px; }
.favorite-stream--book { border-color: #b89431; color: #fff1bf; background: linear-gradient(120deg, #352b14, #52411a); }
