/* Rebel Off-Road Recovery: additions for the recoveries gallery, video dialog,
   owner admin and the homepage badge/tagline. Builds on styles.css tokens. */

/* ---------- shared: nav with four items, tagline, badge, footer links ---------- */

.site-nav ul { flex-wrap: wrap; }
.site-nav a[aria-current="page"] { color: var(--warm); text-decoration: underline; text-underline-offset: 0.3em; text-decoration-color: var(--red-hi); }

@media (max-width: 479.98px) {
  .site-nav a { padding-inline: 0.45rem; font-size: 0.8rem; letter-spacing: 0.04em; }
  .site-nav .nav-call { padding-inline: 0.7rem; }
}

.hero-tagline {
  margin: 1rem 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem);
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red-hi);
}

/* the supplied logo has a white background: give it an intentional white sticker plate */
.brand-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 2rem;
}
.brand-badge img {
  width: 132px;
  padding: 0.6rem;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.8);
  transform: rotate(-2deg);
}
.brand-badge figcaption { margin: 0; max-width: 14rem; }

@media (min-width: 600px) {
  .brand-badge img { width: 165px; }
}

.services-area {
  max-width: 40rem;
  margin: clamp(1.5rem, 4vw, 2rem) 0 0;
  color: var(--warm-dim);
}

.footer-links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.footer-small a { color: var(--muted); font-weight: 400; }
.footer-owner { margin-left: 0.5rem; }

/* ---------- recoveries page ---------- */

.rv-intro {
  display: grid;
  gap: 1.5rem;
  padding: clamp(2rem, 7vw, 4.5rem) var(--pad) clamp(1.5rem, 5vw, 2.5rem);
  max-width: 72rem;
}
.rv-badge {
  width: 88px;
  padding: 0.4rem;
  background: #fff;
  border-radius: 4px;
  transform: rotate(-2deg);
}
.rv-intro h1 { font-size: clamp(2.8rem, 1.6rem + 6vw, 6rem); margin-bottom: 1rem; }
.rv-intro p:not(.kicker) { max-width: 38rem; color: var(--warm-dim); }
.rv-intro .kicker { color: var(--red-hi); }

.rv-yt,
.rv-channel-link,
.rv-open-yt {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  font-weight: 700;
  color: var(--warm);
  text-underline-offset: 0.3em;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--red-hi);
}
.rv-yt .icon { color: var(--red-hi); }

@media (min-width: 760px) {
  .rv-intro { grid-template-columns: auto minmax(0, 1fr); gap: 2.5rem; align-items: start; }
  .rv-badge { width: 120px; margin-top: 0.5rem; }
}

.rv-gallery { padding: 0 var(--pad) clamp(3rem, 9vw, 6rem); }

.rv-status {
  max-width: 40rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--warm-dim);
}
.rv-status p { margin: 0 0 0.5rem; }
.rv-status[data-state="error"] { border-top: 4px solid var(--red-hi); }
.rv-status-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 0.75rem !important; }

.rv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.6rem 1.2rem;
  border: 1px solid rgba(244, 236, 219, 0.5);
  border-radius: 3px;
  background: transparent;
  color: var(--warm);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.rv-btn:hover:not(:disabled) { border-color: var(--warm); }
.rv-btn:disabled { opacity: 0.6; cursor: progress; }

/* one entry per recovery case, newest first; each case holds up to five video cards */
.rv-list {
  display: grid;
  gap: clamp(2.5rem, 7vw, 4rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.rv-list[hidden] { display: none; }

.rv-case { min-width: 0; padding-top: clamp(1.25rem, 4vw, 2rem); border-top: 1px solid var(--line); }
.rv-case-head { max-width: 46rem; margin-bottom: 1.25rem; }
.rv-case-title { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); margin-bottom: 0.5rem; overflow-wrap: anywhere; }
.rv-case-title:focus { outline: none; }
.rv-case-title:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.rv-case-text { margin: 0; color: var(--warm-dim); white-space: pre-line; overflow-wrap: anywhere; }

.rv-videos {
  display: grid;
  gap: clamp(1.25rem, 4vw, 2rem) clamp(1rem, 3vw, 1.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 700px) { .rv-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .rv-videos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 700px) { .rv-videos-single { grid-template-columns: minmax(0, 40rem); } }

.rv-card { min-width: 0; }
.rv-card-num { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.9rem; }

.rv-more { margin-top: clamp(2rem, 6vw, 3rem); }
.rv-more[hidden] { display: none; }
.rv-more-msg { margin: 0.75rem 0 0; color: var(--warm-dim); }
.rv-more-msg:empty { display: none; }

.rv-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: 3px;
  overflow: hidden;
  background: var(--olive-900);
  cursor: pointer;
}
.rv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rv-portrait .rv-thumb img { object-fit: contain; background: #000; }
.rv-thumb-missing { background: linear-gradient(135deg, var(--olive-800), var(--char)); }

.rv-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.8);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.rv-play::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 20px;
  border-style: solid;
  border-width: 12px 0 12px 19px;
  border-color: transparent transparent transparent #fff;
}
.rv-thumb:hover .rv-play,
.rv-thumb:focus-visible .rv-play { transform: scale(1.08); background: var(--red-deep); }
.rv-thumb:focus-visible { outline-offset: 4px; }

