/* Film — GameBaitersCrew.
   Sub-site of gamebaiters.net: header bar, footer, background and controls reuse the
   parent site's styles. Films are playing cards: front = poster and scores, back = details. */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; overflow: hidden; }
body {
    font-family: 'Sen', sans-serif;
    color: #e0e0e0;
    background-color: #0a001a;
}
/* Header and footer stay put; only the content in between scrolls (as on gamebaiters.net). */
.site-wrapper { display: flex; flex-direction: column; height: 100vh; height: 100dvh; position: relative; overflow: hidden; }
.scroller {
    flex: 1;
    min-height: 0;
    position: relative;
    z-index: 1;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 0, 255, 0.55) transparent;
}
#vaporwave-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #ff00ff; outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ================= header (gamebaiters.net bar) ================= */
.header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0 40px;
    height: 90px;
    background: linear-gradient(330deg, #800080, #0f4a8b);
    box-shadow: 0 0 10px #c850d3, 0 0 40px #c850d3, 0 0 80px #c850d3;
    position: relative;
    z-index: 100;
    flex-shrink: 0;
}
/* "back" is neutral white/grey: it leaves the section, it is not an action like Donate */
.btn-back {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: .95em;
    padding: 11px 22px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #e6e6e6;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.45);
    transition: background .3s, border-color .3s, color .3s, box-shadow .3s;
}
.btn-back:hover { color: #fff; background: rgba(255, 255, 255, 0.18); border-color: #fff; box-shadow: 0 0 15px rgba(255, 255, 255, 0.25); }
.btn-back i { transition: transform .3s; }
.btn-back:hover i { transform: translateX(-3px); }
.header-title {
    font-family: 'Permanent Marker', cursive;
    font-weight: 400;
    font-size: 2.1em;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #ffcc00 0%, #ff8800 12%, #ff5500 24%, #cc33ff 40%, #9b30ff 50%, #cc33ff 60%, #ff5500 76%, #ff8800 88%, #ffcc00 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(255, 136, 0, 0.5)) drop-shadow(0 0 20px rgba(200, 80, 211, 0.45));
    animation: brandWave 20s linear infinite;
    white-space: nowrap;
}
@keyframes brandWave { to { background-position: -200% 50%; } }

/* GameBaitersCrew animated logo, exactly as on gamebaiters.net */
.brand-box {
    display: inline-block;
    padding: 8px 32px;
    background: rgba(10, 0, 30, 0.55);
    border: 2px solid rgba(255, 0, 255, 0.5);
    border-radius: 8px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.4), inset 0 0 15px rgba(255, 0, 255, 0.1);
    transition: box-shadow .4s, transform .4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.brand-box:hover { transform: scale(1.03); box-shadow: 0 0 25px rgba(255, 0, 255, 0.6), inset 0 0 15px rgba(255, 0, 255, 0.15); }
.brand-text {
    display: block;
    font-family: 'Permanent Marker', cursive;
    font-size: 2em;
    line-height: 1.2;
    letter-spacing: 4px;
    white-space: nowrap;
    background: linear-gradient(90deg,
        #ffcc00 0%, #ffcc00 5%, #ff8800 12%, #ff8800 17%,
        #ff5500 24%, #ff5500 29%, #cc33ff 38%, #cc33ff 43%,
        #9b30ff 50%, #9b30ff 57%, #cc33ff 64%, #cc33ff 69%,
        #ff5500 76%, #ff5500 81%, #ff8800 88%, #ff8800 93%,
        #ffcc00 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(255, 136, 0, 0.6)) drop-shadow(0 0 25px rgba(200, 80, 211, 0.5));
    animation: brandWave 20s linear infinite, neonPulse 5s ease-in-out infinite;
}
@keyframes neonPulse {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(255, 136, 0, 0.6)) drop-shadow(0 0 25px rgba(200, 80, 211, 0.5)); }
    50% { filter: drop-shadow(0 0 15px rgba(255, 136, 0, 0.9)) drop-shadow(0 0 45px rgba(200, 80, 211, 0.7)) drop-shadow(0 0 70px rgba(255, 85, 0, 0.3)); }
}

