:root {
  --bg: #0b0a0b; --surface: #161214; --surface-2: #1f191b; --red: #b3121f; --red-soft: #e0333f;
  --ink: #f7f2f0; --ink-2: #b3a7a3; --hair: #2b2224; --radius: 18px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: "SF Arabic", "Geeza Pro", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  direction: rtl; line-height: 1.6; -webkit-text-size-adjust: 100%;
}
.app { max-width: 720px; margin: 0 auto; padding: 16px 16px 96px; }
.boot { padding: 40px 0; text-align: center; color: var(--ink-2); }
a { color: inherit; }
img { max-width: 100%; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0 10px; }
.brand { display: flex; align-items: baseline; gap: 8px; }
.logo { font-size: 24px; font-weight: 800; letter-spacing: .12em; }
.tagline { font-size: 12px; color: var(--ink-2); }
.unofficial { font-size: 10px; color: #c9a2a5; border: 1px solid #3a2226; border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; text-decoration: none; font-size: 15px; }

.nav { position: fixed; inset-inline: 0; bottom: 0; z-index: 30; display: flex; background: rgba(11,10,11,.96); border-top: 1px solid var(--hair); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); backdrop-filter: blur(8px); }
.nav a { flex: 1 1 0; text-align: center; font-size: 11px; color: var(--ink-2); text-decoration: none; padding: 6px 2px; border-radius: 12px; }
.nav a[aria-current="page"] { color: #fff; background: var(--red); }
.nav .ico { display: block; font-size: 17px; line-height: 1.2; }

.h1 { font-size: 23px; margin: 0; font-weight: 800; }
.h2 { font-size: 16px; margin: 0 0 6px; font-weight: 700; }
.sub { margin: 0; font-size: 13px; color: var(--ink-2); }
.hint { font-size: 12px; color: var(--ink-2); }
.page { display: flex; flex-direction: column; gap: 18px; padding-top: 8px; }
.sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.sechead h2 { margin: 0; font-size: 17px; font-weight: 800; }
.more { font-size: 13px; color: #e8797f; text-decoration: none; }
.empty { font-size: 14px; color: var(--ink-2); margin: 0; }

.hero { position: relative; border-radius: 20px; overflow: hidden; background: var(--surface); min-height: 230px; display: flex; align-items: flex-end; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,10,11,.2), rgba(11,10,11,.92) 78%); }
.hero-body { position: relative; z-index: 1; padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; width: 100%; }
.badge { align-self: flex-start; font-size: 11px; background: var(--red); color: #fff; padding: 4px 10px; border-radius: 999px; }
.hero-title { margin: 0; font-size: 30px; font-weight: 800; }
.hero-meta { margin: 0; font-size: 13px; color: #e3d8d5; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: 14px; text-decoration: none; color: var(--ink); background: transparent; border: 1px solid #3a3033; cursor: pointer; font-family: inherit; }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }
.btn.on { border-color: var(--red-soft); color: #ffb9be; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn.sp { background: #1ed760; border-color: #1ed760; color: #04120a; font-weight: 700; }

.spcard { display: flex; align-items: center; gap: 12px; text-decoration: none; background: #101010; border: 1px solid #232323; border-radius: 14px; padding: 10px; }
.spcard-cover { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
.spcard-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.spcard-title { font-size: 15px; font-weight: 700; }
.spcard-note { font-size: 11px; color: #1ed760; }
.spcard-play { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: #1ed760; color: #04120a; display: flex; align-items: center; justify-content: center; }
.player { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--hair); border-radius: 16px; padding: 12px; }
.widget { width: 100%; border: 0; border-radius: 12px; display: block; background: #000; }

.strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.tile { flex: 0 0 118px; width: 118px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.tile-ar { font-size: 13px; font-weight: 700; line-height: 1.3; }
.tile-meta { font-size: 11px; color: var(--ink-2); }
.cover { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 12px; display: block; background: var(--surface-2); }
.cover-fb { display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; color: #f0d8d9; background: linear-gradient(140deg, #7a0b14, #1b1214); }
.cover-fb.t1 { background: linear-gradient(150deg, #3a1016, #0f0b0c 70%); }
.cover-fb.t2 { background: linear-gradient(120deg, #1d1214, #5a0a12); }
.cover-fb.t3 { background: linear-gradient(160deg, #26090d, #140f10 60%, #4a0a11); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.list { display: flex; flex-direction: column; gap: 2px; }
.song, .track { display: flex; align-items: center; gap: 6px; padding: 6px 0; border-bottom: 1px solid var(--hair); }
.song-main { flex: 1 1 auto; display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; min-width: 0; }
.song-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.song-ar { font-size: 15px; font-weight: 700; }
.song-meta { font-size: 11px; color: var(--ink-2); }
.star { flex: 0 0 auto; width: 44px; height: 44px; background: none; border: 0; color: #8a7f7c; font-size: 19px; cursor: pointer; }
.star.on { color: #f2c14e; }
.track-num { flex: 0 0 22px; font-size: 12px; color: var(--ink-2); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid #3a3033; background: transparent; color: var(--ink-2); font-size: 13px; font-family: inherit; cursor: pointer; }
.chip.on { background: var(--surface-2); color: var(--ink); border-color: #5a4a4e; }

.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--hair); border-radius: 14px; padding: 0 12px; }
.search input { flex: 1 1 auto; min-height: 46px; background: none; border: 0; color: var(--ink); font-size: 15px; font-family: inherit; outline: none; }

.albumhead, .songhead { display: flex; gap: 14px; align-items: flex-start; }
.albumhead .cover, .songhead .cover { width: 132px; flex: 0 0 132px; }
.songhead .cover { width: 140px; flex: 0 0 140px; }
.back { font-size: 13px; color: #e8797f; text-decoration: none; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.tag { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: #e8d4d6; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

.note { background: var(--surface); border: 1px solid var(--hair); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.note.warn { border-color: #4a2a2d; background: #1a1315; }
.note p { margin: 0; font-size: 13px; color: var(--ink-2); }

.links { display: flex; flex-direction: column; gap: 10px; }
.links a { font-size: 14px; color: #e8797f; text-decoration: none; border-bottom: 1px solid var(--hair); padding-bottom: 10px; }

.moods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .moods { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mood { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: start; padding: 14px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--hair); color: var(--ink); font-family: inherit; cursor: pointer; }
.mood.on { border-color: var(--red); background: #1e1113; }
.mood-ar { font-size: 15px; font-weight: 700; }
.mood-hint { font-size: 11px; color: var(--ink-2); }

.composer { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--hair); border-radius: 16px; padding: 12px; }
textarea, .field input { width: 100%; background: var(--surface); border: 1px solid var(--hair); border-radius: 12px; padding: 12px; color: var(--ink); font-size: 15px; font-family: inherit; outline: none; }
textarea { background: none; border: 0; resize: vertical; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 12px; color: var(--ink-2); }

.post { border-bottom: 1px solid var(--hair); padding: 12px 0; display: flex; flex-direction: column; gap: 6px; }
.post-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.post-author { font-size: 14px; font-weight: 700; }
.post-handle { font-size: 12px; color: var(--ink-2); }
.post-text { margin: 0; font-size: 14px; color: #efe6e3; }
.post-foot { display: flex; align-items: center; gap: 12px; }
.like { background: none; border: 0; padding: 6px 0; min-height: 36px; color: var(--ink-2); font-size: 13px; font-family: inherit; cursor: pointer; }
.like.on { color: #f0757c; }

.poll { display: flex; flex-direction: column; gap: 8px; }
.poll-opt { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--hair); color: var(--ink); font-size: 14px; font-family: inherit; cursor: pointer; }
.poll-opt.on { border-color: var(--red); background: #1e1113; }
.poll-bar { height: 4px; border-radius: 999px; background: var(--red); margin-top: 4px; }

.news { border-bottom: 1px solid var(--hair); padding: 12px 0; display: flex; flex-direction: column; gap: 6px; }
.news-date { font-size: 11px; color: #e8797f; }
.news p { margin: 0; font-size: 13px; color: var(--ink-2); }
.src { font-size: 12px; color: #e8797f; text-decoration: none; }

.concert { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--hair); border-radius: 16px; padding: 14px; }
.countdown { display: flex; gap: 8px; }
.countdown div { flex: 1 1 0; background: #1e1113; border: 1px solid #3a2226; border-radius: 12px; padding: 8px; text-align: center; }
.countdown strong { display: block; font-size: 18px; }
.countdown span { font-size: 10px; color: var(--ink-2); }

.profilehead { display: flex; align-items: center; gap: 14px; }
.profileavatar { width: 64px; height: 64px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stats div { background: var(--surface); border: 1px solid var(--hair); border-radius: 14px; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.stats strong { font-size: 18px; }
.stats span { font-size: 11px; color: var(--ink-2); }

.foot { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--hair); display: flex; flex-direction: column; gap: 8px; }
.foot p { margin: 0; font-size: 11px; color: var(--ink-2); }
.credit { color: #d9c9c6 !important; }

.toast { position: fixed; inset-inline: 16px; bottom: 84px; background: #241d1f; border: 1px solid #4a2a2d; color: var(--ink); padding: 12px 14px; border-radius: 14px; font-size: 13px; z-index: 40; }