.rv-tag {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  background: rgba(18, 19, 16, 0.85);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm);
}


.rv-cta {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
  padding: clamp(3rem, 8vw, 5rem) var(--pad);
  background: var(--char);
  border-top: 6px solid var(--red);
}
.rv-cta h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem); }

/* ---------- video dialog ---------- */

.rv-dialog {
  --chrome: 9.5rem;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0.5rem;
  border: 0;
  background: transparent;
  color: var(--warm);
  overflow: auto;
}
.rv-dialog[open] { display: flex; align-items: center; justify-content: center; }
.rv-dialog::backdrop { background: rgba(8, 9, 7, 0.88); }

.rv-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: min(100%, 72rem);
  margin: auto;
  padding: 0.75rem;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.rv-dialog[data-format="portrait"] .rv-panel { width: min(100%, 34rem); }

.rv-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}
.rv-dialog-title {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.8rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.rv-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: none;
  min-height: 48px;
  min-width: 48px;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(244, 236, 219, 0.5);
  border-radius: 3px;
  background: transparent;
  color: var(--warm);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.rv-icon-btn:hover { border-color: var(--warm); }

/* the whole video always fits: width is capped by the viewport height left after chrome */
.rv-stage {
  position: relative;
  flex: none;
  aspect-ratio: 16 / 9;
  width: min(100%, calc((100vh - var(--chrome)) * 16 / 9));
  width: min(100%, calc((100dvh - var(--chrome)) * 16 / 9));
  min-width: min(100%, 288px);
  background: #000;
}
.rv-dialog[data-format="portrait"] .rv-stage {
  aspect-ratio: 9 / 16;
  width: min(100%, calc((100vh - var(--chrome)) * 9 / 16));
  width: min(100%, calc((100dvh - var(--chrome)) * 9 / 16));
  min-width: min(100%, 200px);
}
.rv-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rv-stage[aria-busy="true"]::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 3px solid rgba(244, 236, 219, 0.25);
  border-top-color: var(--warm);
  border-radius: 50%;
  animation: rv-spin 0.9s linear infinite;
}
@keyframes rv-spin { to { transform: rotate(360deg); } }

.rv-player-msg { width: 100%; margin: 0; color: var(--warm-dim); font-size: 0.95rem; }

.rv-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  width: 100%;
}
.rv-toggle { min-width: 8.5rem; background: var(--red); border-color: var(--red); color: #fff; }
.rv-toggle:hover:not(:disabled) { background: var(--red-deep); border-color: var(--red-deep); }
.rv-toggle .icon { width: 1.1rem; height: 1.1rem; fill: currentColor; }
.rv-toggle .rv-i-pause { fill: none; stroke-width: 3; }
.rv-toggle .rv-i-pause,
.rv-toggle[data-state="pause"] .rv-i-play,
.rv-toggle[data-state="loading"] .rv-i-play { display: none; }
.rv-toggle[data-state="pause"] .rv-i-pause { display: block; }
.rv-open-yt { margin-left: auto; font-size: 0.95rem; }

@media (max-height: 520px) {
  .rv-dialog { --chrome: 7.5rem; padding: 0.25rem; }
  .rv-panel { padding: 0.4rem 0.6rem; gap: 0.35rem; }
  .rv-icon-btn, .rv-btn, .rv-open-yt { min-height: 44px; }
}

/* ---------- owner admin ---------- */

.admin-header .brand { gap: 0.8rem; }
.admin-badge { width: 44px; padding: 3px; background: #fff; border-radius: 3px; }

.admin-main { padding: clamp(1.5rem, 5vw, 3rem) var(--pad) clamp(3rem, 8vw, 5rem); max-width: 52rem; }
.admin-main h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); margin-bottom: 1.25rem; }
.admin-main h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); margin-bottom: 0.75rem; }
.admin-panel[hidden],
#admin-app[hidden] { display: none; }

.admin-msg {
  margin: 0 0 1.5rem;
  padding: 0.8rem 1rem;
  border-left: 4px solid var(--sand);
  background: var(--olive-900);
}

.admin-bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; }
.admin-help { color: var(--warm-dim); max-width: 42rem; }

