:root {
    --sb-bg: #14181c;
    --sb-panel: #2c3440;
    --sb-border: #456;
    --sb-text: #9ab;
    --sb-heading: #fff;
    --sb-muted: #678;
    --sb-accent: #40bcf4;
    --sb-green: #00e054;
    --sb-orange: #ff8000;
    --sb-gold: #e9b949;
    --sb-field-focus: #354150;
    --bs-body-bg: var(--sb-bg);
    --bs-body-color: var(--sb-text);
    --bs-link-color-rgb: 64, 188, 244;
    --bs-link-hover-color-rgb: 255, 255, 255;
    --bs-border-color: var(--sb-border);
}

html { scrollbar-gutter: stable; }

.alert-strip { margin: 1rem auto; }
.delivered-alerts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .75rem; }
.delivered-alert { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 1fr auto; gap: .85rem; padding: .75rem;
    border: 1px solid var(--sb-accent); border-left: 4px solid var(--sb-accent);
    border-radius: 8px; background: var(--sb-panel); }
.delivered-alert-cover { width: 56px; height: 75px; object-fit: contain; }
.delivered-alert-content { min-width: 0; }
.delivered-alert-content:first-child { grid-column: 1 / -1; }
.delivered-alert h2 { margin: 0 0 .25rem; padding: 0; border: 0; font-size: 1rem; text-transform: none; letter-spacing: normal; }
.delivered-alert p { margin: 0 0 .5rem; font-size: .85rem; }
.delivered-alert .reminder-actions { grid-column: 1 / -1; gap: .4rem; flex-wrap: nowrap; }
.delivered-alert .reminder-actions .btn { white-space: nowrap; }
.edition-reminder-status:empty { display: none; }
.edition-reminder-status { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem;
    margin: .8rem 0; padding: .8rem; border-left: 3px solid var(--sb-accent); background: var(--sb-panel); }
@media (max-width: 575px) {
    .delivered-alerts { grid-template-columns: 1fr; }
    .delivered-alert { gap: .65rem; }
    .delivered-alert-cover { width: 44px; height: 64px; }
    .delivered-alert .reminder-actions { gap: .3rem; }
    .delivered-alert .reminder-actions .btn { font-size: .75rem; padding: .25rem .3rem; }
}

html, body {
    background: var(--sb-bg);
    color: var(--sb-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

h1, h2, h3, h4, h5 {
    color: var(--sb-heading);
    font-weight: 500;
}

h1 { font-size: 1.9rem; }
h2 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sb-text); border-bottom: 1px solid var(--sb-border); padding-bottom: 0.3rem; margin-top: 2rem; }

a { color: var(--sb-accent); text-decoration: none; }
a:hover { color: var(--sb-heading); }

.btn-primary, .btn-accent {
    color: #14181c;
    background-color: var(--sb-green);
    border-color: var(--sb-green);
    font-weight: 600;
}

.btn-primary:hover, .btn-accent:hover {
    color: #14181c;
    background-color: #33e676;
    border-color: #33e676;
}

.btn-secondary, .btn-outline-secondary {
    background: var(--sb-panel);
    border-color: var(--sb-border);
    color: var(--sb-text);
}

.account-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.account-actions > form { margin: 0; }
.account-captcha { width: fit-content; max-width: 100%; line-height: 0; }

.form-control, .form-select {
    background-color: var(--sb-panel);
    border-color: transparent;
    color: var(--sb-heading);
}

.form-control:focus, .form-select:focus {
    background-color: var(--sb-field-focus);
    border-color: var(--sb-accent);
    color: var(--sb-heading);
}

::placeholder { color: var(--sb-text); opacity: 1; }
.form-floating > label,
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-control:-webkit-autofill ~ label,
.form-floating > .form-select ~ label { color: var(--sb-text); }

input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill {
    -webkit-text-fill-color: var(--sb-heading);
    -webkit-box-shadow: 0 0 0 1000px var(--sb-panel) inset;
    caret-color: var(--sb-heading);
}

