/* Podios oficiales — /Admin/Podios y /Photographer/Podios.
   Móvil primero: el admin opera esto desde el teléfono. Violeta (--ice) es la
   zona de gestión; el verde es del atleta. Todo cuelga de .pod. */

.pod { max-width: 1120px; margin: 0 auto; padding: 16px 16px 96px; color: var(--white); font-family: var(--font-body); }
.pod a { color: var(--ice-bright); }

.pod-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.pod-kicker { font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ice-bright); }
.pod-title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: .95; letter-spacing: -.02em; }
.pod-sub { margin: 0; color: var(--text-secondary); font-size: 14px; }

.pod-mosaic { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
/* Cifras chicas (métricas): de a dos en el teléfono, para no bajar cinco pantallas. */
.pod-mosaic--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pod-plate { background: var(--panel); border-left: 2px solid var(--border); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.pod-plate--accent { border-left-color: var(--ice); }
.pod-plate--danger { border-left-color: var(--danger); }
.pod-plate--warning { border-left-color: var(--warning); }
.pod-figure { font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: .85; font-variant-numeric: tabular-nums; }
.pod-label { font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-secondary); }

.pod-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; background: var(--panel); border-left: 2px solid var(--border); padding: 14px 16px; color: var(--white); text-decoration: none; min-height: 44px; }
.pod-card:hover { background: #1E1E27; }
.pod-card.is-inactive { opacity: .6; }
.pod-card__name { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.1; }
.pod-card__meta { font-size: 13px; color: var(--text-secondary); }
.pod-card__flag { color: var(--warning); }

.pod-laurels { position: relative; display: inline-block; flex: 0 0 auto; color: var(--ice-bright); }
.pod-laurels__svg { width: 100%; height: 100%; display: block; }
.pod-laurels__disc { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); border-radius: 50%; background: var(--white); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pod-laurels__disc img { width: 100%; height: 100%; object-fit: cover; }
.pod-laurels__initials { font-family: var(--font-display); font-weight: 800; color: var(--black); font-size: 14px; }

.pod-tabs { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--border); margin: 8px 0 18px; }
.pod-tabs::-webkit-scrollbar { display: none; }
.pod-tabs a { flex: 0 0 auto; padding: 12px 0; min-height: 44px; color: var(--text-secondary); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; border-bottom: 2px solid transparent; }
.pod-tabs a.is-active { color: var(--white); border-bottom-color: var(--ice); }

.pod-form { display: flex; flex-direction: column; gap: 14px; }
.pod-field { display: flex; flex-direction: column; gap: 6px; }
.pod-field label { font-size: 13px; color: var(--text-secondary); }
.pod-field input, .pod-field textarea, .pod-field select { min-height: 44px; background: var(--charcoal); color: var(--white); border: 1px solid var(--border-light); border-radius: 0; padding: 10px 12px; font-size: 16px; }
.pod-field textarea { min-height: 88px; }
.pod-field small { color: var(--muted); font-size: 12px; }
.pod-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.pod-check { display: flex; gap: 10px; align-items: center; min-height: 44px; }

.pod-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 0; background: var(--ice); color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; text-decoration: none; }
.pod-btn:hover { background: var(--ice-bright); color: var(--white); }
.pod-btn--ghost { background: transparent; border: 1px solid var(--border-light); color: var(--text-secondary); }
.pod-btn--ghost:hover { border-color: var(--ice); color: var(--white); background: transparent; }
.pod-btn--danger { background: var(--danger); }
.pod-btn[disabled] { opacity: .45; cursor: not-allowed; }

.pod-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-family: var(--font-display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.pod-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.pod-status--live::before { background: var(--accent); }
.pod-status--soon::before { background: var(--warning); }
.pod-status--danger::before { background: var(--danger); }

.pod-list { display: flex; flex-direction: column; gap: 2px; }
.pod-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; background: var(--panel); padding: 12px 16px; min-height: 56px; color: var(--white); text-decoration: none; border-left: 2px solid var(--border); }
.pod-line:hover { background: #1E1E27; }

.pod-notice { background: var(--panel); border-left: 2px solid var(--ice); padding: 12px 16px; font-size: 14px; }
.pod-notice--error { border-left-color: var(--danger); }
.pod-notice--ok { border-left-color: var(--accent); }

.pod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.pod-tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--charcoal); cursor: pointer; margin: 0; }
.pod-tile img { width: 100%; height: 100%; object-fit: cover; }
.pod-tile.is-retired img { opacity: .35; }
.pod-tile__check { position: absolute; top: 8px; left: 8px; width: 22px; height: 22px; z-index: 1; accent-color: var(--ice); }
.pod-tile__tag { position: absolute; bottom: 0; left: 0; padding: 3px 8px; background: var(--black); font-size: 11px; font-family: var(--font-display); letter-spacing: .12em; text-transform: uppercase; }
.pod-tile__tag--ok { color: var(--accent); }
.pod-empty { color: var(--text-secondary); }
.pod-bulk { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--charcoal); border-top: 1px solid var(--border); padding: 10px 0; margin-top: 8px; }
.pod-bulk__count { margin-right: auto; color: var(--text-secondary); font-size: 14px; }
.pod-pager { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 12px; }
.pod-pager__item { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; background: var(--panel); color: var(--text-secondary); text-decoration: none; }
.pod-pager__item.is-active { background: var(--ice); color: var(--white); }
.pod-dialog { background: var(--panel); color: var(--white); border: 1px solid var(--border-light); border-radius: 0; max-width: 420px; padding: 20px; }
.pod-dialog::backdrop { background: rgba(10, 10, 15, .7); }
.pod-dialog__actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }

/* Publicar queda fijo abajo en el teléfono (spec 6.3). */
.pod-publishbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--charcoal); border-top: 1px solid var(--border); }
.pod-publishbar .pod-btn { flex: 1; }
/* Portada desde una foto de la versión: una tira que se desliza con el pulgar. */
.pod-coverpick { display: flex; gap: 2px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 6px 0 4px; }
.pod-coverpick__item { position: relative; flex: 0 0 96px; aspect-ratio: 1; cursor: pointer; scroll-snap-align: start; }
.pod-coverpick__item input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pod-coverpick__item img { width: 100%; height: 100%; object-fit: cover; display: block; border: 2px solid transparent; }
.pod-coverpick__item input:checked + img { border-color: var(--ice); }
.pod-coverpick__item input:focus-visible + img { outline: 2px solid var(--ice); outline-offset: 2px; }
/* En el teléfono la barra del admin (_MobileTabBar) ocupa los últimos 72 px. */
@media (max-width: 760px) { body:has(.m-tabbar) .pod-publishbar { bottom: 72px; } }

.pod-days { display: flex; align-items: flex-end; gap: 2px; height: 84px; margin-top: 8px; border-bottom: 1px solid var(--border); }
.pod-day { flex: 1 1 0; max-width: 28px; display: flex; align-items: flex-end; height: 100%; }
.pod-day__bar { display: block; width: 100%; min-height: 1px; background: var(--ice); }

@media (min-width: 768px) {
    .pod { padding: 28px 28px 48px; }
    .pod-title { font-size: 48px; }
    .pod-mosaic--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .pod-mosaic--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pod-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pod-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .pod-publishbar { position: static; padding: 0; margin-top: 20px; background: transparent; border: 0; }
    .pod-publishbar .pod-btn { flex: 0 0 auto; }
}