.admin-form { display: grid; gap: 1rem; }
/* Hidden authentication and editor controls must stay hidden despite their layout styles. */
.admin [hidden] { display: none !important; }
.admin-narrow { max-width: 26rem; }

.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 700; }
.field-hint { font-weight: 400; color: var(--muted); font-size: 0.9em; }
.admin-form input[type="text"],
.admin-form input[type="email"],
.admin-form input[type="password"],
.admin-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(244, 236, 219, 0.35);
  border-radius: 3px;
  background: var(--char);
  color: var(--warm);
  font: inherit;
  font-size: max(16px, 1rem);
}
.admin-form textarea { resize: vertical; min-height: 6rem; }
.admin-form input.visually-hidden { width: 1px; height: 1px; padding: 0; border: 0; }
.admin-form input:focus-visible,
.admin-form textarea:focus-visible { border-color: var(--focus); }
.admin-form [aria-invalid="true"] { border-color: var(--red-hi); border-width: 2px; }

.field-error {
  margin: 0;
  padding: 0.6rem 0.8rem;
  border-left: 4px solid var(--red-hi);
  background: rgba(184, 28, 25, 0.16);
  color: var(--warm);
}
.field-error[hidden] { display: none; }

.slot {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.25rem;
  padding: 1.25rem clamp(0.9rem, 3vw, 1.5rem) 1.5rem;
  border: 1px solid var(--line);
  border-top: 4px solid var(--olive-600);
  border-radius: 3px;
  background: rgba(35, 39, 26, 0.5);
}
.slot-legend {
  padding: 0 0.4rem;
  font-family: var(--display);
  font-size: 1.6rem;
  text-transform: uppercase;
}
.slot-publish,
.slot-format label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  font-weight: 700;
  cursor: pointer;
}
.slot-publish input,
.slot-format input { width: 1.3rem; height: 1.3rem; accent-color: var(--red); }
.slot-format { margin: 0; padding: 0; border: 0; }
.slot-format legend { padding: 0; margin-bottom: 0.25rem; font-weight: 700; }
.slot-format label { font-weight: 400; }

.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 52px;
  padding: 0.7rem 1.4rem;
  border: 0;
  border-radius: 3px;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.admin-btn:hover:not(:disabled) { background: var(--red-deep); }
.admin-btn:disabled { opacity: 0.65; cursor: progress; }
.admin-btn-quiet { min-height: 44px; background: transparent; border: 1px solid rgba(244, 236, 219, 0.5); color: var(--warm); }
/* Cloudflare sign-in: one large, obvious action */
.sso-login { display: grid; gap: 1rem; }
.sso-btn { width: 100%; min-height: 56px; font-size: 1.1rem; text-decoration: none; }
.sso-btn:hover { background: var(--red-deep); }
.sso-btn[aria-disabled="true"] { opacity: 0.65; pointer-events: none; }
.admin-who { color: var(--warm-dim); margin: 0; overflow-wrap: anywhere; }
.admin-btn-quiet:hover:not(:disabled) { background: var(--olive-900); }

.admin-save {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.75rem 0 calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: var(--ink);
  border-top: 1px solid var(--line);
}
.admin-save-status { margin: 0; color: var(--warm-dim); }

/* case editor and list */
#new-case { margin: 0.5rem 0 2rem; }
.case-editor {
  margin: 0 0 2.5rem;
  padding: 1.25rem clamp(0.9rem, 3vw, 1.5rem) 0;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: 3px;
  background: rgba(35, 39, 26, 0.35);
}
.case-editor[hidden] { display: none; }
.case-editor h2:focus { outline: none; }
.case-editor h2:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.case-editor .slot { margin-bottom: 0.75rem; border-top-width: 1px; }

