/*
 * assets/templates/clubber/live.css — ФОТО-ОНЛАЙН-1: «живая» страница фото.
 *
 * Страницу открывают С ТЕЛЕФОНА по QR-коду, поэтому здесь всё крупное и
 * одноколоночное: одна большая кнопка «Выбрать фото», превью в три колонки,
 * кнопка «Опубликовать» во всю ширину. Правила подключаются последними, после
 * common.css и mobile.css, и идут от класса .live-wrap, чтобы ничего в текущем
 * дизайне не задеть.
 */

.live-wrap { max-width: 720px; margin: 0 auto; padding: 16px 12px 40px; box-sizing: border-box; }

/* --- блок-приглашение на странице площадки и события ----------------------
   Тот же класс на двух страницах: #livephotos (place/place_v2.tpl) и
   .live-event-block (poster/main_v2.tpl). Строка «текст + кнопка», на телефоне
   кнопка встаёт во всю ширину и остаётся крупной — по ней нажимают одной рукой. */
#livephotos {
  background: #101c22; color: #fff; padding: 22px 0;
}
.live-event-block {
  background: #f4f8fa; border-radius: 10px; padding: 18px;
  margin-top: 24px; margin-bottom: 24px; box-sizing: border-box;
}
.live-place-row {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  flex-wrap: wrap;
}
.live-place-text { flex: 1 1 320px; min-width: 0; }
#livephotos .live-place-count { font-size: 19px; font-weight: 600; line-height: 1.3; }
.live-event-block .live-place-count { font-size: 18px; font-weight: 600; color: #101c22; line-height: 1.3; }
#livephotos .live-place-count b { color: #00aeef; }
.live-event-block .live-place-count b { color: #00aeef; }
#livephotos .live-place-sub { font-size: 14px; color: #9fb0b9; margin-top: 6px; line-height: 1.45; }
.live-event-block .live-place-sub { font-size: 14px; color: #55636b; margin-top: 6px; line-height: 1.45; }

.live-place-btn {
  flex: 0 0 auto; display: inline-block; box-sizing: border-box;
  padding: 15px 30px; border-radius: 10px; background: #d0021b; color: #fff !important;
  font-size: 18px; font-weight: 700; text-decoration: none; white-space: nowrap;
  text-align: center;
}
.live-place-btn:hover { background: #b00117; }

.live-place-authors {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: 14px; line-height: 1.9;
}
.live-event-block .live-place-authors { border-top-color: #dde6ea; }
#livephotos .live-place-authors { color: #cfdbe1; }
.live-event-block .live-place-authors { color: #55636b; }
.live-place-authors-label { text-transform: uppercase; font-size: 11px; letter-spacing: .4px; opacity: .75; margin-right: 8px; }
.live-place-author { white-space: nowrap; }
.live-place-author i {
  font-style: normal; margin-left: 5px; padding: 1px 6px; border-radius: 9px;
  background: rgba(255,255,255,.14); font-size: 12px;
}
.live-event-block .live-place-author i { background: #e3edf2; color: #3d4a52; }
.live-place-sep { margin: 0 6px; opacity: .5; }
.live-place-album { display: block; margin-top: 8px; color: #00aeef; text-decoration: none; }

@media (max-width: 620px) {
  .live-place-row { display: block; }
  .live-place-btn { display: block; width: 100%; margin-top: 14px; padding: 16px 10px; font-size: 19px; }
  #livephotos { padding: 18px 0; }
  #livephotos .live-place-count { font-size: 17px; }
}

.live-card {
  background: #fff; border-radius: 10px; padding: 18px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.12); margin-bottom: 16px;
}
.live-card-error { text-align: center; }
.live-error-title { font-size: 19px; font-weight: 600; color: #d0021b; margin-bottom: 10px; }
.live-error-text { font-size: 15px; line-height: 1.5; color: #3d4a52; }

.live-place { font-size: 21px; font-weight: 700; color: #101c22; line-height: 1.25; }
.live-today { font-size: 14px; color: #7d8a92; margin-top: 4px; }
.live-title { font-size: 24px; font-weight: 700; color: #101c22; margin-top: 14px; line-height: 1.2; }
.live-sub { font-size: 15px; color: #55636b; margin-top: 8px; line-height: 1.45; }

/* Кнопка выбора файла. <input type=file> спрятан, но остаётся настоящим
   элементом формы: label нажимается пальцем целиком. */
.live-pick {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative;
  margin-top: 18px; padding: 26px 14px; border-radius: 12px; cursor: pointer;
  background: #00aeef; color: #fff; text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.live-pick:active { background: #0093c9; }
.live-pick-active { background: #0a9e57; }
.live-pick input[type=file] {
  position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0);
}
.live-pick-icon { font-size: 40px; line-height: 1; font-weight: 300; }
.live-pick-text { font-size: 22px; font-weight: 700; margin-top: 6px; }
.live-pick-hint { font-size: 13px; opacity: .85; margin-top: 4px; }

.live-name-row { margin-top: 16px; }
.live-name-row label { display: block; font-size: 13px; color: #7d8a92; margin-bottom: 6px; }
.live-name-row input {
  width: 100%; box-sizing: border-box; height: 44px; padding: 0 12px; font-size: 16px;
  border: 1px solid #cfd8dd; border-radius: 8px; background: #f8fafb; color: #101c22;
}
.live-name-row input:focus { outline: none; border-color: #00aeef; background: #fff; }
.live-name-known { margin-top: 14px; font-size: 14px; color: #55636b; }

.live-preview {
  display: none; flex-wrap: wrap; gap: 6px; margin-top: 16px;
}
.live-thumb {
  position: relative; width: 31%; padding-bottom: 31%; height: 0;
  border-radius: 8px; overflow: hidden; background: #eef2f4; cursor: pointer;
}
.live-thumb img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
.live-thumb-badge {
  position: absolute; left: 4px; bottom: 4px; padding: 2px 6px; border-radius: 4px;
  background: rgba(0,0,0,.6); color: #fff; font-size: 11px; line-height: 1.3;
}
.live-thumb-done .live-thumb-badge { background: rgba(10,158,87,.9); }
.live-thumb-error .live-thumb-badge { background: rgba(208,2,27,.9); }
.live-thumb-sending { opacity: .7; }
.live-thumb-err {
  position: absolute; left: 0; right: 0; top: 0; padding: 4px 6px;
  background: rgba(208,2,27,.88); color: #fff; font-size: 10px; line-height: 1.25;
}

.live-btn {
  display: inline-block; box-sizing: border-box; width: 100%; margin-top: 16px;
  padding: 16px 18px; border: 0; border-radius: 10px; text-align: center;
  font-size: 19px; font-weight: 700; cursor: pointer; text-decoration: none;
}
.live-btn-main { background: #d0021b; color: #fff; }
.live-btn-main:active { background: #a80115; }
.live-btn-main[disabled] { background: #d9dee1; color: #8b969c; cursor: default; }
.live-btn-ghost {
  background: #f2f6f8; color: #101c22; border: 1px solid #cfd8dd;
  font-size: 16px; font-weight: 600; margin-top: 10px;
}

.live-progress { margin-top: 12px; font-size: 15px; color: #3d4a52; min-height: 20px; }
.live-result { margin-top: 6px; }
.live-result-ok { font-size: 16px; color: #0a7d47; font-weight: 600; margin-top: 8px; }
.live-result-warn { font-size: 14px; color: #a86400; background: #fff6e5; border-radius: 6px;
  padding: 8px 10px; margin-top: 8px; line-height: 1.4; }
.live-note { margin-top: 14px; font-size: 12px; color: #8b969c; line-height: 1.4; }

/* «Вечер»: счётчики и кто снимал */
.live-evening-head { font-size: 17px; color: #101c22; line-height: 1.35; }
.live-evening-sub {
  margin-top: 14px; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: #8b969c;
}
.live-authors { list-style: none; margin: 8px 0 0; padding: 0; }
.live-authors li {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 7px 0; border-bottom: 1px solid #eef2f4; font-size: 15px; color: #101c22;
}
.live-authors li:last-child { border-bottom: 0; }
.live-author-num { color: #7d8a92; font-size: 14px; white-space: nowrap; margin-left: 10px; }
.live-evening-links { margin-top: 14px; font-size: 15px; }
.live-evening-links a { color: #00aeef; text-decoration: none; }

@media (max-width: 420px) {
  .live-title { font-size: 21px; }
  .live-pick-text { font-size: 20px; }
  .live-btn { font-size: 18px; padding: 15px 16px; }
}

/* ТЕЛЕГРАМ-ФОТО-1: вторая дорога — «Выложить через Telegram» */
.live-tg { margin-top: 18px; padding-top: 16px; border-top: 1px solid #eef2f4; }
.live-btn-tg { background: #229ed9; color: #fff; margin-top: 0; }
.live-btn-tg:active { background: #1b81b1; }
.live-tg-note { margin-top: 8px; font-size: 12px; color: #8b969c; line-height: 1.4; }
