/* Event Detail — design from Fan fest style/event-detail.html */

/* ── CSS tokens scoped to event detail ─────────────────────────────────────── */
#eventDetailView {
  --ed-brand:     #75AADB;
  --ed-elevated:  #172435;
  --ed-bg:        #07090D;
  --ed-separator: #1E2E3E;
  --ed-live:      #EF4444;
  --ed-text:      #F1F5F9;
  --ed-muted:     #475569;
  position: relative;
  background: var(--ed-bg);
  min-height: 100%;
}

/* ── Keyframes ──────────────────────────────────────────────────────────────── */
@keyframes edPreviaGlow {
  0%, 100% { box-shadow: 0 0 0 0   rgba(117,170,219,0); }
  50%       { box-shadow: 0 0 0 5px rgba(117,170,219,.15); }
}
@keyframes edRing {
  0%   { transform: scale(.6);  opacity: .7; }
  100% { transform: scale(2.6); opacity: 0; }
}
@keyframes edPulse {
  0%   { transform: scale(1);   opacity: 1; }
  50%  { transform: scale(1.5); opacity: .3; }
  100% { transform: scale(1);   opacity: 1; }
}
@keyframes edLiveGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(239,68,68,.5),  0 0 0 1px rgba(239,68,68,.4); }
  50%       { box-shadow: 0 0 22px rgba(239,68,68,.9), 0 0 0 1px rgba(239,68,68,.7); }
}

/* ── Nav header ─────────────────────────────────────────────────────────────── */
.ed-nav-header {
  display: flex; align-items: center;
  height: 44px; padding: 0 16px;
  background: var(--ed-bg); position: relative; flex: none;
}
.ed-back__btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,.06); border: none;
  cursor: pointer; flex: none; z-index: 1; color: var(--ed-text);
}
.ed-nav-title {
  position: absolute; left: 0; right: 0;
  display: flex; justify-content: center; pointer-events: none;
}
.ed-nav-title span {
  font-size: 14px; font-weight: 700; color: var(--ed-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px;
}

/* ── Hero card ──────────────────────────────────────────────────────────────── */
.ed-hero-card {
  background: var(--ed-elevated);
  padding: 22px 20px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}

/* Status area */
.ed-status-area {
  display: flex; flex-direction: column; align-items: center;
  gap: 6px; margin-bottom: 20px;
}
.ed-status-pill {
  background: rgba(117,170,219,.15); border: 1px solid rgba(117,170,219,.4);
  border-radius: 20px; padding: 5px 14px;
  font-size: 11px; font-weight: 800; color: var(--ed-brand);
  letter-spacing: .8px; text-transform: uppercase;
  animation: edPreviaGlow 2.4s ease-in-out infinite;
}
.ed-status-pill--live {
  background: rgba(239,68,68,.15); border-color: rgba(239,68,68,.4);
  color: var(--ed-live); animation: edLiveGlow 1.5s ease-in-out infinite;
}
.ed-status-pill--ended {
  background: rgba(100,116,139,.12); border-color: var(--ed-muted);
  color: var(--ed-muted); animation: none; letter-spacing: .5px;
}
.ed-status-sub { font-size: 12px; font-weight: 500; color: var(--ed-muted); }

/* Score row */
.ed-score-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 14px;
}
.ed-team-col {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.ed-team-flag {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--ed-bg); border: 1.5px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; font-size: 27px;
}
.ed-team-name { font-size: 14px; font-weight: 700; color: var(--ed-text); text-align: center; }
.ed-team-goals { display: flex; flex-direction: column; gap: 2px; }
.ed-team-goal { font-size: 10px; font-weight: 500; color: var(--ed-muted); line-height: 1.4; text-align: center; }

