@font-face { font-family: "Unbounded"; font-style: normal; font-display: swap; font-weight: 200 900; src: url(fonts/unbounded-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Unbounded"; font-style: normal; font-display: swap; font-weight: 200 900; src: url(fonts/unbounded-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800; src: url(fonts/manrope-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800; src: url(fonts/manrope-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* Фирменные цвета Boyko's Team Hooligans: чёрный + розовый */
:root {
  color-scheme: dark;
  --bg: #000000;
  --card: #121212;
  --text: #f5f5f5;
  --muted: #8a8a8a;
  --accent: #ff8ac8;
  --accent-text: #000000;
  --line: rgba(255, 255, 255, .12);
  --ok: #ff8ac8;
  --bad: #ff5c5c;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { background: var(--bg); }
body {
  margin: 0; color: var(--text);
  font: 16px/1.4 "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
.wrap { max-width: 560px; margin: 0 auto; padding: 16px 16px 80px; }

/* Шапка в стиле логотипа */
.logo { text-align: center; padding: 18px 0 6px; position: relative; }
.logo svg { position: absolute; left: 50%; top: 50%; width: 330px; max-width: 96%; transform: translate(-50%, -46%); pointer-events: none; }
.logo .team { font: italic 800 11px/1 "Unbounded", sans-serif; color: var(--accent); letter-spacing: .08em; }
.logo .name { font: italic 900 38px/1 "Unbounded", sans-serif; color: var(--accent); letter-spacing: -.01em; transform: skewX(-8deg); display: inline-block; }
.subtitle { text-align: center; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .14em; margin: 14px 0 22px; }

h1 { font: 800 22px/1.2 "Unbounded", sans-serif; margin: 8px 0 16px; }
h2 { font: 700 12px/1.2 "Unbounded", sans-serif; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 26px 0 10px; }
.muted { color: var(--muted); font-size: 14px; }

.card { background: var(--card); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; }

input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: transparent;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 4px 0 10px;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
label { font-size: 13px; color: var(--muted); }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; min-width: 0; }

button {
  font: inherit; font-weight: 800; border: 0; border-radius: 10px; padding: 10px 16px;
  background: var(--accent); color: var(--accent-text); cursor: pointer; white-space: nowrap;
}
button:disabled { opacity: .45; cursor: default; }
button.ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); }
button.danger { background: transparent; color: var(--bad); border: 1px solid var(--line); }
button.small { padding: 6px 10px; font-size: 14px; }
button.wide { width: 100%; padding: 13px; }

/* Ленточка дат */
.days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: 0 0 auto; min-width: 58px; text-align: center; padding: 8px 6px; border-radius: 12px;
  background: var(--card); color: var(--text); border: 0; font-weight: 400;
}
.day b { display: block; font: 800 20px/1.15 "Unbounded", sans-serif; }
.day small { font-size: 12px; color: var(--muted); }
.day.active { background: var(--accent); color: var(--accent-text); }
.day.active small { color: inherit; opacity: .8; }

/* Карточка тренировки */
.ev { display: flex; align-items: center; gap: 14px; }
.ev .time { font: italic 800 19px/1 "Unbounded", sans-serif; min-width: 56px; font-variant-numeric: tabular-nums; }
.ev .info { flex: 1; min-width: 0; }
.ev .title { font-weight: 600; }
.ev .note { font-size: 13px; color: var(--muted); }
.bar { height: 4px; border-radius: 2px; background: var(--line); margin-top: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); }
.badge-ok { color: var(--accent); font-size: 13px; font-weight: 700; }

.empty { text-align: center; color: var(--muted); padding: 40px 0; }

#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--card); color: var(--text); border: 1px solid var(--accent); padding: 10px 16px; border-radius: 10px; font-size: 14px;
  transition: .2s; pointer-events: none; max-width: calc(100% - 32px); z-index: 10;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { border-color: var(--bad); color: var(--bad); }

/* Модалка */
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: none; align-items: flex-end; justify-content: center; z-index: 5; }
.sheet-bg.open { display: flex; }
.sheet { background: var(--card); border-top: 2px solid var(--accent); width: 100%; max-width: 560px; border-radius: 18px 18px 0 0; padding: 20px 16px 28px; }
.sheet h3 { margin: 0 0 4px; }

/* Админка */
.people { margin: 10px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.people li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.people li span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.people a { color: var(--accent); text-decoration: none; }
.actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; align-items: center; }
.actions input { width: 80px; margin: 0; padding: 6px 8px; }
.past { opacity: .55; }
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }

.card.mine { box-shadow: inset 3px 0 0 var(--accent); }
input::-webkit-calendar-picker-indicator { filter: invert(1); }
.add-person { display: flex; gap: 8px; margin-top: 10px; }
.add-person input { margin: 0; padding: 7px 10px; font-size: 14px; min-width: 0; }
.add-person button { flex: 0 0 auto; }
