/* 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; }

/* ------------------------------ /recap ------------------------------
   The night after: one page to post. Phone first; on a laptop the people sit beside the pictures. */

.recap .list-hint { margin-top: 10px; font-size: .9rem; font-style: italic; color: var(--muted); }
.recap .list-hint a { color: var(--ink); }
.recap__hero { display: grid; justify-items: center; gap: 14px; margin-top: 14px; }
.recap__poster { width: min(46vw, 210px); border: 2px solid var(--ink); border-radius: 4px; box-shadow: 6px 6px 0 var(--rule); transform: rotate(-2deg); }
.recap__title { margin-top: 6px; font: 400 clamp(1.4rem, 6vw, 2rem)/1.1 var(--script); color: var(--ink); }
@media (min-width: 700px) {
  .recap__hero { grid-template-columns: auto minmax(0, 28rem); justify-content: center; align-items: center; text-align: left; gap: 28px; }
  .recap__hero .masthead__title { font-size: 2.8rem; }
}

.stat-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 18px; }
.stat-strip div {
  display: grid; justify-items: center; min-width: 6.5rem; padding: 10px 14px 8px;
  background: var(--card); border: 2px solid var(--ink); border-radius: 6px; box-shadow: 3px 3px 0 var(--rule);
}
.stat-strip b { font: italic 400 1.7rem/1 var(--display); color: var(--ink); }
.stat-strip span { margin-top: 4px; font: 700 .68rem/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.recap__grid { display: grid; gap: 18px; }
.recap__grid .card + .card { margin-top: 0; }
@media (min-width: 900px) { .recap__grid { grid-template-columns: 19rem minmax(0, 1fr); align-items: start; } .recap__people { position: sticky; top: 16px; } }
@media (min-width: 900px) { .recap__grid--solo { grid-template-columns: minmax(0, 1fr); } }
.recap__blurb { margin-top: 10px; max-width: 34rem; font-size: .98rem; color: var(--text); }
.recap__next, #ideas { margin-top: 18px; }

.whowent { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: who; }
.whowent li { counter-increment: who; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 8px 0; border-bottom: 1px solid var(--rule-soft); }
.whowent li::before { content: counter(who); min-width: 1.4em; font: 700 .8rem/1 var(--body); color: var(--muted); }
.whowent__name { font: 400 1.25rem/1.15 var(--script); color: var(--ink); }
.whowent__ig { margin-left: auto; font-size: .92rem; font-weight: 600; color: var(--btn-bg); overflow-wrap: anywhere; }

.recap__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 16px; }
.gallery { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
.gallery__btn {
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; padding: 0; overflow: hidden; cursor: zoom-in;
  border: 2px solid var(--ink); border-radius: 6px; background: var(--ink); -webkit-tap-highlight-color: transparent;
}
.gallery__btn img, .gallery__btn video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.gallery__btn:hover img, .gallery__btn:hover video { transform: scale(1.04); }
.gallery__play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding-left: 4px; border-radius: 50%; font-size: 1.1rem; color: #fff; background: rgba(0, 0, 0, .6); }
.gallery__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 5px; font: italic 400 .78rem/1.2 var(--body); color: #fff; text-align: left; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lightbox { width: 100%; max-width: 100%; height: 100%; height: 100dvh; max-height: 100%; margin: 0; padding: 0; border: 0; overflow: hidden; background: rgba(12, 4, 7, .96); color: #f8f0da; }
.lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.lightbox::backdrop { background: rgba(12, 4, 7, .8); }
.lightbox__media { position: relative; min-height: 0; }
/* Pinned to the cell, so a tall phone video can never push the buttons off the bottom. */
.lightbox__media img, .lightbox__media video { position: absolute; inset: 0; width: 100%; height: 100%; padding: 12px; object-fit: contain; }
.lightbox__bar { display: grid; gap: 8px; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); background: #1d0b11; }
.lightbox__cap { display: flex; flex-wrap: wrap; gap: 2px 12px; justify-content: center; text-align: center; font-style: italic; min-height: 1.5em; }
.lightbox__cap b { font: 400 1.15rem/1.3 var(--script); color: #f6d77c; }
.lightbox__btns { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.lightbox .btn--ghost { color: #f8f0da; border-color: #f8f0da; background: transparent; }
.lightbox__n { min-width: 4.5em; text-align: center; font-size: .9rem; color: #b9a092; }

/* /admin/tv: nights kept for their recap pages */
.kept { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: .95rem; }
.kept a { color: var(--ink); font-weight: 600; }

/* /admin/tv: a past show's pictures, small and scrollable, since an old night can have dozens */
#past-tiles { grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: 8px; max-height: 34rem; overflow-y: auto; }
#past-tiles .tile__media { aspect-ratio: 1; overflow: hidden; }
#past-tiles .tile__media img, #past-tiles .tile__media video { position: absolute; inset: 0; object-fit: cover; }
#past-tiles .tile__body { padding: 6px; gap: 4px; }
