* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #0f0f13; color: #e0e0e0; min-height: 100vh; }

/* Navbar */
.navbar { background: #1a1a2e; border-bottom: 1px solid #2d2d4a; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; height: 56px; position: sticky; top: 0; z-index: 100; }
.nav-brand { font-size: 1.1rem; font-weight: 700; color: #a78bfa; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { color: #b0b0c8; text-decoration: none; font-size: .9rem; transition: color .2s; }
.nav-links a:hover { color: #a78bfa; }
.nav-user { font-size: .8rem; color: #666; background: #2d2d4a; padding: .25rem .75rem; border-radius: 20px; }
.btn-logout { color: #f87171 !important; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }

/* Alerts */
.alert { padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: .9rem; }
.alert-success { background: #14532d44; border: 1px solid #16a34a; color: #4ade80; }
.alert-danger { background: #7f1d1d44; border: 1px solid #dc2626; color: #f87171; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1.2rem; border-radius: 8px; border: none; cursor: pointer; font-size: .9rem; font-weight: 500; text-decoration: none; transition: all .2s; }
.btn-primary { background: #7c3aed; color: #fff; }
.btn-primary:hover { background: #6d28d9; }
.btn-secondary { background: #2d2d4a; color: #c0c0e0; border: 1px solid #3d3d5a; }
.btn-secondary:hover { background: #3d3d5a; }
.btn-ghost { background: transparent; color: #888; border: 1px solid #333; }
.btn-ghost:hover { background: #1a1a2e; color: #aaa; }
.btn-danger { background: #7f1d1d; color: #f87171; border: 1px solid #dc2626; }
.btn-danger:hover { background: #991b1b; }
.btn-sm { padding: .3rem .75rem; font-size: .8rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-large { padding: 1rem; font-size: 1rem; }

/* Page header */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; gap: 1rem; }
.page-header h1 { font-size: 1.6rem; color: #e0e0f0; }

/* Search bar */
.search-bar { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.5rem; background: #1a1a2e; padding: 1rem; border-radius: 10px; border: 1px solid #2d2d4a; }
.search-bar input, .search-bar select { background: #0f0f13; border: 1px solid #3d3d5a; color: #e0e0e0; padding: .5rem .75rem; border-radius: 6px; font-size: .9rem; flex: 1; min-width: 140px; }
.search-bar input:focus, .search-bar select:focus { outline: none; border-color: #7c3aed; }

/* Streamer grid */
.streamer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.streamer-card { background: #1a1a2e; border: 1px solid #2d2d4a; border-radius: 12px; padding: 1.25rem; cursor: pointer; transition: all .2s; }
.streamer-card:hover { border-color: #7c3aed; transform: translateY(-2px); box-shadow: 0 4px 20px rgba(124,58,237,.2); }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.card-header h3 { font-size: 1rem; color: #e0e0f0; }
.followers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: 1rem; }
.follower-item { display: flex; align-items: center; gap: .4rem; font-size: .85rem; background: #0f0f13; padding: .4rem .6rem; border-radius: 6px; }
.card-footer { border-top: 1px solid #2d2d4a; padding-top: .75rem; }

/* Badges */
.badge { display: inline-block; padding: .2rem .6rem; border-radius: 20px; font-size: .75rem; font-weight: 600; }
.badge-green { background: #14532d44; color: #4ade80; border: 1px solid #16a34a; }
.badge-gray { background: #1f1f2e; color: #888; border: 1px solid #333; }
.badge-purple { background: #4c1d9544; color: #c4b5fd; border: 1px solid #7c3aed; }
.badge-blue { background: #1e3a5f44; color: #93c5fd; border: 1px solid #3b82f6; }
.badge-orange { background: #7c2d1244; color: #fb923c; border: 1px solid #ea580c; }

/* Detail page */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 768px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-card { background: #1a1a2e; border: 1px solid #2d2d4a; border-radius: 12px; padding: 1.5rem; }
.detail-card h2 { font-size: 1.1rem; color: #a78bfa; margin-bottom: 1rem; }
.detail-card h3 { font-size: .95rem; color: #888; margin: 1.25rem 0 .75rem; text-transform: uppercase; letter-spacing: .05em; }
.info-table { width: 100%; border-collapse: collapse; }
.info-table td { padding: .5rem 0; font-size: .9rem; border-bottom: 1px solid #1f1f2e; }
.info-table td:first-child { color: #888; width: 40%; }
.followers-detail { display: flex; flex-direction: column; gap: .5rem; }
.follower-row { display: flex; align-items: center; gap: .75rem; padding: .5rem; background: #0f0f13; border-radius: 6px; font-size: .9rem; }
.follower-row a { color: #7c3aed; text-decoration: none; flex: 1; }
.follower-row strong { color: #e0e0f0; }
.follower-row small { color: #666; font-size: .75rem; }
.games-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.token-box { background: #0f0f13; border: 1px solid #3d3d5a; border-radius: 8px; padding: .75rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .85rem; }
.token-box input { flex: 1; background: transparent; border: none; color: #a78bfa; font-size: .8rem; min-width: 0; }
.games-list { display: flex; flex-direction: column; gap: .4rem; }
.game-toggle-form { margin: 0; }
.game-toggle { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .6rem .75rem; background: #0f0f13; border: 1px solid #2d2d4a; border-radius: 8px; color: #c0c0e0; cursor: pointer; font-size: .9rem; text-align: left; transition: all .2s; }
.game-toggle:hover { border-color: #7c3aed; background: #1a1a2e; }
.game-toggle.active { border-color: #16a34a44; background: #14532d22; color: #4ade80; }

/* Forms */
.form-container { max-width: 600px; background: #1a1a2e; border: 1px solid #2d2d4a; border-radius: 12px; padding: 2rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: .4rem; font-size: .9rem; color: #b0b0c8; }
.form-group input, .form-group select { width: 100%; background: #0f0f13; border: 1px solid #3d3d5a; color: #e0e0e0; padding: .6rem .75rem; border-radius: 8px; font-size: .9rem; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: #7c3aed; }
.form-check { display: flex; align-items: center; gap: .5rem; }
.form-check input { width: auto; }
.form-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* List items */
.list-container { display: flex; flex-direction: column; gap: .5rem; }
.list-item { display: flex; align-items: center; justify-content: space-between; background: #1a1a2e; border: 1px solid #2d2d4a; border-radius: 8px; padding: .75rem 1rem; }

/* Auth */
.auth-container { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 80vh; }
.auth-container h1 { font-size: 1.8rem; color: #a78bfa; margin-bottom: 1.5rem; }
.auth-box { background: #1a1a2e; border: 1px solid #2d2d4a; border-radius: 14px; padding: 2.5rem; width: 100%; max-width: 420px; }
.auth-box h2 { margin-bottom: 1.5rem; font-size: 1.2rem; }
.text-muted { color: #888; font-size: .9rem; margin-bottom: 1.5rem; }

/* Vote page */
.vote-container { max-width: 600px; margin: 3rem auto; padding: 2rem; background: #1a1a2e; border: 1px solid #2d2d4a; border-radius: 14px; }
.vote-container h1 { font-size: 1.5rem; margin-bottom: .5rem; }
.vote-container p { color: #888; margin-bottom: 1.5rem; font-size: .9rem; }
.vote-games { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.5rem; }
.vote-game-item { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; background: #0f0f13; border: 1px solid #2d2d4a; border-radius: 8px; cursor: pointer; font-size: .95rem; transition: all .2s; }
.vote-game-item:hover { border-color: #7c3aed; }
.vote-game-item.checked { border-color: #16a34a; background: #14532d22; color: #4ade80; }
.vote-game-item input { display: none; }
.text-center { text-align: center; }
.success-icon, .error-icon { font-size: 4rem; margin: 1.5rem 0; }

/* Error page */
.error-page { text-align: center; padding: 4rem 1rem; }
.error-page h1 { font-size: 2rem; margin-bottom: 1rem; color: #f87171; }
.error-page p { color: #888; margin-bottom: 1.5rem; }

/* Empty state */
.empty-state { color: #555; text-align: center; padding: 2rem; font-size: .95rem; }
.empty-state a { color: #7c3aed; }

/* Commentaires */
.comments-list { display:flex;flex-direction:column;gap:.75rem; }
.comment-item { background:#0f0f13;border:1px solid #2d2d4a;border-radius:8px;padding:.75rem 1rem; }
.comment-header { display:flex;align-items:center;gap:.75rem;margin-bottom:.4rem;font-size:.85rem; }
.comment-date { color:#666;font-size:.8rem;flex:1; }
.comment-content { font-size:.9rem;color:#c0c0e0;line-height:1.5; }

/* Event card */
.event-card { text-decoration:none;color:inherit;transition:all .2s; }
.event-card:hover { border-color:#7c3aed;transform:translateX(3px); }
