:root {
  --page: #FAF9F5; --surface: #FFFFFF; --bone: #F0EEE6; --ink: #231F20; --muted: #6F6A6C;
  --line: rgba(35, 31, 32, .12); --primary: #7857FF; --primary-soft: #EDE8FF; --teal: #00A09D; --teal-soft: #E1F4F2;
  --danger: #C33F36; --r-sm: 8px; --r-md: 10px; --r-lg: 15px;
  --font: "Instrument Sans", "IBM Plex Sans Arabic", -apple-system, system-ui, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--page); }
body { margin: 0; color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.45; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 640px; margin: 0 auto; padding: 28px 20px 80px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand svg { height: 20px; width: auto; display: block; }
.brand-sub { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line); line-height: 1; }
.who { display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
.who a { color: var(--primary); }

.search { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
input, select, button { font: inherit; color: inherit; }
input[type=search], input[type=password], select {
  width: 100%; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); outline: none; appearance: none; -webkit-appearance: none;
}
input:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
select { padding-right: 32px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' fill='none' stroke='%236F6A6C' stroke-width='1.5'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; }
.count { margin: 12px 0 4px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.count a { color: var(--primary); text-transform: none; letter-spacing: 0; }

.group { margin-top: 24px; }
.month { margin: 0 0 6px; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.list li { border-bottom: 1px solid var(--line); }
.item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px; }
.row { display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; align-items: center; padding: 12px 6px; border-radius: var(--r-sm); margin: 0 -6px; min-width: 0; }
.row:hover { background: var(--bone); }
.dl { display: inline-flex; padding: 8px; border-radius: var(--r-sm); color: var(--muted); }
.dl:hover { background: var(--primary-soft); color: var(--primary); }
.btn svg { margin-right: 8px; }
.when { display: flex; flex-direction: column; line-height: 1.2; }
.day { font-size: 13px; font-weight: 500; }
.time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.title { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.people { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.dur { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tag { display: inline-block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; padding: 3px 7px; border-radius: var(--r-sm); background: var(--primary-soft); color: var(--primary); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); line-height: 1.2; }
.tag-teal { background: var(--teal-soft); color: var(--teal); }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }

.back { display: inline-block; font-size: 12px; color: var(--primary); margin-bottom: 14px; }
.back::before { content: "←"; margin-right: 6px; }
.h { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 8px; line-height: 1.25; }
.meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.player { background: #000; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 9; }
.player video { width: 100%; height: 100%; display: block; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: var(--r-sm); background: var(--primary); color: #fff; border: 0; cursor: pointer; font-weight: 500; }
.btn:hover { background: #6A4AE6; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: var(--bone); }
.label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 500; margin: 0 0 8px; }
.people-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.people-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.muted { color: var(--muted); }
.foot { font-size: 12px; margin-top: 24px; }

.card { max-width: 380px; margin: 60px auto 0; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 12px; }
.card .h { margin: 0; }
.card .btn { width: 100%; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.error { color: var(--danger); font-size: 13px; margin: 0; }

@media (max-width: 520px) {
  .row { grid-template-columns: 60px 1fr; }
  .side { grid-column: 2; flex-direction: row; align-items: center; gap: 8px; }
  .brand-sub, .who span { display: none; }
}

.people-block { margin-bottom: 28px; }
.mom-block { margin-top: 28px; }
.mom { font-size: 14.5px; line-height: 1.55; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; }
.mom h1, .mom h2, .mom h3, .mom h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 500; margin: 18px 0 6px; }
.mom > :first-child { margin-top: 0; }
.mom > :last-child { margin-bottom: 0; }
.mom p { margin: 0 0 8px; }
.mom ul, .mom ol { margin: 0 0 10px; padding-inline-start: 18px; }
.mom li > ul, .mom li > ol { margin: 2px 0 4px; }
.mom li { margin: 2px 0; }
.mom table { border-collapse: collapse; width: 100%; margin: 8px 0 12px; font-size: 13.5px; }
.mom th, .mom td { text-align: start; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.mom th:first-child, .mom td:first-child { padding-inline-start: 0; }
.mom th:last-child, .mom td:last-child { padding-inline-end: 0; white-space: nowrap; }
.mom tr > *:nth-child(2) { white-space: nowrap; }
.mom th { font-weight: 500; color: var(--muted); }
.mom strong { font-weight: 600; }
