*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: #111010; color: #e0e0e0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }

.site-header { background: #0d0d0d; border-bottom: 2px solid #C8102E; position: sticky; top: 0; z-index: 100; }
.nav { max-width: 1140px; margin: 0 auto; padding: 0 20px; height: 56px; display: flex; align-items: center; gap: 20px; }
.nav-logo { font-size: 20px; font-weight: 800; color: #D4A017; letter-spacing: -0.5px; }
.nav-logo span { color: #C8102E; }
.nav-links { display: flex; gap: 4px; list-style: none; margin-left: auto; }
.nav-links a { color: #999; font-size: 14px; padding: 6px 12px; border-radius: 6px; transition: color .15s, background .15s; }
.nav-links a:hover { color: #fff; background: #1e1e1e; }
.nav-links a.active { color: #D4A017; }

main { flex: 1; max-width: 1140px; width: 100%; margin: 0 auto; padding: 0 20px 48px; }

.hero { padding: 40px 0 28px; text-align: center; }
.hero h1 { font-size: clamp(22px, 4.5vw, 36px); font-weight: 800; color: #fff; line-height: 1.2; }
.hero h1 em { color: #D4A017; font-style: normal; }
.hero > p { color: #777; margin-top: 10px; font-size: 15px; }
.updated-badge { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; background: #181818; border: 1px solid #2a2a2a; border-radius: 20px; padding: 5px 14px; font-size: 12px; color: #555; }
.updated-badge::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; flex-shrink: 0; }

.breadcrumb { padding: 14px 0 6px; font-size: 13px; color: #555; }
.breadcrumb a { color: #777; transition: color .15s; }
.breadcrumb a:hover { color: #D4A017; }
.breadcrumb .sep { margin: 0 7px; color: #3a3a3a; }

.section { padding: 24px 0; }
.section-title { font-size: 11px; font-weight: 700; color: #D4A017; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid #1e1e1e; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 14px; }

.lottery-card { background: #181818; border: 1px solid #232323; border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s, transform .15s; }
.lottery-card:hover { border-color: #C8102E; transform: translateY(-1px); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.card-name { font-size: 15px; font-weight: 700; color: #f0f0f0; }
.card-meta { font-size: 11px; color: #555; text-align: right; line-height: 1.5; }
.numbers-row { display: flex; flex-wrap: wrap; gap: 8px; min-height: 46px; align-items: center; }
.num-ball { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; flex-shrink: 0; }
.num-ball.r { background: #C8102E; color: #fff; }
.num-ball.b { background: #004B8D; color: #fff; }
.num-ball.g { background: #D4A017; color: #111; }
.num-ball.ph { background: #1e1e1e; color: #3a3a3a; font-size: 13px; }
.card-footer { display: flex; justify-content: flex-end; margin-top: auto; }
.card-link { font-size: 12px; color: #C8102E; font-weight: 600; transition: color .15s; }
.card-link:hover { color: #ff3a5c; }

.draws-list { display: flex; flex-direction: column; gap: 12px; }
.draw-block { background: #181818; border: 1px solid #232323; border-radius: 12px; padding: 16px 20px; }
.draw-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; gap: 4px; }
.draw-name { font-size: 14px; font-weight: 700; color: #ddd; }
.draw-time { font-size: 12px; color: #555; }
.loading-msg { color: #444; font-size: 14px; padding: 16px 0; }
.no-results { color: #444; font-size: 14px; }

.seo-content { background: #141414; border: 1px solid #202020; border-radius: 12px; padding: 26px 30px; margin: 8px 0 24px; }
.seo-content h2 { color: #D4A017; font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.seo-content h3 { color: #bbb; font-size: 15px; font-weight: 600; margin: 18px 0 8px; }
.seo-content p { color: #888; font-size: 14px; line-height: 1.75; margin-bottom: 10px; }
.seo-content ul { color: #888; font-size: 14px; line-height: 1.75; padding-left: 22px; }
.seo-content li { margin-bottom: 5px; }
.seo-content strong { color: #ccc; font-weight: 600; }

.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 10px; }
.related-link { background: #181818; border: 1px solid #232323; border-radius: 8px; padding: 13px 15px; display: flex; justify-content: space-between; align-items: center; gap: 6px; transition: border-color .15s; }
.related-link:hover { border-color: #C8102E; }
.related-link span { font-size: 13px; font-weight: 600; color: #ddd; }
.related-link::after { content: '→'; color: #C8102E; font-size: 14px; flex-shrink: 0; }

.lottery-list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.lottery-list-item { background: #181818; border: 1px solid #232323; border-radius: 10px; padding: 16px 18px; display: block; transition: border-color .15s; }
.lottery-list-item:hover { border-color: #C8102E; }
.lottery-list-item h3 { font-size: 14px; font-weight: 700; color: #f0f0f0; }
.lottery-list-item p { font-size: 12px; color: #555; margin-top: 5px; line-height: 1.4; }
.lottery-list-item .see-link { font-size: 12px; color: #C8102E; font-weight: 600; margin-top: 10px; display: block; }

.index-seo { background: #141414; border: 1px solid #202020; border-radius: 12px; padding: 26px 30px; margin: 8px 0; }
.index-seo h2 { color: #D4A017; font-size: 19px; font-weight: 700; margin-bottom: 12px; }
.index-seo p { color: #888; font-size: 14px; line-height: 1.75; margin-bottom: 10px; }
.index-seo strong { color: #ccc; font-weight: 600; }

.site-footer { background: #0d0d0d; border-top: 1px solid #1a1a1a; padding: 22px 0; margin-top: auto; text-align: center; font-size: 13px; color: #3a3a3a; }
.site-footer a { color: #555; }
.site-footer a:hover { color: #888; }

@media (max-width: 640px) {
  .nav { padding: 0 14px; }
  main { padding: 0 14px 40px; }
  .cards-grid { grid-template-columns: 1fr; }
  .hero { padding: 28px 0 20px; }
  .seo-content, .index-seo { padding: 18px; }
  .seo-content h2, .index-seo h2 { font-size: 17px; }
}