:root { --ink: #2b2d5b; --cream: #fffdf5; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: linear-gradient(#7fd6ff, #c9f0ff); color: var(--ink);
  font-family: "Baloo 2", "Comic Sans MS", "Segoe UI", system-ui, sans-serif; }
[dir=rtl] body, body[dir=rtl] { font-family: "Noto Kufi Arabic", "Segoe UI", Tahoma, system-ui, sans-serif; }
main { max-width: 900px; margin: 0 auto; padding: 16px; }
header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
header h1 { margin: 0; flex: 1; font-size: clamp(26px, 5vw, 40px); color: #fff; -webkit-text-stroke: 1.5px var(--ink); text-shadow: 0 4px 0 var(--ink); }
a { color: #1f5fbf; }
.btn { font: inherit; font-weight: 800; border: 3px solid var(--ink); border-radius: 16px; background: #fff; color: var(--ink); padding: 8px 14px;
  box-shadow: 0 4px 0 var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.btn.on { background: #ffe45c; }
.btn.play { background: #2fbf71; color: #fff; }
.bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
select { font: inherit; font-weight: 700; border: 3px solid var(--ink); border-radius: 14px; padding: 7px 10px; background: #fff; color: var(--ink); max-width: 100%; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .cols { grid-template-columns: 1fr; } }
.card { background: var(--cream); border: 4px solid var(--ink); border-radius: 22px; box-shadow: 0 7px 0 var(--ink); padding: 12px 14px; }
.card h2 { margin: 0 0 8px; font-size: 19px; }
ol.rows { list-style: none; margin: 0; padding: 0; }
ol.rows li { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 12px; font-weight: 700; }
ol.rows li:nth-child(odd) { background: rgba(43, 45, 91, .05); }
ol.rows li b { min-width: 2em; text-align: center; color: #ff7a3d; font-size: 18px; }
ol.rows li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
ol.rows li i { font-style: normal; font-weight: 800; }
ol.rows li.top1 b { color: #e0a100; } ol.rows li.new { animation: glow 1.4s; }
@keyframes glow { from { background: #c9f7dc; } }
.note { opacity: .7; text-align: center; padding: 10px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; }
.live::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #2fbf71; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.prose { line-height: 1.6; } .prose h2 { margin-top: 18px; }
footer { text-align: center; margin: 22px 0 8px; font-size: 14px; }
