/* The TV feed's phone pages: /share (guests) and /admin/tv (approvals). Sits on top of signup.css. */

/* ------------------------------ /share ------------------------------ */

.drop {
  display: grid; justify-items: center; gap: 6px; padding: 28px 16px; text-align: center; cursor: pointer;
  border: 3px dashed var(--ink); border-radius: 10px; background: var(--paper);
  transition: padding .2s, background .2s;
  -webkit-tap-highlight-color: transparent;
}
.drop:hover, .drop:focus-within { background: var(--paper-2); }
.drop__icon { font-size: 2.6rem; line-height: 1; }
.drop__big { font: italic 400 1.3rem/1.1 var(--display); text-transform: uppercase; color: var(--ink); }
.drop__small { font-size: .9rem; font-style: italic; color: var(--muted); }
.drop.is-small { grid-template-columns: auto auto; align-items: center; justify-content: center; padding: 14px; }
.drop.is-small .drop__icon { font-size: 1.6rem; }
.drop.is-small .drop__big { font-size: 1rem; }
.drop.is-small .drop__big::before { content: "+ "; }
.drop.is-small .drop__small { display: none; }
.drop:has(+ #files:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }

.picks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.picks:empty { display: none; }
.pick { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--ink); border: 2px solid var(--ink); }
.pick img, .pick video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pick.is-bad { border-color: var(--live); }
.pick.is-bad img, .pick.is-bad video { opacity: .35; }
.pick__badge { position: absolute; left: 6px; bottom: 6px; padding: 2px 6px; font-size: .72rem; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .6); border-radius: 4px; }
.pick__x {
  position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer;
  font-size: 1.2rem; line-height: 1; color: #fff; background: rgba(0, 0, 0, .65);
}
.pick__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; background: rgba(0, 0, 0, .5); }
.pick__bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .2s; }
.pick.is-done .pick__bar span { background: var(--ok); }
.pick__done { position: absolute; inset: 0; display: grid; place-items: center; font: italic 400 1rem/1 var(--display); text-transform: uppercase; color: #fff; background: rgba(63, 107, 47, .55); }
.pick__done.is-bad { background: rgba(194, 42, 70, .35); font-size: 1.6rem; }
.pick__msg {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 6px; font-size: .7rem; line-height: 1.2; color: #fff; background: rgba(90, 15, 31, .9);
}
.pick.is-sending { animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .75; } }

.mine { list-style: none; margin: 14px 0 0; padding: 0; }
.mine__row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule-soft); }
.mine__thumb { flex: none; width: 52px; height: 52px; border-radius: 6px; overflow: hidden; display: grid; place-items: center; background: var(--paper-2); font-size: 1.4rem; }
.mine__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mine__text { flex: 1; min-width: 0; display: grid; gap: 4px; justify-items: start; }
.mine__text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; color: var(--ink); }
.mine__row.is-gone { opacity: .6; }

.pill { display: inline-block; padding: 2px 9px; font-size: .78rem; font-weight: 700; border-radius: 999px; border: 2px solid currentColor; }
.pill--approved { color: var(--ok); }
.pill--pending { color: var(--warn); }
.pill--gone { color: var(--muted); }

/* ------------------------------ /admin/tv ------------------------------ */

.count { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 .4em; margin-left: .2em; font: 700 .7em/1 var(--body); color: var(--btn-fg); background: var(--btn-bg); border-radius: 999px; vertical-align: .2em; }

.tiles { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 14px; }
.tiles:empty { display: none; }
.tile { display: flex; flex-direction: column; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; background: var(--paper); transition: opacity .3s, transform .3s; }
.tile.is-pending { border-color: var(--warn); box-shadow: 0 0 0 3px rgba(154, 90, 16, .18); }
.tile.is-hidden { opacity: .7; }
.tile.is-leaving { opacity: .2; transform: scale(.96); }
.tile__media { position: relative; aspect-ratio: 4 / 3; background: #1a0b0f; }
.tile__media a { display: block; height: 100%; }
.tile__media img, .tile__media video { width: 100%; height: 100%; object-fit: contain; display: block; }
.tile__badge { position: absolute; left: 8px; top: 8px; padding: 2px 7px; font-size: .75rem; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .6); border-radius: 4px; pointer-events: none; }
.tile__body { display: grid; gap: 8px; padding: 10px; }
.tile__meta { color: var(--muted); font-style: italic; font-size: .85rem; }
.tile__btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.linkish.danger { color: var(--live); }
/* Phones: picture on the left, buttons on the right, so a pile of uploads doesn't take a mile of scrolling. */
@media (max-width: 560px) {
  .tile { flex-direction: row; }
  .tile__media { flex: none; width: 40%; aspect-ratio: 3 / 4; }
  .tile__body { flex: 1; min-width: 0; align-content: start; }
  .tile__btns .btn { flex: 1 1 100%; }
}

