* { box-sizing: border-box; }
body { font-family: system-ui, sans-serif; margin: 0; background: #1a1a2e; color: #eee; min-height: 100vh; }
.main { max-width: 900px; margin: 0 auto; padding: 1rem 1.5rem; }
.site-header { background: #16213e; padding: 0.75rem 1.5rem; }
.site-header nav { max-width: 900px; margin: 0 auto; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.site-header a { color: #7eb8da; text-decoration: none; }
.site-header a:hover { text-decoration: underline; }
.site-header .user { color: #aaa; margin-right: auto; }
.site-footer { text-align: center; padding: 1rem; color: #666; font-size: 0.9rem; margin-top: 2rem; }

h1, h2 { margin-top: 0; }
a { color: #7eb8da; }
.error { background: #5c2a2a; color: #f88; padding: 0.5rem 1rem; border-radius: 4px; margin: 1rem 0; }
.success { background: #2a4a2a; color: #8f8; padding: 0.5rem 1rem; border-radius: 4px; margin: 1rem 0; }

.voting-list { list-style: none; padding: 0; }
.voting-list li { margin: 0.5rem 0; padding: 0.75rem; background: #16213e; border-radius: 6px; }
.voting-list a { text-decoration: none; }
.voting-list .meta { font-size: 0.85rem; color: #888; margin-top: 0.25rem; }
.voting-list .status { display: inline-block; padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.8rem; }
.status-draft { background: #444; }
.status-upload { background: #2a4a5c; }
.status-voting { background: #4a3a2a; }
.status-ended { background: #2a4a2a; }
.status-archived { background: #3a3a3a; color: #999; }

form label { display: block; margin-top: 0.75rem; }
form input[type="text"], form input[type="number"], form select { width: 100%; max-width: 400px; padding: 0.5rem; margin-top: 0.25rem; background: #2a2a4a; border: 1px solid #444; color: #eee; border-radius: 4px; }
form button, .btn { display: inline-block; padding: 0.5rem 1rem; background: #3a5a7a; color: #eee; border: none; border-radius: 4px; cursor: pointer; text-decoration: none; font-size: 1rem; margin-top: 1rem; margin-right: 0.5rem; }
form button:hover, .btn:hover { background: #4a6a8a; }
.btn-secondary { background: #444; }
.btn-secondary:hover { background: #555; }
.btn-danger { background: #8a2a2a; }
.btn-danger:hover { background: #a03030; }

.admin-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.admin-table th, .admin-table td { padding: 0.5rem; text-align: left; border-bottom: 1px solid #333; }
.admin-table th { background: #16213e; }
.admin-table .actions { white-space: nowrap; }

.match-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 800px; margin: 2rem auto; }
.match-option { text-align: center; padding: 1rem; background: #16213e; border-radius: 8px; cursor: pointer; border: 3px solid transparent; }
.match-option:hover { border-color: #3a5a7a; }
.match-option img { max-width: 100%; height: auto; max-height: 280px; object-fit: contain; border-radius: 4px; }
.match-option p { margin: 0.5rem 0 0; }
.vote-form { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }
.vote-form button { min-width: 120px; }

.upload-zone { border: 2px dashed #444; border-radius: 8px; padding: 2rem; text-align: center; margin: 1rem 0; background: #16213e; }
.upload-zone input[type="file"] { margin-top: 0.5rem; }
.images-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-top: 1rem; }
.images-grid .img-card { background: #16213e; border-radius: 6px; overflow: hidden; }
.images-grid .img-card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.images-grid .img-card p { padding: 0.5rem; margin: 0; font-size: 0.85rem; }

.winner-card { max-width: 400px; margin: 2rem auto; text-align: center; padding: 2rem; background: #16213e; border-radius: 8px; }
.winner-card img { max-width: 100%; border-radius: 6px; }