.btn:focus, .btn:active:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.15rem rgba(64, 188, 244, 0.5);
}

.site-header {
    background: var(--sb-bg);
    border-bottom: 1px solid #1b2128;
}

.site-header-inner, .site-main, .site-footer, .alert-strip {
    max-width: 1100px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    min-height: 4.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--sb-heading);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand:hover { color: var(--sb-heading); }

.brand-mark { width: 2.5rem; height: 2.5rem; flex-shrink: 0; }
.brand-name { white-space: nowrap; }
.brand-domain { color: var(--sb-accent); }

.site-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
}

.nav-item-link, .user-menu-toggle {
    color: var(--sb-text);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nav-item-link:hover, .nav-item-link.active, .user-menu-toggle:hover { color: var(--sb-heading); }

.user-menu { position: relative; }

.user-menu-toggle {
    background: none;
    border: 0;
    padding: 0.8rem 0.25rem;
}

.user-menu-list {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 10;
    min-width: 13rem;
    margin: 0;
    padding: 0.5rem 0;
    list-style: none;
    background: #89a;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.user-menu:hover .user-menu-list, .user-menu:focus-within .user-menu-list { display: block; }

.user-menu-list a, .user-menu-list button {
    display: block;
    width: 100%;
    padding: 0.4rem 1.25rem;
    background: none;
    border: 0;
    text-align: left;
    color: #14181c;
    font-size: 0.95rem;
}

.user-menu-list a:hover, .user-menu-list button:hover { background: #678; color: #fff; }
.user-menu-separator { border-top: 1px solid #678; margin-top: 0.4rem; padding-top: 0.4rem; }

.site-main { padding-top: 2rem; padding-bottom: 3rem; min-height: 70vh; }

.site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    border-top: 1px solid #1b2128;
    color: var(--sb-muted);
    font-size: 0.85rem;
}

.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer a { color: var(--sb-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.site-footer a:hover { color: var(--sb-heading); }

.table { --bs-table-bg: transparent; --bs-table-color: var(--sb-text); }
h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.gallery img {
    border-radius: 4px;
    border: 1px solid var(--sb-border);
}

.artwork-frame {
    display: block;
    box-sizing: border-box;
    padding: .5rem;
    background: #252c34;
    border: 1px solid #39434e;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgb(0 0 0 / 18%);
}

.edition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
}

.edition-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--sb-border);
    border-radius: 6px;
    overflow: hidden;
    background: var(--sb-panel);
}

.edition-card-cover {
    display: block;
    aspect-ratio: 3 / 4;
    background: #1b2128;
}

.edition-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.edition-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--sb-muted);
}

.edition-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem;
}

/* Card actions sit at the bottom of the card however many lines the title wraps to. */

.edition-card-date { color: var(--sb-muted); font-size: 0.75rem; }

/* Edition and exclusivity sit at the foot of every tile at a fixed height, so the divider lines up across a row. */
.edition-card-meta {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin-top: auto;
    padding-top: 0.45rem;
    border-top: 1px solid rgb(68 85 102 / 45%);
    color: var(--sb-muted);
    font-size: 0.72rem;
    line-height: 1.35;
    height: calc(2 * 1.35em);
    box-sizing: content-box;
    overflow: hidden;
}
.edition-card-edition { display: flex; flex-direction: column; min-width: 0; }
.edition-card-label { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.edition-card-label:has(+ .edition-card-exclusive) { -webkit-line-clamp: 1; }
.edition-card-exclusive { color: var(--sb-gold); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Small rectangular flags in the style of Blu-ray.com's release-country markers. */
.country-flag {
    flex: none;
    width: 18px;
    height: 12px;
    margin-top: 0.12em;
    object-fit: cover;
    border-radius: 1px;
    box-shadow: 0 0 0 1px rgb(0 0 0 / 40%);
}
.country-flag-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--sb-border);
    color: var(--sb-heading);
    font-size: 0.55rem;
    font-weight: 700;
    text-decoration: none;
    cursor: help;
}
.country-flag-lg { width: 27px; height: 18px; margin-top: 0; border-radius: 2px; }
.country-flag-code.country-flag-lg { font-size: 0.7rem; }