.case-section h2 { margin-top: 0.5rem; }
.case-list { display: grid; gap: 0.75rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.case-row {
  display: grid;
  gap: 0.6rem 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--olive-600);
  border-radius: 3px;
  background: rgba(35, 39, 26, 0.5);
}
.case-row[data-published="true"] { border-left-color: var(--red); }
.case-row-title { margin: 0 0 0.25rem; font-family: inherit; font-size: 1.1rem; text-transform: none; letter-spacing: 0; overflow-wrap: anywhere; }
.case-row-meta { margin: 0; color: var(--warm-dim); font-size: 0.95rem; }
.case-row-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.case-row-status { margin: 0; color: var(--warm); font-size: 0.95rem; }
.case-row-status:empty { display: none; }
@media (min-width: 640px) {
  .case-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .case-row-status { grid-column: 1 / -1; }
}
/* Delete is a quiet button with a red edge so it never looks like the main action */
.admin-btn-danger { border-color: var(--red); }
.case-row[data-deleted="true"] { border-left-color: var(--warm-dim); border-style: dashed; border-left-style: solid; }
/* delete confirmation: the dialog itself has no padding so a click on it is always a backdrop click */
.admin-dialog {
  width: min(calc(100% - 2rem), 34rem);
  max-width: none;
  padding: 0;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: 3px;
  background: var(--ink);
  color: var(--warm);
}
.admin-dialog::backdrop { background: rgba(8, 9, 7, 0.82); }
.admin-dialog-panel { display: grid; gap: 1rem; padding: 1.25rem clamp(0.9rem, 3vw, 1.5rem) 1.5rem; }
.admin-dialog-panel h2 { margin: 0; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); overflow-wrap: anywhere; }
.admin-dialog-panel p { margin: 0; overflow-wrap: anywhere; }
.admin-dialog-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.trash-section { margin-top: clamp(2.5rem, 6vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid var(--line); }
.slot-remove { justify-self: start; }

.admin-password { margin-top: clamp(3rem, 8vw, 4.5rem); padding-top: 2rem; border-top: 1px solid var(--line); }

/* ---------- recovery photos ---------- */

.rv-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0 0 clamp(1.25rem, 4vw, 2rem);
  padding: 0;
  list-style: none;
}
@media (min-width: 700px) { .rv-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; } }
@media (min-width: 1100px) { .rv-photos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rv-photos-single { grid-template-columns: minmax(0, 40rem); }

.rv-photo-card { min-width: 0; }
.rv-photo {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 3px;
  background: var(--olive-900);
}
.rv-photos-single .rv-photo { aspect-ratio: auto; max-height: 70vh; }
.rv-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s ease; }
.rv-photos-single .rv-photo img { height: auto; max-height: 70vh; object-fit: contain; background: #000; }
.rv-photo:hover img { transform: scale(1.03); }
.rv-photo:focus-visible { outline-offset: 3px; }
.rv-photo-missing { background: linear-gradient(135deg, var(--olive-800), var(--char)); }
.rv-photo-missing img { visibility: hidden; }

.rv-photo-dialog { --chrome: 11rem; }
.rv-photo-panel { width: min(100%, 80rem); }
.rv-photo-figure { display: grid; justify-items: center; gap: 0.5rem; width: 100%; margin: 0; }
.rv-photo-full {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - var(--chrome));
  max-height: calc(100dvh - var(--chrome));
  object-fit: contain;
  background: #000;
}
.rv-photo-caption { width: 100%; color: var(--warm-dim); overflow-wrap: anywhere; }
.rv-photo-controls { justify-content: space-between; }
.rv-photo-pos { margin: 0; color: var(--warm-dim); font-size: 0.95rem; }
.rv-photo-controls .rv-btn[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .rv-photo img { transition: none; }
  .rv-photo:hover img { transform: none; }
}

/* ---------- admin photo editor ---------- */

.photo-box { border-top-width: 1px; }
.photo-help { margin: 0; color: var(--warm-dim); max-width: 42rem; }
.photo-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
/* the native chooser stays focusable and keyboard-operable; the label is its visible button */
.photo-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
.photo-input:focus-visible + .photo-pick-btn { outline: 3px solid var(--focus); outline-offset: 3px; }
.photo-pick-btn { cursor: pointer; }
.photo-pick.is-full .photo-pick-btn { opacity: 0.5; cursor: not-allowed; }
.photo-count { margin: 0; font-weight: 700; }

.photo-uploads,
.photo-list { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.photo-uploads:empty,
.photo-list:empty { display: none; }

.photo-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 0.75rem;
  align-items: center;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--sand);
  border-radius: 3px;
  background: var(--char);
}
.photo-upload[data-state="failed"] { border-left-color: var(--red-hi); }
.photo-upload-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.photo-upload-status { color: var(--warm-dim); font-size: 0.95rem; }
.photo-upload progress { grid-column: 1 / -1; width: 100%; height: 0.5rem; accent-color: var(--red); }
.photo-upload progress[hidden] { display: none; }
.photo-upload-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.photo-upload-actions:empty { display: none; }
.photo-upload[data-state="failed"] .photo-upload-status { grid-column: 1 / -1; color: var(--warm); }

.photo-item {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--char);
}
.photo-thumb { width: 6rem; height: 6rem; object-fit: cover; border-radius: 2px; background: var(--olive-900); }
.photo-body { display: grid; gap: 0.5rem; min-width: 0; }
.photo-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.photo-actions .admin-btn { min-height: 44px; padding: 0.5rem 0.9rem; }
@media (min-width: 640px) {
  .photo-item { grid-template-columns: 8rem minmax(0, 1fr); }
  .photo-thumb { width: 8rem; height: 8rem; }
}

@media (forced-colors: active) {
  .rv-play, .rv-toggle, .admin-btn { border: 2px solid ButtonText; }
}
