/* Wireframe styles only. Final design will replace this file. */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, sans-serif; color: #111; background: #fff; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.header { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; padding: 1rem; border-bottom: 1px solid #ccc; }
.brand { font-weight: 700; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.main { max-width: 1100px; margin: 0 auto; padding: 1rem; }
.footer { padding: 1rem; border-top: 1px solid #ccc; font-size: 0.8rem; color: #555; }

.button { display: inline-block; padding: 0.75rem 1.5rem; border: 2px solid #111; font-weight: 700; text-decoration: none; }
.empty { color: #666; }
.error { color: #b00; }

.grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.grid a { display: block; text-decoration: none; }
.no-poster { aspect-ratio: 2 / 3; background: #ddd; }

.genre-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.5rem; }
.genre-grid a { display: block; padding: 1.5rem 0.5rem; border: 1px solid #111; text-align: center; text-decoration: none; }

.deck-cards { list-style: none; padding: 0; max-width: 360px; margin: 0 auto; }
.deck:not(.is-deck) .deck-card { margin-bottom: 2rem; }
.deck-card a { display: block; text-decoration: none; }
.deck-title { display: block; font-weight: 700; margin-top: 0.5rem; }
.deck-controls { display: flex; justify-content: center; gap: 1.5rem; align-items: center; margin: 1rem 0; }
.deck-controls button { font-size: 1.5rem; padding: 0.5rem 1.25rem; }
.deck { touch-action: pan-y; }

.phrase { font-weight: 700; letter-spacing: 0.05em; }
.movie-poster { max-width: 300px; }
.details { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1rem; }
.details dt { font-weight: 700; }
.details dd { margin: 0; }

.filters { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; margin: 1rem 0; }
.filters label, .review-form label { display: flex; flex-direction: column; gap: 0.25rem; }
.review-form { display: grid; gap: 1rem; max-width: 700px; }
.review-form .inline, label.inline { flex-direction: row; display: inline-flex; gap: 0.25rem; margin-right: 1rem; }
.inline-form { display: inline; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 0.4rem; border-bottom: 1px solid #ddd; vertical-align: middle; }
.admin-results { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.admin-results li { display: flex; gap: 1rem; align-items: center; }
.admin-results img { width: 46px; }
.danger { margin-top: 2rem; }
.pager { display: flex; gap: 1rem; }

.splash main { min-height: 100vh; display: grid; place-content: center; text-align: center; }