/* ================= main ================= */
.main-wrapper {
    flex: 1;
    position: relative;
    z-index: 1;
    width: min(1340px, 100% - 48px);
    margin: 0 auto;
    padding: 34px 0 70px;
}

.lib-tools { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.lib-search {
    flex: 1 1 280px;
    max-width: 440px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(20, 8, 40, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 11px 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color .2s, box-shadow .2s;
}
.lib-search:focus-within { border-color: rgba(255, 0, 255, 0.6); box-shadow: 0 0 15px rgba(255, 0, 255, 0.25); }
.lib-search i { color: rgba(255, 255, 255, 0.4); font-size: .9em; }
.lib-search input { background: none; border: none; outline: none; color: #fff; font: inherit; font-size: .95em; width: 100%; min-width: 0; }
.lib-search input::placeholder { color: rgba(255, 255, 255, 0.35); }
.lib-search input::-webkit-search-cancel-button { filter: invert(1); opacity: .5; }
.lib-sort { display: flex; flex-wrap: wrap; gap: 6px; }
.lib-sort button {
    background: rgba(20, 8, 40, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.65);
    font-weight: 700;
    font-size: .82em;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all .2s;
}
.lib-sort button:hover { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.lib-sort button.active { color: #ff00ff; border-color: #ff00ff; box-shadow: 0 0 10px rgba(255, 0, 255, 0.3); }

.deck-count { font-size: 1.05em; font-weight: 700; color: rgba(255, 255, 255, 0.75); text-transform: uppercase; letter-spacing: 1.5px; }
.deck-count b { font-size: 1.6em; font-weight: 800; color: #ff00ff; text-shadow: 0 0 12px rgba(255, 0, 255, 0.55); margin-right: 4px; letter-spacing: 0; }
.deck-side { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.lib-empty { padding: 60px 10px; text-align: center; color: rgba(255, 255, 255, 0.6); font-size: 1.05em; }

/* ================= films in the vote: a lit-up green board, clearly not the collection ================= */
.vote {
    position: relative;
    margin: 6px 0 46px;
    padding: 34px 26px 26px;
    border-radius: 22px;
    border: 2px solid rgba(0, 255, 100, 0.55);
    background:
        radial-gradient(90% 60% at 50% 0%, rgba(0, 255, 100, 0.12), transparent 70%),
        linear-gradient(180deg, rgba(6, 30, 22, 0.88), rgba(8, 4, 26, 0.9));
    box-shadow: 0 0 0 1px rgba(0, 255, 100, 0.15), 0 0 40px rgba(0, 255, 100, 0.18), 0 20px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.vote-ribbon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 999px;
    font-weight: 800;
    font-size: .82em;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
    color: #00140a;
    background: #00ff64;
    box-shadow: 0 0 18px rgba(0, 255, 100, 0.6);
}
.vote-live { width: 9px; height: 9px; border-radius: 50%; background: #00140a; animation: live 1.4s ease-in-out infinite; }
@keyframes live { 50% { opacity: .25; } }
.vote-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 16px; margin-bottom: 20px; text-align: center; }
.vote-title { font-weight: 800; font-size: 1.6em; color: #fff; text-transform: uppercase; letter-spacing: 1.5px; text-shadow: 0 0 16px rgba(0, 255, 100, 0.45); }
.vote-title i { color: #00ff64; margin-right: 6px; filter: drop-shadow(0 0 6px rgba(0, 255, 100, 0.6)); }
.vote-count { display: inline-grid; place-items: center; min-width: 32px; height: 32px; margin-left: 6px; padding: 0 9px; border-radius: 999px; font-size: .72em; color: #0a001a; background: #00ff64; box-shadow: 0 0 14px rgba(0, 255, 100, 0.5); vertical-align: middle; }
.vote-sub { width: 100%; color: rgba(220, 255, 235, 0.7); font-size: .95em; }
.vote-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 18px; }
/* each candidate wears its film's colour (border and tint) */
.vcard {
    --film: #c850d3;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 18px;
    padding: 16px;
    border-radius: 16px;
    border: 2px solid var(--film);
    background:
        radial-gradient(130% 90% at 0% 0%, color-mix(in srgb, var(--film) 24%, transparent), transparent 60%),
        linear-gradient(135deg, rgba(20, 8, 40, 0.96), rgba(10, 0, 26, 0.96));
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5), 0 0 22px color-mix(in srgb, var(--film) 25%, transparent);
    animation: deal .5s cubic-bezier(.2, .8, .2, 1) both;
    transition: transform .35s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow .3s;
}
.vcard:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55), 0 0 32px color-mix(in srgb, var(--film) 45%, transparent); }
.vcard-art { align-self: start; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6); }
.vcard-art img, .vcard-art .noart { width: 100%; height: 100%; object-fit: cover; }
.vcard-body { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.vcard-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.vcard-title { font-weight: 800; font-size: 1.15em; line-height: 1.2; color: #fff; }
.vcard-meta { font-size: .82em; color: rgba(255, 255, 255, 0.6); }
.vcard-genres { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; }
.vcard-genres li { padding: 2px 9px; border-radius: 999px; font-size: .74em; font-weight: 700; color: #fff; background: color-mix(in srgb, var(--film) 22%, transparent); border: 1px solid color-mix(in srgb, var(--film) 60%, transparent); }
.vcard-plot {
    padding: 10px 12px 11px 14px;
    border-radius: 10px;
    border-left: 4px solid var(--film);
    background: color-mix(in srgb, var(--film) 12%, rgba(0, 0, 0, 0.35));
}
.vcard-plot-label { display: block; margin-bottom: 3px; font-size: .7em; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: color-mix(in srgb, var(--film) 60%, #fff); }
.vcard-summary { font-size: 1.05em; line-height: 1.5; font-weight: 600; color: #fff; }
.vcard-foot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.vbadge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 6px; font-size: .78em; font-weight: 700; color: #fff; background: rgba(10, 0, 26, 0.6); border: 1px solid rgba(255, 255, 255, 0.15); }
.vbadge.imdb b { color: #000; background: #f5c518; padding: 0 4px; border-radius: 3px; font-size: .85em; }
.vbadge.rt i { color: #fa320a; }
.vbadge.mc b { color: #062b19; background: #00ce7a; padding: 0 4px; border-radius: 3px; font-size: .85em; }
.vbadge.oscar i { color: #ffcc00; }
/* trailer: YouTube red, the most obvious button on the card */
.vbadge.trailer, .b-links a.yt {
    margin-left: auto;
    padding: 6px 14px;
    font-size: .85em;
    font-weight: 800;
    color: #fff;
    background: #ff0000;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(255, 0, 0, 0.45);
    transition: background .2s, transform .2s, box-shadow .2s;
}
.vbadge.trailer:hover, .b-links a.yt:hover { background: #cc0000; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255, 0, 0, 0.6); }
.vbadge.trailer i, .b-links a.yt i { color: #fff; font-size: 1.15em; }

/* ================= the collection of films already watched ================= */
.watched-head { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 0, 255, 0.25); }
.watched-title { font-weight: 800; font-size: 1.6em; color: #fff; text-transform: uppercase; letter-spacing: 1.5px; text-shadow: 0 0 16px rgba(255, 0, 255, 0.45); }
.watched-title i { color: #ff00ff; margin-right: 6px; filter: drop-shadow(0 0 6px rgba(255, 0, 255, 0.6)); }
.watched-count { display: inline-grid; place-items: center; min-width: 32px; height: 32px; margin-left: 6px; padding: 0 9px; border-radius: 999px; font-size: .72em; color: #fff; background: rgba(255, 0, 255, 0.35); border: 1px solid #ff00ff; box-shadow: 0 0 14px rgba(255, 0, 255, 0.4); vertical-align: middle; letter-spacing: 0; }
.watched-sub { margin-top: 4px; color: rgba(255, 255, 255, 0.55); font-size: .95em; }
.watched .lib-tools { margin-bottom: 8px; }

/* ================= the deck ================= */
.deck {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
    gap: 34px 26px;
    padding-top: 16px;
    justify-items: center;
}
.deck > li {
    width: 100%;
    max-width: 300px;
    animation: deal .5s cubic-bezier(.2, .8, .2, 1) both;
    animation-delay: calc(var(--i, 0) * 45ms);
    transition: transform .35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.deck > li:hover { transform: translateY(-8px); }
@keyframes deal { from { opacity: 0; transform: translateY(26px); } }

/* A card is the poster, edge to edge, framed in the film's own colour (--film, set from the poster). */
.card {
    --film: #c850d3;
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3.1;
    perspective: 1400px;
    border-radius: 16px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.55), 0 0 26px color-mix(in srgb, var(--film) 35%, transparent);
    transition: box-shadow .3s;
}
.deck > li:hover .card { box-shadow: 0 26px 46px rgba(0, 0, 0, 0.6), 0 0 44px color-mix(in srgb, var(--film) 60%, transparent); }
.card-flip {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transition: transform .7s cubic-bezier(.3, .8, .25, 1);
}
.card.flipped .card-flip { transform: rotateY(180deg); }
.face {
    position: absolute;
    inset: 0;
    display: flex;
    padding: 5px;
    border: 0;
    border-radius: 16px;
    color: inherit;
    font: inherit;
    text-align: left;
    background: linear-gradient(155deg,
        color-mix(in srgb, var(--film) 55%, #fff) 0%,
        var(--film) 30%,
        color-mix(in srgb, var(--film) 55%, #000) 70%,
        var(--film) 100%);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    cursor: pointer;
}
.face-back { transform: rotateY(180deg); }
.face-in {
    position: relative;
    flex: 1;
    min-width: 0;
    border-radius: 11px;
    overflow: hidden;
    background: #0d0420;
}

/* ---- front: full-bleed poster with information panels on top ---- */
.f-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.face-front .noart { position: absolute; inset: 0; }
.f-top {
    position: absolute;
    inset: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 10px 26px;
    background: linear-gradient(rgba(8, 2, 20, 0.94), rgba(8, 2, 20, 0.75) 55%, transparent);
}
.f-title { min-width: 0; font-weight: 800; font-size: 1.05em; line-height: 1.2; color: #fff; text-shadow: 0 1px 6px #000; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.f-title small { display: block; font-weight: 700; font-size: .78em; color: color-mix(in srgb, var(--film) 55%, #fff); }
.f-tags { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.f-no, .f-cert { padding: 2px 7px; border-radius: 4px; font-weight: 800; font-size: .7em; line-height: 1.3; }
.f-no { color: #fff; background: rgba(0, 0, 0, 0.6); border: 1px solid color-mix(in srgb, var(--film) 70%, transparent); }
.f-cert { color: #140428; background: rgba(255, 255, 255, 0.88); }

.f-bottom {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 46px 9px 9px;
    background: linear-gradient(transparent, rgba(8, 2, 20, 0.82) 30%, rgba(8, 2, 20, 0.96) 60%);
}
/* awards: what the film actually won */
.f-awards { display: flex; flex-wrap: wrap; gap: 5px; }
.award {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: .72em;
    font-weight: 800;
    letter-spacing: .2px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
}
.award.oscar { color: #2b1d00; background: linear-gradient(135deg, #ffe17a, #f5b400); border-color: #ffd34d; box-shadow: 0 0 12px rgba(255, 204, 0, 0.45); }
.award.nominee { color: #fff1c2; border-color: rgba(255, 204, 0, 0.55); background: rgba(255, 204, 0, 0.12); }
.award.fresh { color: #fff; border-color: rgba(250, 50, 10, 0.6); background: rgba(250, 50, 10, 0.25); }
.award.fresh i { color: #ffcc00; }
.f-line { display: flex; justify-content: space-between; gap: 8px; font-size: .76em; font-weight: 700; color: rgba(255, 255, 255, 0.8); }
.f-line span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-line span:last-child { flex: none; }

.scores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.score {
    display: grid;
    justify-items: center;
    gap: 1px;
    padding: 5px 2px 4px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.score-icon { height: 20px; display: grid; place-items: center; }
.score-icon svg { width: 20px; height: 20px; }
.score b { font-size: .95em; font-weight: 800; color: #fff; line-height: 1.1; }
.score small { font-size: .56em; letter-spacing: .3px; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); white-space: nowrap; }
.score.empty b { color: rgba(255, 255, 255, 0.3); }
.imdb-badge { height: 15px; padding: 0 3px; display: grid; place-items: center; border-radius: 3px; font-size: .55em; font-weight: 800; color: #000; background: #f5c518; }
.mc-badge { width: 20px; height: 18px; display: grid; place-items: center; border-radius: 3px; font-size: .62em; font-weight: 800; color: #fff; background: #555; }
.mc-badge.good { background: #00ce7a; color: #062b19; }
.mc-badge.mixed { background: #ffbd3f; color: #2c1b00; }
.mc-badge.bad { background: #ff6874; color: #2b0006; }
.f-foot { display: flex; justify-content: space-between; gap: 8px; padding-top: 6px; border-top: 1px solid color-mix(in srgb, var(--film) 40%, transparent); font-size: .72em; color: rgba(255, 255, 255, 0.6); }
.f-foot b { color: color-mix(in srgb, var(--film) 50%, #fff); }

/* ---- back: details on a dark background tinted with the film's colour ---- */
.face-back .face-in {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 12px 10px;
    background:
        radial-gradient(120% 70% at 100% 0%, color-mix(in srgb, var(--film) 30%, transparent), transparent 65%),
        linear-gradient(180deg, #1a0a34, #0d0420);
}
.b-title { font-weight: 800; font-size: 1.1em; line-height: 1.2; color: #fff; padding-right: 36px; }
.b-original { font-size: .78em; font-style: italic; color: rgba(255, 255, 255, 0.5); margin-top: -4px; }
.b-plot { font-size: .8em; line-height: 1.5; color: #d6d6d6; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.b-facts { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; font-size: .74em; margin-top: auto; }
.b-facts dt { color: rgba(255, 255, 255, 0.45); }
.b-facts dd { color: #e8e8e8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-facts dd.wrap { white-space: normal; }
.b-links { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 8px; border-top: 1px solid color-mix(in srgb, var(--film) 40%, transparent); }
.b-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: .74em;
    font-weight: 700;
    color: #fff;
    background: color-mix(in srgb, var(--film) 18%, transparent);
    border: 1px solid color-mix(in srgb, var(--film) 55%, transparent);
    transition: background .2s;
}
.b-links a:hover { background: color-mix(in srgb, var(--film) 40%, transparent); }
.b-turn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    font-size: .8em;
}
.b-turn:hover { background: color-mix(in srgb, var(--film) 45%, transparent); }

.noart {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 12px;
    text-align: center;
    font-family: 'Permanent Marker', cursive;
    font-size: 1.2em;
    line-height: 1.2;
    color: #fff;
    background: linear-gradient(330deg, #800080, #0f4a8b);
    overflow-wrap: anywhere;
}

/* ================= footer (gamebaiters.net) ================= */
.footer {
    text-align: center;
    padding: 22px 20px;
    background: linear-gradient(330deg, rgba(128, 0, 128, 0.7), rgba(15, 74, 139, 0.7));
    box-shadow: 0 0 10px rgba(200, 80, 211, 0.4), 0 0 40px rgba(200, 80, 211, 0.2), 0 0 80px rgba(200, 80, 211, 0.1);
    color: #ccc;
    font-size: 1em;
    letter-spacing: 1.5px;
    position: relative;
    z-index: 100;
    flex-shrink: 0;
}

/* the quiet door to the admin area */
.admin-door {
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 200;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: .75em;
    color: #fff;
    opacity: .14;
    transition: opacity .3s, background .3s;
}
.admin-door:hover, .admin-door:focus-visible { opacity: .85; background: rgba(255, 255, 255, 0.1); }

/* scrollbars as on gamebaiters.net */
::-webkit-scrollbar { width: 6px; height: 6px; background: transparent; }
::-webkit-scrollbar-track { background: transparent; margin: 28px 0; border-radius: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 0, 255, 0.55); border-radius: 10px; border: 1px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 0, 255, 0.85); background-clip: padding-box; }
html { scrollbar-width: thin; scrollbar-color: rgba(255, 0, 255, 0.55) transparent; }

/* ================= responsive ================= */
@media (max-width: 1024px) {
    .header { padding: 0 20px; }
    .btn-back { left: 20px; padding: 10px 16px; font-size: .85em; }
}
@media (max-width: 900px) {
    .header { height: auto; min-height: 64px; padding: 10px 16px; justify-content: space-between; }
    .btn-back { position: static; transform: none; padding: 8px 14px; font-size: .8em; letter-spacing: 1px; }
    .brand-text { font-size: 1.6em; }
}
@media (max-width: 768px) {
    .header { flex-direction: column-reverse; gap: 10px; padding: 12px 16px; }
    .btn-back { align-self: stretch; justify-content: center; padding: 7px 12px; font-size: .75em; }
    .brand-box { padding: 5px 16px; }
    .brand-text { font-size: 1.3em; letter-spacing: 2px; }
    .header-title { font-size: 1.35em; letter-spacing: 2px; }
    .main-wrapper { width: calc(100% - 28px); padding-top: 20px; }
    .lib-tools { flex-direction: column; align-items: stretch; }
    .lib-search { flex: none; width: 100%; max-width: none; }
    .lib-sort { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
    .lib-sort button { flex: none; }
    .deck { grid-template-columns: 1fr; gap: 28px; }
    .vcard { grid-template-columns: 78px 1fr; gap: 12px; padding: 12px; }
    .vote { padding: 30px 12px 14px; border-radius: 18px; }
    .vote-ribbon { font-size: .7em; padding: 5px 12px; }
    .vote-title, .watched-title { font-size: 1.2em; }
    .vcard-summary { font-size: 1em; }
    .deck > li { max-width: 340px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ================= phones: comfortable tap targets ================= */
@media (max-width: 768px) {
    .lib-search { padding: 0 14px; min-height: 48px; }
    .lib-search input { height: 46px; font-size: 16px; }   /* 16px stops iOS from zooming in */
    .lib-sort button { min-height: 40px; padding: 8px 14px; }
    .vbadge { min-height: 30px; }
    .vbadge.trailer { min-height: 40px; padding: 6px 14px; font-size: .85em; }
    .b-links a { min-height: 40px; padding: 8px 12px; font-size: .8em; }
    .b-turn { width: 40px; height: 40px; }
    .btn-back { min-height: 42px; }
}

/* phones: keep the fixed bars slim so the content keeps most of the screen */
@media (max-width: 768px) {
    .header { padding: 8px 12px; gap: 6px; }
    .header .btn-back { min-height: 36px; padding: 5px 12px; font-size: .72em; }
    .brand-box { padding: 3px 14px; }
    .brand-text { font-size: 1.15em; }
    .footer { padding: 9px 12px; font-size: .78em; letter-spacing: 1px; }
}

/* phones: poster and title side by side, the plot gets the full card width */
@media (max-width: 768px) {
    .vcard { grid-template-columns: 70px 1fr; gap: 10px 12px; }
    .vcard-body { display: contents; }
    .vcard-art { grid-column: 1; grid-row: 1; }
    .vcard-head { grid-column: 2; grid-row: 1; align-self: center; flex-direction: column; align-items: flex-start; }
    .vcard-plot, .vcard-genres, .vcard-foot { grid-column: 1 / -1; }
}
