:root{
  --bg:#ffffff; --surface:#f5f5f7; --line:#e5e5ea; --text:#1d1d1f; --muted:#6e6e73; --soft:#86868b;
  --c-sport:#0a84ff; --c-show:#bf5af2; --c-exp:#30b15b; --c-zone:#ff9f0a; --c-food:#ff6482;
  --radius:16px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font-family:"IBM Plex Sans Arabic",system-ui,sans-serif;font-size:15px;line-height:1.6;-webkit-font-smoothing:antialiased}
a{color:inherit}
button{font:inherit;color:inherit;cursor:pointer}
.wrap{max-width:1120px;margin:0 auto;padding:0 20px}
.muted{color:var(--muted)}

/* header */
.top{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.85);backdrop-filter:saturate(180%) blur(16px);border-bottom:1px solid var(--line)}
.top-row{display:flex;align-items:center;justify-content:space-between;height:60px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none}
.brand-mark{width:28px;height:28px;border-radius:50%;border:2.5px solid var(--text);position:relative}
.brand-mark::before,.brand-mark::after{content:"";position:absolute;background:var(--text);border-radius:2px;left:50%;bottom:50%;transform-origin:bottom center}
.brand-mark::before{width:2.5px;height:9px;margin-left:-1.25px}
.brand-mark::after{width:2.5px;height:7px;margin-left:-1.25px;transform:rotate(90deg)}
.brand-text{font-weight:700;font-size:17px;letter-spacing:.2px;display:flex;flex-direction:column;line-height:1.15}
.brand-text small{font-weight:500;font-size:11.5px;color:var(--muted)}
.top-nav{display:flex;gap:20px;font-size:14px}
.top-nav a{text-decoration:none;color:var(--muted)}
.top-nav a:hover{color:var(--text)}

/* hero */
.hero{padding:40px 0 20px}
.hero-date{margin:0;color:var(--muted);font-weight:500}
.hero h1{margin:4px 0 16px;font-size:34px;line-height:1.25;font-weight:700}
.stats{display:flex;gap:10px;flex-wrap:wrap}
.stat{background:var(--surface);border-radius:12px;padding:10px 16px;min-width:120px}
.stat b{display:block;font-size:22px;font-weight:700}
.stat span{font-size:13px;color:var(--muted)}