/* Score center */
.ed-score-center {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.ed-score-pills { display: flex; align-items: center; gap: 8px; }
.ed-score-digit {
  background: rgba(255,255,255,.07); border-radius: 8px;
  padding: 6px 14px; font-size: 30px; font-weight: 900;
  color: var(--ed-text); line-height: 1; letter-spacing: -1px;
  font-variant-numeric: tabular-nums; min-width: 54px; text-align: center;
}
.ed-score-digit--pre { color: rgba(241,245,249,.25); }
.ed-score-sep { font-size: 18px; font-weight: 300; color: var(--ed-separator); }

/* Live indicator */
.ed-live-indicator { display: flex; align-items: center; gap: 5px; }
.ed-live-dot-wrap { position: relative; width: 7px; height: 7px; flex: none; }
.ed-live-dot-ring {
  position: absolute; inset: 0; border-radius: 50%; background: var(--ed-live);
  animation: edRing 1.4s ease-out infinite;
}
.ed-live-dot-core {
  position: absolute; inset: 0; border-radius: 50%; background: var(--ed-live);
  animation: edPulse 1.4s ease-in-out infinite;
}
.ed-live-label { font-size: 11px; font-weight: 900; color: var(--ed-live); letter-spacing: .5px; }
.ed-live-minute { font-size: 11px; font-weight: 600; color: var(--ed-muted); }

/* Competition line */
.ed-competition-line { text-align: center; margin-bottom: 18px; }
.ed-competition-line span { font-size: 11px; font-weight: 500; color: var(--ed-muted); }

/* Card divider */
.ed-card-divider { height: 1px; background: rgba(255,255,255,.06); margin: 0 -20px; }

/* ── Prediction zone (inside hero card) ─────────────────────────────────────── */
.ed-prediction-zone { padding: 14px 0 16px; }
.ed-predict-label {
  font-size: 11px; font-weight: 700; color: var(--ed-muted);
  text-transform: uppercase; letter-spacing: .7px; margin-bottom: 12px;
}
.ed-predict-subcard { background: rgba(0,0,0,.22); border-radius: 12px; padding: 14px; }
.ed-predict-question {
  font-size: 10px; font-weight: 700; color: var(--ed-muted);
  text-transform: uppercase; letter-spacing: .9px; text-align: center; margin-bottom: 14px;
}
.ed-steppers-row { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.ed-stepper-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ed-stepper-team-label { font-size: 11px; font-weight: 700; color: var(--ed-muted); letter-spacing: .6px; }
.ed-stepper-controls {
  display: flex; align-items: stretch; border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}
.ed-stepper-btn {
  width: 36px; background: rgba(255,255,255,.06); border: none;
  font-size: 18px; color: var(--ed-text); font-family: inherit;
  display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer;
}
.ed-stepper-value {
  width: 52px; background: var(--ed-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 900; color: var(--ed-text); font-variant-numeric: tabular-nums;
}
.ed-stepper-sep { font-size: 20px; font-weight: 300; color: var(--ed-separator); padding-top: 20px; }
.ed-predict-confirm-btn {
  width: 100%; height: 44px; background: var(--ed-brand);
  border: none; border-radius: 12px; font-family: inherit;
  font-size: 14px; font-weight: 900; color: var(--ed-bg); cursor: pointer;
}
.ed-predict-confirmed-row {
  display: flex; align-items: center; justify-content: space-between;
}
.ed-predict-result { font-size: 15px; font-weight: 900; color: var(--ed-text); }
.ed-predict-edit-btn {
  background: none; border: none; padding: 4px; cursor: pointer;
  font-size: 13px; color: var(--ed-muted); font-family: inherit;
}

/* ── Venue strip ────────────────────────────────────────────────────────────── */
.ed-venue-strip {
  margin: 12px 20px 0; background: var(--ed-elevated);
  border-radius: 12px; padding: 12px 14px;
}
.ed-venue-main-row { display: flex; align-items: center; gap: 12px; }
.ed-venue-icon-wrap {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(117,170,219,.1);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.ed-venue-text { flex: 1; min-width: 0; }
.ed-venue-name { font-size: 14px; font-weight: 700; color: var(--ed-text); }
.ed-venue-dist { font-size: 12px; color: var(--ed-muted); margin-top: 2px; }
.ed-venue-count-pill {
  display: flex; align-items: center; gap: 5px;
  background: rgba(117,170,219,.1); border: 1px solid rgba(117,170,219,.3);
  border-radius: 20px; padding: 5px 10px; flex: none;
  font-size: 12px; font-weight: 700; color: var(--ed-brand);
}
.ed-recap-strip-btn {
  display: flex; align-items: center; gap: 5px;
  background: rgba(117,170,219,.1); border: 1px solid rgba(117,170,219,.3);
  border-radius: 20px; padding: 5px 10px; flex: none;
  font-size: 12px; font-weight: 700; color: var(--ed-brand);
  cursor: pointer; font-family: inherit;
}
.ed-amenity-scroll { overflow-x: auto; margin: 10px -14px 0; padding: 0 14px; }
.ed-amenity-scroll::-webkit-scrollbar { height: 0; }
.ed-amenity-row { display: flex; gap: 8px; width: max-content; padding-bottom: 2px; }
.ed-amenity-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--ed-bg); border: 0.5px solid rgba(255,255,255,.08);
  border-radius: 20px; padding: 6px 12px; white-space: nowrap;
  font-size: 12px; font-weight: 600; color: #94A3B8;
}

/* ── Video recap CTA ────────────────────────────────────────────────────────── */
.ed-video-cta { margin: 10px 20px 0; }
.ed-video-cta__btn {
  width: 100%; height: 44px; border-radius: 12px; font-family: inherit;
  font-size: 13px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  border: 1.5px solid rgba(124,58,237,.35);
  background: rgba(124,58,237,.07); color: #a78bfa;
}
.ed-video-cta__btn.is-generated,
.ed-video-cta__btn:disabled { opacity: .55; cursor: default; }

/* ── Feed header ────────────────────────────────────────────────────────────── */
.ed-feed-header { margin: 20px 20px 12px; }
.ed-feed-title { font-size: 16px; font-weight: 800; color: var(--ed-text); margin-bottom: 4px; }
.ed-feed-sub { font-size: 12px; color: var(--ed-muted); }

/* ── Hype posts ─────────────────────────────────────────────────────────────── */
.hype-post {
  background: var(--ed-elevated); border-radius: 16px; overflow: hidden;
  margin: 0 20px 12px; border: 1px solid rgba(255,255,255,.06);
}
.hype-post__header { display: flex; align-items: center; gap: 10px; padding: 12px 14px 0; }
.hype-post__avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #fff; flex: none;
}
.hype-post__meta { flex: 1; min-width: 0; }
.hype-post__handle { font-size: 13px; font-weight: 700; color: var(--ed-text); }
.hype-post__time { font-size: 10px; font-weight: 500; color: var(--ed-muted); }
.hype-post__media {
  position: relative; margin: 10px 0 0; background: #0D1420;
  height: 160px; display: flex; align-items: center; justify-content: center;
}
.hype-post__media img, .hype-post__media video {
  width: 100%; height: 100%; object-fit: cover;
}
.hype-post__media-icon { font-size: 32px; opacity: 0.3; }
.hype-post__caption { padding: 10px 14px 6px; font-size: 13px; color: rgba(241,245,249,.7); line-height: 1.4; }
.hype-post__actions { display: flex; align-items: center; padding: 8px 14px 12px; }
.hype-post__action {
  display: flex; align-items: center; gap: 4px;
  background: none; border: none; cursor: pointer;
  font-family: inherit; color: var(--ed-muted); padding: 4px 8px; border-radius: 8px;
}
.hype-post__action-icon { font-size: 14px; }
.hype-post__action-count { font-size: 11px; font-weight: 600; color: var(--ed-muted); }
.hype-post__like-btn.is-liked .hype-post__action-count { color: #ef4444; }

/* ── Empty states ───────────────────────────────────────────────────────────── */
.ed-hype-empty {
  text-align: center; padding: 24px 16px; background: var(--ed-elevated);
  border-radius: 14px; margin: 0 20px 12px; border: 1px solid rgba(255,255,255,.06);
}

/* ── Upload modal ───────────────────────────────────────────────────────────── */
.ed-upload-modal { position: absolute; inset: 0; z-index: 100; }
.ed-upload-modal:not([hidden]) { display: flex; align-items: flex-end; }
.ed-upload-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.65); backdrop-filter: blur(2px);
}
.ed-upload-modal__sheet {
  position: relative; z-index: 1; width: 100%;
  background: var(--ed-elevated);
  border-radius: 20px 20px 0 0; padding: 12px 20px 32px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; gap: 12px;
}
.ed-upload-modal__title { font-size: 15px; font-weight: 800; color: var(--ed-text); text-align: center; }
.ed-upload-modal__file-label {
  display: flex; align-items: center; justify-content: center;
  height: 44px; border-radius: 12px;
  border: 1.5px dashed rgba(117,170,219,.4); background: rgba(117,170,219,.05);
  font-size: 13px; font-weight: 600; color: var(--ed-brand); cursor: pointer;
}
.ed-upload-modal__caption {
  width: 100%; min-height: 72px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12); background: var(--ed-bg);
  color: var(--ed-text); font-family: inherit; font-size: 13px;
  padding: 10px 12px; resize: none; outline: none; box-sizing: border-box;
}
.ed-upload-modal__caption:focus { border-color: var(--ed-brand); }
.ed-upload-modal__submit {
  height: 46px; border-radius: 14px; border: none;
  background: var(--ed-brand); color: var(--ed-bg);
  font-family: inherit; font-size: 14px; font-weight: 800; cursor: pointer;
}
.ed-upload-modal__cancel {
  height: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,.08);
  background: none; color: var(--ed-muted);
  font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.ed-upload-modal__error { font-size: 12px; color: #ef4444; font-weight: 600; text-align: center; }

/* ── Float CTA — outside #eventDetailView so use hardcoded colors ───────────── */
#edFloatCta {
  position: absolute; left: 0; right: 0; bottom: 84px;
  padding: 36px 20px 12px;
  background: linear-gradient(to top, #07090D 55%, transparent);
  pointer-events: none; z-index: 40;
}
.ed-float-cta__btn {
  width: 100%; height: 48px; border-radius: 16px; border: none;
  background: #F1F5F9; color: #07090D;
  font-family: inherit; font-size: 14px; font-weight: 800;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 8px; pointer-events: auto;
}

/* ── Timeline feed ───────────────────────────────────────────────────────────── */
.ed-timeline { padding: 0 20px; position: relative; margin-bottom: 80px; }
.ed-timeline-line {
  position: absolute; left: 37px; top: 36px; bottom: 36px; width: 1px;
  background: linear-gradient(to bottom, #172435 80%, transparent 100%);
  pointer-events: none;
}
.ed-milestone { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.ed-milestone-icon {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: #172435; border: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; z-index: 1;
}
.ed-milestone-content { flex: 1; min-width: 0; padding-top: 6px; }
.ed-milestone-label {
  font-size: 12px; font-weight: 800; color: #475569;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px;
}
.ed-photo-scroll-wrap { position: relative; margin: 0 -20px 0 0; }
.ed-photo-scroll { overflow-x: auto; padding-bottom: 4px; }
.ed-photo-scroll::-webkit-scrollbar { height: 0; }
.ed-photo-row { display: flex; gap: 8px; width: max-content; }
.ed-photo-card {
  width: 140px; height: 110px; border-radius: 10px;
  overflow: hidden; flex: none; position: relative;
  background: rgba(255,255,255,.03);
  border: 1px dashed rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
}
.ed-photo-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.ed-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.6));
}
.ed-photo-user {
  position: absolute; bottom: 8px; left: 8px;
  font-size: 10px; font-weight: 700; color: rgba(255,255,255,.7);
  z-index: 1;
}
.ed-photo-like {
  position: absolute; top: 6px; right: 6px;
  background: rgba(0,0,0,.55); border: none; border-radius: 8px;
  padding: 3px 7px; font-size: 10px; color: #fff;
  cursor: pointer; display: flex; align-items: center; gap: 3px;
  z-index: 1; font-family: inherit;
}
.ed-photo-like.is-liked { color: #ef4444; }
.ed-photo-empty-icon { font-size: 20px; opacity: .4; }
.ed-photo-fade {
  position: absolute; right: 0; top: 0; bottom: 4px; width: 48px;
  background: linear-gradient(to right, rgba(7,9,13,0), rgba(7,9,13,.92));
  pointer-events: none;
}