/* Product-page identity strip: the tile footer's flag, edition and exclusivity, given room to breathe. */
.edition-identity {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0;
    margin: 0.6rem 0 0.4rem;
    color: var(--sb-text);
    font-size: 0.95rem;
}
.edition-identity > span { display: inline-flex; align-items: center; }
.edition-identity > span + span::before {
    content: "";
    align-self: stretch;
    width: 1px;
    margin: 0.15rem 0.85rem;
    background: var(--sb-border);
}
.edition-identity-badge {
    padding: 0.2rem 0.6rem;
    border: 1px solid rgb(233 185 73 / 55%);
    border-radius: 999px;
    background: rgb(233 185 73 / 12%);
    color: var(--sb-gold);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.share-link {
    width: 100%;
    max-width: 32rem;
}

.share-name-form label { display: block; }
.share-name-row { display: flex; flex-wrap: wrap; gap: 0.5rem; max-width: 32rem; }
.share-name-row input { flex: 1 1 14rem; }
.collection-sharing-dialog fieldset { display: grid; gap: .75rem; min-width: 0; }
.collection-sharing-dialog input, .collection-sharing-dialog select { min-width: 0; max-width: 100%; }
.collection-sharing-dialog > .reminder-actions { margin-top: 1rem; }
.sharing-collections { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.sharing-collections button { display: grid; text-align: left; }
.sharing-collections button span { font-size: .8rem; }
.sharing-collections [aria-pressed="true"] { outline: 2px solid var(--sb-gold); outline-offset: 2px; }

.shared-list-head { margin-bottom: 1.25rem; }
.shared-list-head h1 { margin-bottom: 0.25rem; overflow-wrap: anywhere; }
.shared-list-kicker { margin: 0; color: var(--sb-muted); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.shared-list-count { margin: 0; color: var(--sb-muted); }

.legal-page {
    max-width: 52rem;
}

.legal-meta {
    color: var(--sb-muted);
}

.legal-toc {
    margin: 1rem 0 2rem;
    padding: 1rem 1.5rem;
    background: var(--sb-panel);
    border-radius: 6px;
}

.legal-section {
    margin-bottom: 2rem;
}

.legal-section h2 {
    font-size: 1.4rem;
    margin-top: 1.5rem;
}

.legal-back {
    font-size: 0.85rem;
}

.legal-table td {
    vertical-align: top;
}

.edition-card {
    transition: box-shadow 0.15s;
}

.edition-card:hover {
    box-shadow: 0 0 0 2px var(--sb-accent);
}

/* Plain form controls used across pages that do not use Bootstrap classes. */
:where(input:not([type=checkbox], [type=radio], [type=hidden], [type=file]), select, textarea) {
    background: var(--sb-panel);
    color: var(--sb-heading);
    border: 1px solid transparent;
    border-radius: 3px;
    padding: 0.35rem 0.6rem;
}

:where(input, select, textarea):focus {
    background: var(--sb-field-focus);
    color: var(--sb-heading);
    outline: 2px solid var(--sb-accent);
}

:where(button:not(.btn, .user-menu-toggle)) {
    background: #456;
    color: var(--sb-heading);
    border: 0;
    border-radius: 3px;
    padding: 0.35rem 0.9rem;
    font-weight: 600;
}

:where(button:not(.btn, .user-menu-toggle)):hover:not(:disabled) { background: #567; }
:where(button):disabled { opacity: 0.5; }

.edition-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.25rem; }
.edition-card { background: transparent; }
.edition-card-body { padding: 0.5rem 0.1rem; }

#blazor-error-ui {
    color-scheme: dark only;
    background: #b32121;
    color: #fff;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui a { color: #fff; text-decoration: underline; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }
.nav-pills { --bs-nav-pills-link-active-bg: #456; --bs-nav-pills-link-active-color: #fff; }
.form-floating > label::after { background: transparent !important; }

/* Edition detail page */
.edition-detail { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: 2rem; margin-bottom: 2.5rem; }
@media (max-width: 700px) { .edition-detail { grid-template-columns: 1fr; } }
.edition-detail-cover { width: 100%; padding: 1rem; }
.edition-detail-thumbs { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: .75rem 0 0; }
.edition-detail-thumbs img { height: 72px; padding: .375rem; }
.gallery-main-button { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.gallery-thumbnail { padding: 0; border: 0; background: transparent; border-radius: 8px; cursor: zoom-in; }
.gallery-main-button:focus-visible, .gallery-thumbnail:focus-visible { outline: 2px solid var(--sb-accent); outline-offset: 3px; }
.artwork-viewer { width: min(1100px, 96vw); max-width: 96vw; max-height: 94vh; padding: 1rem; border: 1px solid var(--sb-border); border-radius: 10px; background: var(--sb-bg); color: var(--sb-text); }
.artwork-viewer::backdrop { background: rgb(0 0 0 / 80%); }
.artwork-viewer-toolbar { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.artwork-viewer-toolbar { margin-bottom: .75rem; }
.artwork-viewer-toolbar strong { color: var(--sb-heading); }
.artwork-viewer-stage { position: relative; padding: 0 44px; }
.artwork-viewer-image { display: block; width: 100%; height: auto; max-height: 72vh; object-fit: contain; }
.artwork-viewer-arrow { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 48px; padding: .5rem; border: 0; background: transparent; color: var(--sb-text); }
.artwork-viewer-arrow svg { width: 24px; height: 24px; }
.artwork-viewer-arrow:disabled { visibility: hidden; }
.artwork-viewer-previous { left: 0; }
.artwork-viewer-next { right: 0; }
.artwork-viewer-caption { margin-top: .75rem; text-align: center; }
@media (max-width: 480px) {
    .artwork-viewer { padding: .5rem; }
    .artwork-viewer-caption { font-size: .8rem; }
}
.edition-detail-kicker { text-transform: uppercase; letter-spacing: .05em; font-size: .8rem; margin: 0; }
.badge-type { background: #445566; color: #fff; padding: .1rem .5rem; border-radius: 3px; margin-right: .5rem; }
.tmdb-link { vertical-align: middle; margin-left: .6rem; }
.tmdb-link img { height: 2rem; width: auto; }
.edition-facts { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1.25rem; margin: 1rem 0; }
.edition-facts dt { font-weight: 400; opacity: .7; }
.edition-facts dd { margin: 0; }

.grid-title-details { white-space: normal; }
.grid-title-details[open] { width: 26rem; max-width: 100%; }
.grid-title-details summary { cursor: pointer; white-space: nowrap; }
.grid-title-details h3 { font-size: 1rem; margin-top: 1rem; }
.grid-member-row dl { white-space: normal; margin: 0; }

/* Alerts */
.alert-count { display: inline-block; margin-left: .3rem; min-width: 1.2rem; padding: 0 .35rem; border-radius: .6rem; background: var(--sb-accent, #00e054); color: #14181c; font-size: .7rem; font-weight: 700; text-align: center; line-height: 1.2rem; }
.reminder-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.reminder-actions .btn { font-size: .85rem; }
.reminder-delete { color: #e6a8a8; }
.reminder-delete:hover { color: #fff; background: #633b40; }
.alerts-timezone { color: var(--sb-muted); }
/* Reminder tiles reuse the catalog card; the date badge sits on the cover and the actions close the card. */
.reminder-badge { position: absolute; top: .5rem; left: .5rem; padding: .2rem .55rem; border-radius: 999px; background: rgb(20 24 28 / 88%); border: 1px solid var(--sb-accent); color: var(--sb-heading); font-size: .72rem; font-weight: 600; }
.reminder-badge-paused { border-color: #f4c47d; color: #f4c47d; }
.reminder-tile-channels { color: var(--sb-muted); font-size: .72rem; }
.reminder-tile-paused { color: #f4c47d; font-size: .72rem; }
.reminder-tile-actions { display: flex; gap: .4rem; margin-top: .5rem; }
.reminder-tile-actions .btn { flex: 1; padding: .2rem .4rem; font-size: .78rem; }
.reminder-tile-actions .btn-outline-primary { color: var(--sb-accent); border-color: #42677c; }
.reminder-tile-actions .btn-outline-primary:hover { color: var(--sb-heading); background: #29465a; border-color: var(--sb-accent); }
.reminder-editor { margin: 1rem 0 .5rem; padding: 1rem; border: 1px solid var(--sb-border); border-radius: 8px; background: var(--sb-bg); max-width: 36rem; }
.reminder-editor-heading { display: grid; gap: .35rem; margin-bottom: 1rem; }
.reminder-editor-heading strong { color: var(--sb-heading); font-weight: 600; }
.reminder-editor-heading span, .reminder-help { font-size: .8rem; line-height: 1.5; }
.reminder-date { display: grid; gap: .4rem; max-width: 16rem; font-size: .85rem; color: var(--sb-heading); }
.reminder-date input { width: 100%; min-width: 0; }
.reminder-help { margin: .5rem 0 1rem; }
.reminder-channels { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin-top: 1rem; }
.reminder-channels legend { font-size: .85rem; color: var(--sb-text); margin-bottom: .5rem; }
.reminder-channels label { display: flex; align-items: center; gap: .5rem; color: var(--sb-heading); font-size: .9rem; }
.reminder-channels input { accent-color: var(--sb-green); width: 1rem; height: 1rem; }
.reminder-feedback { margin: 1rem 0; padding: .85rem 1rem; border-left: 3px solid var(--sb-accent); background: var(--sb-panel); }
.reminder-prompt { width: min(38rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 1.5rem; border: 1px solid var(--sb-border); border-radius: 12px; background: #1c232c; color: var(--sb-text); }
.reminder-prompt::backdrop { background: rgb(0 0 0 / 75%); }
.reminder-prompt h2 { margin-top: 0; }
@media (max-width: 600px) {
    .reminder-editor { padding: .75rem; }
}
.watch-edition { margin-top: .75rem; }

/* Want / Have */
.edition-card { position: relative; }
.wh-buttons { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-top: 0.4rem; }
.wh-btn {
    background: transparent;
    border: 1px solid var(--sb-border);
    border-radius: 999px;
    color: var(--sb-text);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
}
.wh-btn:hover { border-color: var(--sb-heading); color: var(--sb-heading); }
.wh-btn:disabled { opacity: 0.6; cursor: default; }
.wh-buttons[aria-busy="true"] .wh-btn { cursor: progress; }
.wh-want.on { background: var(--sb-orange); border-color: var(--sb-orange); color: #14181c; }
.wh-have.on { background: var(--sb-green); border-color: var(--sb-green); color: #14181c; }
.wh-ordered.on { background: var(--sb-accent); border-color: var(--sb-accent); color: #14181c; }
.wh-boneyard.on { background: #9aa5b1; border-color: #9aa5b1; color: #14181c; }
.wh-large .wh-btn { font-size: 0.9rem; padding: 0.5rem 1rem; }

/* Card icons: shown over the bottom of the cover on hover or keyboard focus; a list the Steelbook is in stays visible. */
.edition-card-media { position: relative; }
.wh-icons { gap: 0.3rem; }
.wh-icons .wh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
}
.wh-icons .wh-btn:not(.on) { background: rgb(20 24 28 / 85%); color: var(--sb-heading); }
.edition-card-media .wh-icons {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1rem;
    justify-content: center;
    margin: 0;
    pointer-events: none;
}
.edition-card-media .wh-icons .wh-btn { pointer-events: auto; opacity: 0; transition: opacity 0.15s; }
.edition-card-media .wh-icons .wh-btn.on,
.edition-card-media:hover .wh-icons .wh-btn,
.edition-card-media:focus-within .wh-icons .wh-btn { opacity: 1; }
@media (hover: none) {
    .edition-card-media .wh-icons .wh-btn { opacity: 1; }
}

.edition-detail-info { display: flex; flex-direction: column; min-width: 0; }
.edition-detail-info > .my-copy-panel { margin: 2rem 0 0; align-self: flex-start; max-width: 100%; }
.my-copy-panel > h2 { margin-top: 0; }
.my-copy-panel p:last-child { margin-bottom: 0; }
.my-copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.my-copy-row > .wh-buttons { margin-top: 0; }
.my-copy-row > :not(.wh-buttons, .quantity-control) { flex-basis: 100%; }
.quantity-control { display: inline-flex; align-items: center; gap: 0.4rem; }
.quantity-control button { width: 1.8rem; height: 1.8rem; padding: 0; }
.collection-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin: 1rem 0 1.75rem; }

/* Filter chips: each category carries a colour dot that the edition tiles echo (gold = exclusive). */
.filter-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; }
.collection-toolbar .filter-chips { margin: 0; }
.collection-page-header { display: grid; gap: .75rem; margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--sb-border); }
.collection-back-link { width: fit-content; font-size: .9rem; }
.collection-title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
.collection-title-row h1 { margin: 0; }
.collection-title-row .btn { flex-shrink: 0; }
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .45rem .4rem .85rem;
    border: 1px solid var(--sb-border);
    border-radius: 999px;
    background: #1b2128;
    color: var(--sb-text);
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .15s, background .15s, color .15s;
}
.filter-chip::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--chip-dot, var(--sb-text)); }
.filter-chip-all { --chip-dot: var(--sb-accent); }
.filter-chip-steelbooks { --chip-dot: linear-gradient(135deg, #e8edf2, #7d8a96); }
.filter-chip-exclusives { --chip-dot: var(--sb-gold); }
.filter-chip-other { --chip-dot: #b48cf2; }
.filter-chip:hover, .filter-chip:focus-visible { border-color: var(--sb-heading); color: var(--sb-heading); }
.filter-chip[aria-current="page"] { background: var(--sb-heading); border-color: var(--sb-heading); color: var(--sb-bg); }
.filter-chip-count {
    min-width: 1.6rem;
    padding: .1rem .45rem;
    border-radius: 999px;
    background: var(--sb-panel);
    color: var(--sb-heading);
    font-size: .75rem;
    text-align: center;
}
.filter-chip[aria-current="page"] .filter-chip-count { background: var(--sb-bg); }

.layout-toggle { display: inline-flex; border: 1px solid var(--sb-border); border-radius: 6px; overflow: hidden; }
.layout-toggle a { padding: .35rem .8rem; color: var(--sb-muted); font-size: .8rem; font-weight: 600; text-decoration: none; }
.layout-toggle a + a { border-left: 1px solid var(--sb-border); }
.layout-toggle a:hover { color: var(--sb-heading); }
.layout-toggle a[aria-current="page"] { background: var(--sb-border); color: var(--sb-heading); }
.collection-section { margin-bottom: 2.5rem; }
.collection-empty { color: var(--sb-muted); }

/* Header search: the icon expands into a box on focus (CSS only, no script). */
.site-search { display: flex; align-items: center; background: transparent; border-radius: 999px; transition: background 0.15s; }
.site-search-icon { display: flex; align-items: center; color: var(--sb-text); cursor: pointer; padding: 0.35rem; margin: 0; }
.site-search-icon:hover { color: var(--sb-heading); }
.site-search input {
    width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--sb-heading);
    font-size: 0.9rem;
    outline: none;
    transition: width 0.2s, padding 0.2s;
}
.site-search:focus-within, .site-search:has(input:not(:placeholder-shown)) { background: var(--sb-field-focus); box-shadow: 0 0 0 1px var(--sb-accent); }
.site-search:focus-within .site-search-icon, .site-search:has(input:not(:placeholder-shown)) .site-search-icon { color: var(--sb-heading); }
.site-search:focus-within input, .site-search input:not(:placeholder-shown) { width: 11rem; padding: 0.3rem 0.75rem 0.3rem 0; color: var(--sb-heading); }

.search-page-form { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; max-width: 32rem; }
.search-page-form input { flex: 1; }

/* Home */
.home-hero { text-align: center; padding: 2.5rem 1rem 1.5rem; }
.home-hero h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.home-hero p { margin-bottom: 1.25rem; }
.home-hero small { display: block; margin-top: 0.75rem; }
.home-section { margin-bottom: 2rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--sb-border); margin: 1.5rem 0 0.9rem; }
.section-head h2 { border: 0; margin: 0; padding-bottom: 0.3rem; }
.section-head h2 a { color: inherit; }
.section-head h2 a:hover { color: var(--sb-heading); }
.section-more { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sb-muted); }
.section-stats { color: var(--sb-muted); }
.section-spent { margin-left: 0.6rem; padding-left: 0.6rem; border-left: 1px solid var(--sb-border); color: var(--sb-heading); font-weight: 600; }
.home-section .edition-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 900px) { .home-section .edition-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Numbered pager */
.pager { display: flex; justify-content: center; align-items: center; gap: 0.25rem; margin: 2rem 0; }
.pager ol { display: flex; flex-wrap: wrap; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.pager a, .pager-current, .pager-gap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    height: 2.1rem;
    padding: 0 0.5rem;
    border-radius: 4px;
    margin: 0;
    font-size: 0.9rem;
}
.pager a { color: var(--sb-text); background: var(--sb-panel); }
.pager a:hover { color: var(--sb-heading); background: var(--sb-border); }
.pager-current { color: #14181c; background: var(--sb-text); font-weight: 700; }
.pager-gap { color: var(--sb-muted); min-width: 1.2rem; padding: 0; }
.pager-step svg { width: 1rem; height: 1rem; flex-shrink: 0; }

/* Store offer, specs and credits on edition, title and person pages */
.edition-headline { margin: .25rem 0 .75rem; opacity: .8; }
.store-offer { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin: .75rem 0; }
.btn-buy { background: var(--sb-green); color: #14181c; font-weight: 600; border: 0; }
.btn-buy:hover, .btn-buy:focus { background: var(--sb-green); color: #14181c; filter: brightness(1.1); }
.store-offer-checked { color: var(--sb-muted); font-size: .7rem; }
.store-offer-date { color: var(--sb-muted); font-size: .8rem; }
/* Retailer logos use dark artwork, so they sit on a light chip of a common height. */
.btn-retailer { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; box-sizing: border-box; height: 2.25rem; min-width: 4.5rem; padding: .3rem .65rem; background: #fff; color: #171717; border: 1px solid #d5d9d9; border-radius: 999px; text-decoration: none; transition: box-shadow .15s ease, background-color .15s ease; }
.btn-retailer:hover, .btn-retailer:focus-visible { background: #e9f7ff; color: #171717; border-color: var(--sb-accent); box-shadow: 0 3px 10px rgba(64, 188, 244, .3); text-decoration: none; }
.btn-retailer:focus-visible { outline: 2px solid var(--sb-accent); outline-offset: 3px; }
.btn-retailer img { display: block; width: auto; max-width: 100%; }
.retailer-amazon img { height: 1.1rem; margin-top: .2rem; }
.retailer-hdmoviesource img { height: 1.6rem; }
.synopsis { max-width: 70ch; line-height: 1.6; }
.retailer-bestbuy img { height: 1.6rem; }
.retailer-walmart img { height: 1.2rem; }
.retailer-ebay img { height: 1.35rem; }
.product-links, .metadata-links { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: 1rem 0; }
.product-links .store-offer { margin: 0; }
.metadata-links .tmdb-link { margin: 0; }
.edition-content-links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: .75rem 0; }
.edition-content-links .tmdb-score, .edition-content-links .metadata-links { margin: 0; }
.metadata-logo { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; min-width: 2.75rem; padding: .25rem; box-sizing: border-box; border-radius: .4rem; text-decoration: none; transition: background-color .15s ease, filter .15s ease; }
.metadata-logo img { display: block; width: auto; }
.metadata-logo:hover, .metadata-logo:focus-visible { background-color: rgba(64, 188, 244, .15); filter: brightness(1.15); text-decoration: none; }
.metadata-logo:focus-visible { outline: 2px solid var(--sb-accent); outline-offset: 3px; }
.metadata-imdb img, .metadata-rottentomatoes img { height: 2.25rem; }
.metadata-imdb img { background-color: #f5c518; border-radius: .2rem; }
.metadata-letterboxd img { height: 2rem; }
/* Matches the eBay button's logo width; the Blu-ray mark is squarer, so it is taller. */
.metadata-bluray img { height: 1.8rem; }
@media (prefers-reduced-motion: reduce) { .btn-retailer, .metadata-logo { transition: none; } }

.edition-about, .edition-specs { margin-bottom: 2rem; }
.spec-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem 2rem; }
.spec-columns h3, .spec-columns h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; opacity: .7; margin: 0; }
.title-spec-panel, .shared-spec-panel { padding: 1.25rem; border: 1px solid var(--sb-muted); border-radius: 8px; margin-bottom: 1rem; }
.title-spec-panel { border-left: 3px solid var(--sb-accent); }
.shared-spec-panel { background: rgba(255, 255, 255, .025); }
.tmdb-score { font-size: .9rem; }
.tmdb-rating-link { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.purchase-heading { display: flex; align-items: center; gap: .6rem; }
.purchase-heading h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; opacity: .7; margin: 0; }
.purchase-edit { padding: .1rem .65rem; border: 1px solid var(--sb-border); border-radius: 999px; background: transparent; color: var(--sb-accent); font-size: .75rem; font-weight: 600; line-height: 1.4; }
.purchase-edit:hover, .purchase-edit:focus-visible { border-color: var(--sb-accent); color: var(--sb-heading); }
.purchase-summary { display: flex; flex-wrap: wrap; gap: .75rem 2.25rem; margin: .75rem 0 0; }
.purchase-summary dt { font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .6; }
.purchase-summary dd { margin: .1rem 0 0; color: var(--sb-heading); font-size: 1.05rem; overflow-wrap: anywhere; }
.purchase-actions { display: flex; gap: .5rem; margin-top: .75rem; }
.credit-list { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.25rem; margin: 1rem 0; max-width: 70ch; }
.credit-list dt { font-weight: 400; opacity: .7; }
.credit-list dd { margin: 0; }
.people-results ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.grid-artwork { min-width: 100px; white-space: normal; }
.grid-cover-button { display: block; padding: 0; border: 0; background: transparent; }
.grid-cover-preview { width: 64px; height: 86px; object-fit: contain; padding: .25rem; }
.grid-image-list { display: flex; gap: 12px; max-width: 460px; overflow-x: auto; padding-bottom: 12px; }
.grid-image-choice { display: flex; flex-direction: column; gap: 6px; flex: 0 0 140px; }
.grid-image-choice img { width: 140px; height: 140px; object-fit: contain; }

.spec-text { white-space: pre-wrap; }
.purchase-editor { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--sb-border); }
.purchase-editor label { display: block; margin: .5rem 0; }
.purchase-editor input { max-width: 100%; }
.edition-facts dd { white-space: pre-line; }

.submission-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; }
.submission-form > div { flex: 1 1 18rem; }
.submission-form label { display: block; margin-bottom: .35rem; }
.submission-form .form-control, .submission-form .btn { height: calc(1.5em + .75rem + 2px); }
.submission-state { border: 1px solid currentColor; border-radius: 999px; padding: .15rem .55rem; font-size: .85rem; }
