/* Stile minimo della fase 1: il design vero arriva nella fase 2. */
.inline { display: inline-block; margin: 0 .25rem .25rem 0; }
form.inline select, form.inline button { width: auto; display: inline-block; margin-bottom: 0; }
button.small, select.small, a[role=button].small { padding: .3rem .6rem; font-size: .85rem; }
.grid-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-cards .card { margin: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.tabs a[aria-current=page] { font-weight: bold; text-decoration: underline; }
.actions { margin: 1rem 0; }
.poster { max-width: 200px; float: right; margin: 0 0 1rem 1rem; border-radius: .5rem; }
.episodes .row-actions { white-space: nowrap; }
.error { color: #c62828; }
.ok { color: #2e7d32; }
.banner { background: #fff3cd; color: #664d03; padding: .5rem 1rem; border-radius: .25rem; }
#toasts { position: fixed; right: 1rem; bottom: 1rem; z-index: 100; display: flex; flex-direction: column; gap: .5rem; max-width: calc(100vw - 2rem); }
.toast { padding: .75rem 1rem; border-radius: .5rem; background: #2e7d32; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.toast-error { background: #c62828; }
.toast-info { background: #455a64; }
.htmx-request button { opacity: .5; }
.raw pre { max-height: 60vh; overflow: auto; font-size: .75rem; }
.login { max-width: 32rem; margin: 3rem auto; }
@media (max-width: 600px) {
  header nav { flex-direction: column; align-items: flex-start; }
  header nav ul { flex-wrap: wrap; }
  .poster { float: none; display: block; margin: 0 auto 1rem; }
}