.hidden-pile { margin-top: 18px; }
.hidden-pile summary { cursor: pointer; font-weight: 700; color: var(--ink); }

.moments { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.moment {
  display: grid; justify-items: center; gap: 2px; padding: 14px 8px 12px; cursor: pointer;
  font: italic 400 .95rem/1.1 var(--display); text-transform: uppercase; color: var(--ink);
  background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; box-shadow: 0 4px 0 var(--ink);
  transition: transform .1s, box-shadow .1s;
  -webkit-tap-highlight-color: transparent;
}
.moment i { font-style: normal; font-size: 1.8rem; line-height: 1.1; }
.moment small { font: italic 400 .75rem/1 var(--body); text-transform: none; color: var(--muted); }
.moment:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }

/* On a phone the moment buttons live at the bottom of the screen, a thumb away mid-set. */
.quickbar {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40; transform: translateX(-50%);
  display: flex; gap: 6px; padding: 6px; background: var(--btn-edge); border-radius: 999px; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .5);
}
.quickbar button {
  width: 54px; height: 54px; border: 0; border-radius: 50%; cursor: pointer; font-size: 1.6rem; line-height: 1;
  color: var(--btn-fg); background: var(--btn-bg); -webkit-tap-highlight-color: transparent;
}
.quickbar button:active { transform: scale(.92); }
@media (min-width: 960px) { .quickbar { display: none; } }

.say { display: grid; gap: 8px; margin-top: 14px; }
.say__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
select.input--sm { padding-right: 28px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }

.feed-switches { grid-template-columns: 1fr !important; margin-top: 14px; }
.nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.nums .field { margin-top: 0; }

.slides-list { list-style: none; margin: 14px 0 0; padding: 0; }
.slide-row { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--rule-soft); }
.slide-row.is-off .slide-row__text { opacity: .5; }
.slide-row__text { flex: 1; min-width: 0; display: grid; }
.slide-row__text b { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slide-row__text small { color: var(--muted); font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switch--sm .switch__track { width: 46px; height: 28px; }
.switch--sm .switch__track::after { width: 18px; height: 18px; }
.switch--sm input:checked + .switch__track::after { transform: translateX(18px); }

.space { height: 12px; margin-top: 12px; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; background: var(--paper); }
.space span { display: block; height: 100%; width: 0; background: var(--btn-bg); }

/* the ideas box on /share */
.idea-done { margin-top: 14px; font: italic 400 1.1rem/1.4 var(--body); color: var(--ok); }
#ideas .chip span { min-width: 0; font-size: .9rem; }

/* /admin/tv: moments, tonight's reactions, guest notes */
.moment--wide { grid-column: 1 / -1; grid-template-columns: auto auto; justify-content: center; gap: 10px; padding: 10px; }
.moment--wide i { font-size: 1.2rem; }
.react-tally { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; color: var(--muted); font-style: italic; }
.react-tally span { font-style: normal; font-size: 1.1rem; color: var(--ink); }
.react-tally b { font: 700 .9rem var(--body); }
.count--quiet { background: var(--muted); }
.ideas { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; max-height: 28rem; overflow-y: auto; }
.idea { padding: 10px 12px; border: 2px solid var(--rule); border-radius: 8px; background: var(--paper); }
.idea.is-new { border-color: var(--ink); box-shadow: 3px 3px 0 var(--rule); }
.idea__text { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
.idea__kind { margin-right: .45em; }
.idea__meta { margin-top: 6px; font-size: .85rem; color: var(--muted); font-style: italic; }
.idea__meta .linkish { padding: 0; font-size: .85rem; }
.vol { margin-top: 14px; }
.vol input[type=range] { width: 100%; accent-color: var(--btn-bg); }
.vol output { font-weight: 400; color: var(--muted); font-style: italic; margin-left: .3em; }
