:root { color-scheme: light dark; --accent: #c9a227; font-family: system-ui, sans-serif; line-height: 1.5; }
body { margin: 0; }
header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 1rem; border-bottom: 1px solid #8884; }
header form { margin: 0; }
.brand { font-weight: 700; text-decoration: none; color: inherit; }
main { max-width: 40rem; margin: 0 auto; padding: 1rem; }
input, select, textarea, button { font: inherit; }
input:not([type=checkbox]), textarea { width: 100%; box-sizing: border-box; padding: .5rem; margin-block: .25rem; }
button { padding: .6rem 1rem; border: 0; border-radius: .4rem; background: var(--accent); color: #000; cursor: pointer; }
button.secondary { background: #8883; color: inherit; }
button.link { background: none; padding: 0; color: inherit; text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.stack { display: grid; gap: 1rem; }
fieldset { border: 1px solid #8886; border-radius: .4rem; }
.rank { display: block; padding: .3rem 0; }
.steps li { padding: .5rem 0; }
.steps li span { display: block; opacity: .7; }
.steps li.done a::after { content: " ✓"; }
.matchup { display: grid; gap: .75rem; }
.matchup button { font-size: 1.2rem; padding: 1.25rem; }
.matchup small { display: block; font-size: .9rem; opacity: .7; }
.box-save { display: flex; align-items: center; gap: .75rem; margin: .75rem 0 0; }
.box-save:has(button[hidden]):has([role=status]:empty) { margin: 0; }
.flash { background: #8882; padding: .5rem .75rem; border-radius: .4rem; }
progress { width: 70%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.thumb { width: 2.5rem; aspect-ratio: 2 / 3; object-fit: cover; border-radius: .2rem; vertical-align: middle; }
.rank { display: flex; align-items: center; gap: .6rem; }
.matchup { grid-template-columns: 1fr 1fr; }
.matchup .secondary { grid-column: 1 / -1; }
.matchup button { display: flex; flex-direction: column; gap: .3rem; align-items: center; padding: .75rem; }
.matchup img { display: block; width: 100%; max-width: 20rem; aspect-ratio: 2 / 3; object-fit: cover; margin: 0 auto .5rem; border-radius: .3rem; }
.matchup .tagline { font-size: .9rem; font-weight: normal; line-height: 1.35; }
.matchup .skip { font-size: .9rem; padding: .4rem; }
.posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .75rem; border: 0; padding: 0; margin: 0 0 1rem; }
.posters label { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: .4rem; overflow: hidden; background: #8883; cursor: pointer; }
.posters img { display: block; width: 100%; height: 100%; object-fit: cover; }
.posters img { transition: opacity .15s; }
.posters label:not(:has(:checked)) img { opacity: .4; }
.posters .info { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1rem .75rem; text-align: center; background: #000b; color: #fff; line-height: 1.3; opacity: 0; transition: opacity .15s; }
.posters label:hover .info, .posters label:has(:focus-visible) .info { opacity: 1; }
.posters .info strong { font-size: 1.2rem; }
.posters .tagline { font-size: .85rem; }
.posters .info small { margin-top: auto; opacity: .8; }
.posters label:has(:checked)::after { content: ""; position: absolute; inset: 0; border: 6px solid #2e9e4f; border-radius: inherit; pointer-events: none; }
.posters label:has(:checked)::before { content: "✓"; position: absolute; top: .5rem; right: .5rem; z-index: 1; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #2e9e4f; color: #fff; font-weight: 700; box-shadow: 0 0 0 2px #fff; }
.posters label:has(:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.history { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.history th, .history td { width: 50%; padding: .4rem .6rem; border-bottom: 1px solid #8884; text-align: left; }
.history form { margin: 0; }
.history button.link { text-decoration: none; text-align: left; width: 100%; }
.history td.picked { background: #2e9e4f33; font-weight: 700; }
.history td.picked::before { content: "✓ "; color: #2e9e4f; }
.history td.picked form { display: inline; }
.history td.picked button.link { width: auto; }
main:has(.history-layout) { max-width: 64rem; }
.history-layout { display: grid; grid-template-columns: 15rem 1fr; gap: 1.5rem; align-items: start; }
.movie-filter { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; }
.movie-filter ul { list-style: none; margin: 0; padding: 0; }
.movie-filter a { display: block; padding: .3rem .6rem; border-radius: .3rem; color: inherit; text-decoration: none; }
.movie-filter a:hover { background: #8882; }
.movie-filter a[aria-current] { background: var(--accent); color: #000; font-weight: 700; }
@media (max-width: 40rem) {
  .history-layout { grid-template-columns: 1fr; }
  .movie-filter { position: static; max-height: 12rem; border: 1px solid #8884; border-radius: .4rem; }
}
main:has(.wide) { max-width: 64rem; }
main:has(.nominate-layout) { max-width: 64rem; }
.nominate-layout { display: grid; grid-template-columns: 1fr 16rem; gap: 1.5rem; align-items: start; }
.seen-thumbs { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; align-content: start; }
.seen-thumbs > * { display: grid; place-items: center; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: .2rem; background: #8883; font-size: .7rem; text-align: center; overflow: hidden; }
@media (max-width: 48rem) {
  .nominate-layout { grid-template-columns: 1fr; }
  .seen-thumbs { display: none; }
}
.scroll { overflow-x: auto; }
table.admin { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
table.admin th, table.admin td { padding: .4rem .6rem; border-bottom: 1px solid #8884; text-align: left; }
table.admin .num { text-align: right; font-variant-numeric: tabular-nums; }
table.sticky th { position: sticky; top: 0; z-index: 1; background: Canvas; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .25rem 1rem; }
.member-filter { display: flex; align-items: end; gap: .5rem; margin-bottom: 1rem; }
.member-filter select { display: block; padding: .5rem; margin-top: .25rem; }
.slot { display: grid; gap: .25rem; padding-block: .5rem; border-top: 1px solid #8883; }
.slot:first-of-type { border-top: 0; }
.combo { position: relative; }
.combo label { font-size: .85rem; opacity: .8; }
.combo input:disabled { opacity: .5; }
.combo [role=listbox] { position: absolute; z-index: 2; left: 0; right: 0; max-height: 20rem; overflow-y: auto; margin: 0; padding: .25rem; list-style: none; background: Canvas; color: CanvasText; border: 1px solid #8886; border-radius: .4rem; box-shadow: 0 .5rem 1.5rem #0004; }
.combo li { display: flex; align-items: center; gap: .6rem; padding: .3rem .5rem; border-radius: .3rem; cursor: pointer; line-height: 1.25; }
.combo li:hover, .combo li[aria-selected=true] { background: #8883; }
.combo li small { display: block; opacity: .7; }
.combo li.empty { cursor: default; opacity: .7; }
.combo .thumb { width: 1.75rem; flex: none; background: #8883; }
.combo .headshot { width: 2rem; height: 2rem; flex: none; border-radius: 50%; object-fit: cover; object-position: top; background: #8883; }
.slot h3 { margin: 0; font-size: .95rem; }

/* admin awards: details on the left, edit and remove stacked on the right */
.award { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: flex-start; padding-top: 1.25rem; margin-top: 1.25rem; border-top: 1px solid #8886; }
.award > :first-child { flex: 1 1 30rem; min-width: 0; }
.award > :first-child > h2 { margin-top: 0; }
.award-actions { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.award-actions summary { list-style: none; padding: .6rem 1rem; border-radius: .4rem; background: #8883; cursor: pointer; }
.award-actions summary::-webkit-details-marker { display: none; }
.award-actions details form { width: min(20rem, 100%); margin-top: .5rem; text-align: left; }
.award-actions summary, .award-actions > form button { padding: .3rem .7rem; font-size: .9rem; }
.award-actions summary { width: fit-content; margin-left: auto; }
textarea { display: block; resize: none; overflow: hidden; field-sizing: content; }

.award-order li { display: flex; align-items: center; gap: .5rem; margin-block: .2rem; }
.award-order form { display: flex; gap: .25rem; }
.award-order button { padding: .1rem .5rem; }
.award-order button:disabled { opacity: .35; cursor: default; }
.award-order li[draggable] { cursor: grab; }
.award-order li.dragging { opacity: .4; }

/* an award shown as a picture; its name is the alt text and tooltip */
/* block: no line-box gap under it; 4.5em = 3 lines at line-height 1.5, for browsers without lh */
.award-image { display: block; max-height: 4.5em; max-height: 3lh; max-width: 100%; width: auto; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
button:disabled { opacity: .5; cursor: not-allowed; }