/* panels */
.panel{margin:20px 0 36px}
.panel h2{font-size:22px;margin:0 0 4px}
.sec-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.seg{display:inline-flex;background:var(--surface);border-radius:10px;padding:3px}
.seg button{border:0;background:transparent;padding:7px 18px;border-radius:8px;font-weight:500;color:var(--muted)}
.seg button.on{background:#fff;color:var(--text);box-shadow:0 1px 3px rgba(0,0,0,.08)}
.seg.small button{padding:5px 12px;font-size:13px}
.pager{display:flex;align-items:center;gap:8px}
.pager button{border:1px solid var(--line);background:#fff;width:34px;height:34px;border-radius:50%;font-size:18px;line-height:1}
.pager button.ghost{width:auto;padding:0 14px;border-radius:17px;font-size:13px}
#rangeLabel{min-width:150px;text-align:center;font-weight:600}
.filters{display:flex;flex-direction:column;gap:8px;margin-bottom:18px}
.chips{display:flex;gap:6px;flex-wrap:wrap}
.chip{border:1px solid var(--line);background:#fff;border-radius:999px;padding:5px 13px;font-size:13px;color:var(--muted);display:inline-flex;align-items:center;gap:6px}
.chip.on{background:var(--text);border-color:var(--text);color:#fff}
.dot{width:8px;height:8px;border-radius:50%;display:inline-block;flex:none}

/* cards */
.group-title{font-size:14px;font-weight:600;color:var(--muted);margin:22px 0 10px}
.list{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}
.card{background:var(--surface);border-radius:var(--radius);padding:16px 18px;display:flex;flex-direction:column;gap:6px;cursor:pointer;border:1px solid transparent;transition:border-color .15s,transform .15s;text-align:right}
.card:hover{border-color:var(--line);transform:translateY(-1px)}
.card-top{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--muted)}
.city{font-size:11px;font-weight:700;letter-spacing:.5px;background:#fff;border:1px solid var(--line);border-radius:6px;padding:1px 6px;color:var(--text);direction:ltr}
.card h3{margin:0;font-size:16.5px;line-height:1.4}
.meta{font-size:13px;color:var(--muted);display:flex;gap:12px;flex-wrap:wrap}
.card p{margin:0;font-size:13.5px;color:#3a3a3c}
.list.compact{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
.list.compact .card{padding:12px 14px}
.empty{background:var(--surface);border-radius:var(--radius);padding:28px;text-align:center;color:var(--muted)}

/* week */
.week{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}
.wday{background:var(--surface);border-radius:14px;padding:10px;min-height:170px;display:flex;flex-direction:column;gap:6px}
.wday.today{outline:2px solid var(--text)}
.wday-h{display:flex;justify-content:space-between;align-items:baseline;font-size:13px;color:var(--muted)}
.wday-h b{font-size:20px;color:var(--text)}
.mini{background:#fff;border-radius:9px;padding:7px 9px;font-size:12.5px;line-height:1.4;cursor:pointer;border:1px solid transparent;text-align:right}
.mini:hover{border-color:var(--line)}
.mini small{display:block;color:var(--muted);font-size:11.5px}
.ongo{margin-top:auto;font-size:11.5px;color:var(--soft)}

/* month */
.month{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.mh{font-size:12px;color:var(--muted);text-align:center;padding-bottom:4px}
.mcell{background:var(--surface);border-radius:12px;min-height:84px;padding:8px;display:flex;flex-direction:column;gap:4px;border:1px solid transparent;cursor:pointer;text-align:right}
.mcell.out{background:transparent;color:var(--soft);cursor:default}
.mcell.today{border-color:var(--text)}
.mcell.sel{background:var(--text);color:#fff}
.mcell.sel .mcount{color:#d1d1d6}
.mnum{font-weight:600;font-size:14px}
.mdots{display:flex;gap:3px;flex-wrap:wrap}
.mcount{font-size:11px;color:var(--muted);margin-top:auto}

/* news */
.news{display:flex;flex-direction:column;gap:10px}
.nitem{display:flex;gap:16px;background:var(--surface);border-radius:var(--radius);padding:16px 18px}
.nitem time{font-size:12.5px;color:var(--muted);white-space:nowrap;min-width:84px}
.nitem h3{margin:0 0 4px;font-size:15.5px}
.nitem p{margin:0;font-size:13.5px;color:#3a3a3c}
.tag{font-size:11px;border-radius:6px;padding:1px 7px;margin-inline-start:6px;vertical-align:middle}
.tag.ok{background:#e4f6ea;color:#1f7a3f}
.tag.no{background:#fff2dc;color:#9a5b00}
.src{font-size:12.5px;color:var(--muted);margin-top:6px;display:inline-block}

/* sheet */
.sheet{position:fixed;inset:0;background:rgba(0,0,0,.32);z-index:50;display:flex;align-items:flex-end;justify-content:center}
.sheet[hidden]{display:none}
.sheet-card{background:#fff;width:100%;max-width:560px;border-radius:20px 20px 0 0;padding:26px 24px 30px;position:relative;max-height:88vh;overflow:auto}
@media(min-width:700px){.sheet{align-items:center}.sheet-card{border-radius:20px}}
.close{position:absolute;left:16px;top:14px;border:0;background:var(--surface);width:32px;height:32px;border-radius:50%;font-size:20px;line-height:1}
.sheet-card h3{font-size:21px;margin:8px 0 10px}
.rows{display:grid;grid-template-columns:auto 1fr;gap:8px 16px;font-size:14px;margin:14px 0 20px}
.rows dt{color:var(--muted)}
.rows dd{margin:0}
.book{display:block;text-align:center;background:var(--text);color:#fff;text-decoration:none;border-radius:12px;padding:12px;font-weight:600}
.note{font-size:12.5px;color:var(--muted);margin-top:10px}

.foot{border-top:1px solid var(--line);padding:22px 0 34px;font-size:13px}
.foot p{margin:4px 0}

@media(max-width:820px){
  .week{grid-template-columns:1fr}
  .wday{min-height:auto}
  .hero h1{font-size:27px}
  .mcell{min-height:58px;padding:6px}
  .mcount{display:none}
  .top-nav{gap:14px}
}
@media(max-width:520px){
  .toolbar{flex-direction:column;align-items:stretch}
  .seg{justify-content:space-between}
  .seg button{flex:1}
  .pager{justify-content:space-between}
  .list{grid-template-columns:1fr}
  .nitem{flex-direction:column;gap:4px}
}

.thumb{width:100%;height:150px;object-fit:cover;border-radius:12px;margin:4px 0 2px}
.list.compact .thumb{display:none}
.sheet-img{width:100%;height:220px;object-fit:cover;border-radius:14px;margin-top:10px}
