.sp-page--detail { max-width: 720px; margin: 0 auto; padding: 0 0 3rem; }
.sp-hero-detail__backs { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; margin-bottom: 1rem; }
.sp-back--hero { color: rgba(255,255,255,0.9); display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; text-decoration: none; transition: color 0.2s; }
.sp-back--hero:hover { color: #fff; text-decoration: none; }
.sp-back--list { color: rgba(255,255,255,0.75); display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; text-decoration: none; transition: color 0.2s; }
.sp-back--list:hover { color: rgba(255,255,255,0.95); text-decoration: none; }

.sp-hero-detail {
  margin: -1.5rem -1rem 0 -1rem; padding: 2rem 1.5rem 2.25rem;
  background: linear-gradient(160deg, #1e3a2f 0%, #2d5a47 45%, #3d6b52 100%);
  border-radius: 0 0 28px 28px;
  box-shadow: 0 12px 40px rgba(30, 58, 47, 0.35);
  position: relative;
  overflow: hidden;
}
.sp-hero-detail::before {
  content: ''; position: absolute; top: -50%; right: -30%; width: 80%; height: 100%;
  background: radial-gradient(ellipse, rgba(172,221,0,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.sp-hero-detail__badge {
  display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem; border-radius: 999px; margin-bottom: 1rem;
}
.sp-hero-detail__badge--upcoming { background: rgba(172,221,0,0.25); color: #d4f5a6; }
.sp-hero-detail__badge--finished { background: rgba(255,255,255,0.2); color: rgba(255,255,255,0.95); }
.sp-hero-detail__title {
  font-size: 1.75rem; font-weight: 800; color: #fff; margin: 0 0 1rem;
  letter-spacing: -0.03em; line-height: 1.2; text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.sp-hero-detail__meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; font-size: 0.9rem; color: rgba(255,255,255,0.85);
}
.sp-hero-detail__meta-item { display: inline-flex; align-items: center; gap: 0.4rem; }
.sp-hero-detail__meta-item i { color: rgba(172,221,0,0.9); width: 1rem; text-align: center; }
.sp-hero-detail__meta-item--format { background: rgba(172,221,0,0.2); color: #fff; padding: 0.2rem 0.6rem; border-radius: 8px; font-weight: 600; }
.sp-hero-detail__meta-item--count { background: rgba(255,255,255,0.15); padding: 0.2rem 0.6rem; border-radius: 8px; font-weight: 600; }
.sp-hero-detail__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.sp-share-btn--hero {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1rem; font-size: 0.85rem; font-weight: 600;
  border-radius: 10px; background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer; text-decoration: none; transition: all 0.2s;
}
.sp-share-btn--hero:hover { background: rgba(255,255,255,0.25); color: #fff; }
.sp-share-btn--hero.sp-share-btn--cal { background: rgba(172,221,0,0.3); border-color: rgba(172,221,0,0.5); color: #fff; }
.sp-share-btn--hero.sp-share-btn--cal:hover { background: rgba(172,221,0,0.45); color: #fff; }
.sp-share-btn--hero.sp-share-btn--invite { background: rgba(59, 130, 246, 0.35); border-color: rgba(59, 130, 246, 0.5); color: #fff; }
.sp-share-btn--hero.sp-share-btn--invite:hover { background: rgba(59, 130, 246, 0.5); color: #fff; }
@media (min-width: 576px) { .sp-hero-detail { margin-left: -2rem; margin-right: -2rem; padding: 2.5rem 2rem 2.75rem; border-radius: 0 0 32px 32px; } .sp-hero-detail__title { font-size: 2rem; } }

.sp-detail-desc { color: #64748b; line-height: 1.5; margin-bottom: 1.5rem; padding: 1rem 1.25rem; background: #f8fafc; border-radius: 12px; border-left: 4px solid #acdd00; margin-top: 1.5rem; }
.sp-share-btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.75rem; font-size: 0.85rem; border-radius: 8px; background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; cursor: pointer; text-decoration: none; transition: all 0.2s; }
.sp-share-btn:hover { background: #e2e8f0; color: #334155; }
.sp-share-btn--cal { background: rgba(172,221,0,0.12); color: #2d3748; border-color: rgba(172,221,0,0.3); }
.sp-share-btn--cal:hover { background: rgba(172,221,0,0.2); color: #1e3a2f; }
.sp-block--message { padding: 0.75rem 1rem; background: linear-gradient(90deg, rgba(172,221,0,0.08) 0%, #fff 15%); border-left: 4px solid #acdd00; }
.sp-organizer-message { margin: 0; font-size: 0.95rem; color: #374151; }
.sp-organizer-message__icon { color: #acdd00; margin-right: 0.35rem; }
.sp-participant-card__badge--mvp { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; }
.sp-mvp-form { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #e2e8f0; }
.sp-mvp-form__label { display: block; font-size: 0.9rem; font-weight: 600; color: #374151; margin-bottom: 0.4rem; }
.sp-mvp-form__row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.sp-mvp-form__select { max-width: 220px; }
.sp-block--danger { border-left-color: #ef4444; background: linear-gradient(90deg, rgba(239,68,68,0.05) 0%, #fff 15%); }
.sp-block--danger .sp-btn { margin: 0; }
.sp-block--actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.sp-block__form-inline { margin: 0; }
.sp-block__form-inline .sp-btn { margin: 0; }

.sp-block {
  background: #fff; border-radius: 18px; padding: 1.5rem 1.5rem; margin-bottom: 1.25rem; margin-top: 1.25rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.05);
  transition: box-shadow 0.25s, transform 0.25s;
}
.sp-block:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08), 0 2px 6px rgba(172,221,0,0.06); }
.sp-block--score-wrap { margin-top: 1.5rem; background: linear-gradient(145deg, #f8fafc 0%, #fff 50%); border: 1px solid rgba(172,221,0,0.2); }
.sp-block--highlight { border-left: 4px solid #acdd00; background: linear-gradient(90deg, rgba(172,221,0,0.06) 0%, #fff 12%); }
.sp-block__title { font-size: 1.05rem; font-weight: 700; color: #2d3748; margin: 0 0 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; gap: 0.5rem; }
.sp-block__title-icon { color: #acdd00; }
.sp-block__hint { font-size: 0.9rem; color: #64748b; margin: -0.5rem 0 1rem; }
.sp-block__actions { margin-top: 1rem; }
.sp-block--warning { background: linear-gradient(135deg, rgba(245,158,11,0.1) 0%, rgba(245,158,11,0.05) 100%); border: 1px solid rgba(245,158,11,0.3); }
.sp-block--warning .sp-block__hint { margin: 0; }
.sp-block--warning .sp-block__hint i { color: #d97706; margin-right: 0.35rem; }
.sp-block--map .sp-block__address { margin: 0 0 0.75rem; font-size: 0.95rem; color: #475569; }
.sp-block__address-text { font-weight: 500; }
.sp-block__address-city { margin-left: 0.35rem; color: #64748b; }
.sp-map-wrap { border-radius: 12px; overflow: hidden; border: 1px solid #e2e8f0; background: #f1f5f9; }
.sp-map-iframe { width: 100%; height: 280px; border: 0; display: block; }

.sp-creator-panel { border: 1px solid rgba(172,221,0,0.25); background: linear-gradient(180deg, rgba(172,221,0,0.04) 0%, #fff 30%); }
.sp-creator-panel .sp-block__title { border-bottom-color: rgba(172,221,0,0.35); }
.sp-steps { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.6rem; }
.sp-step { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; background: #f1f5f9; border-radius: 14px; font-size: 0.9rem; color: #64748b; border: 1px solid transparent; transition: all 0.25s; }
.sp-step--done { background: linear-gradient(135deg, rgba(172,221,0,0.15) 0%, rgba(172,221,0,0.08) 100%); color: #2d3748; border-color: rgba(172,221,0,0.2); }
.sp-step--active { background: linear-gradient(135deg, rgba(172,221,0,0.22) 0%, rgba(172,221,0,0.12) 100%); color: #1e3a2f; font-weight: 600; border-color: rgba(172,221,0,0.35); }
.sp-step__num { width: 26px; height: 26px; border-radius: 50%; background: #e2e8f0; color: #64748b; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; transition: all 0.25s; }
.sp-step--done .sp-step__num, .sp-step--active .sp-step__num { background: #acdd00; color: #1e3a2f; box-shadow: 0 2px 6px rgba(172,221,0,0.35); }
.sp-step__arrow { width: 22px; height: 2px; background: #e2e8f0; }
@media (max-width: 576px) { .sp-step__arrow { display: none; } }

.sp-participants-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.85rem; }
.sp-participant-card {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.9rem 1.1rem; background: #fff; border-radius: 14px;
  border: 1px solid #e2e8f0; box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.sp-participant-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); border-color: rgba(172,221,0,0.25); }
.sp-participant-card--attended { background: linear-gradient(135deg, rgba(172,221,0,0.08) 0%, rgba(172,221,0,0.04) 100%); border-color: rgba(172,221,0,0.3); }
.sp-participant-card--pending { background: linear-gradient(135deg, rgba(245,158,11,0.08) 0%, rgba(245,158,11,0.04) 100%); border-color: rgba(245,158,11,0.3); }
.sp-participant-card__main { min-width: 0; display: flex; align-items: center; gap: 0.75rem; }
.sp-participant-card__avatar { flex-shrink: 0; }
.sp-participant-card__avatar a { display: block; border-radius: 50%; }
.sp-participant-card__avatar .avatar { display: block; border-radius: 50%; width: 44px; height: 44px; object-fit: cover; border: 2px solid #e2e8f0; transition: border-color 0.2s, box-shadow 0.2s; }
.sp-participant-card__avatar span.avatar { width: 44px; height: 44px; min-width: 44px; font-size: 0.85rem; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #e2e8f0; }
.sp-participant-card:hover .sp-participant-card__avatar .avatar { border-color: rgba(172,221,0,0.4); }
.sp-participant-card--attended .sp-participant-card__avatar .avatar { border-color: rgba(172,221,0,0.5); }
.sp-participant-card__avatar--empty .avatar { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.sp-participant-card__info { min-width: 0; flex: 1; }
.sp-participant-card__name { font-weight: 600; color: #2d3748; text-decoration: none; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-participant-card__name:hover { color: #8ab800; }
.sp-participant-card__badges { margin-top: 0.25rem; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.sp-participant-card__badge { font-size: 0.7rem; padding: 0.15rem 0.4rem; border-radius: 6px; background: #e2e8f0; color: #475569; }
.sp-participant-card__badge--org { background: linear-gradient(135deg, rgba(172,221,0,0.25), rgba(138,184,0,0.2)); color: #2d3748; }
.sp-participant-card__right { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.sp-participant-card__attendance { flex-shrink: 0; font-size: 0.8rem; }
.sp-participant-card__remove { margin: 0; }
.sp-participant-card__remove-btn { padding: 0.35rem 0.5rem; border: none; border-radius: 8px; background: #fee2e2; color: #b91c1c; cursor: pointer; font-size: 0.9rem; }
.sp-participant-card__remove-btn:hover { background: #fecaca; }
.sp-attendance--yes { color: #16a34a; }
.sp-attendance--pending { color: #d97706; }
.sp-attendance--no { color: #94a3b8; }
.sp-attendance--na { color: #94a3b8; }

.sp-attendance-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.5rem; margin-bottom: 1rem; }
.sp-attendance-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; background: #f8fafc; border-radius: 10px; cursor: pointer; border: 1px solid transparent; transition: all 0.2s; }
.sp-attendance-row:hover { background: #f1f5f9; }
.sp-attendance-row__cb { accent-color: #acdd00; width: 1.1rem; height: 1.1rem; cursor: pointer; }
.sp-attendance-row__name { flex: 1; min-width: 0; font-size: 0.9rem; }
.sp-attendance-row__team { width: 22px; height: 22px; border-radius: 6px; background: #e2e8f0; color: #475569; font-size: 0.75rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

.sp-score { display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap; padding: 1rem 0; }
.sp-score__side { text-align: center; }
.sp-score__value { display: block; font-size: 2.5rem; font-weight: 800; color: #acdd00; line-height: 1.2; }
.sp-score__label { font-size: 0.85rem; color: #64748b; }
.sp-score__vs { font-size: 1.25rem; color: #94a3b8; font-weight: 600; }
.sp-score--hero {
  padding: 1.5rem 0;
  background: linear-gradient(135deg, rgba(172,221,0,0.08) 0%, rgba(138,184,0,0.05) 100%);
  border-radius: 16px; margin: 0 -0.5rem;
}
.sp-score--hero .sp-score__value { font-size: 3.25rem; text-shadow: 0 2px 8px rgba(172,221,0,0.25); }
.sp-score--hero .sp-score__vs { font-size: 1.5rem; color: #64748b; }
.sp-score--hero .sp-score__label { font-size: 0.9rem; font-weight: 600; color: #475569; }

.sp-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.sp-photos--single { grid-template-columns: 1fr; max-width: 420px; }
.sp-photos__img { width: 100%; border-radius: 12px; object-fit: cover; }
@media (max-width: 576px) { .sp-photos { grid-template-columns: 1fr; } }
.sp-result-form__grid--single { margin-bottom: 1rem; }
.sp-result-form__photo-one { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid #e2e8f0; }
.sp-gallery--single { grid-template-columns: 1fr; max-width: 480px; }

.sp-block--photos .sp-block__hint { margin-bottom: 1rem; }
.sp-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 576px) { .sp-gallery { grid-template-columns: 1fr; } }
.sp-gallery__item { position: relative; }
.sp-gallery__link {
  display: block; border-radius: 18px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  border: 1px solid #e2e8f0; text-decoration: none; color: inherit; transition: all 0.3s;
}
.sp-gallery__link:hover {
  box-shadow: 0 12px 32px rgba(172,221,0,0.22); border-color: rgba(172,221,0,0.45); transform: translateY(-4px);
  text-decoration: none; color: inherit;
}
.sp-gallery__img {
  width: 100%; display: block; aspect-ratio: 4/3; object-fit: cover;
}
.sp-gallery__label {
  display: block; padding: 0.65rem 1rem; background: #f8fafc; font-size: 0.9rem; font-weight: 600; color: #2d3748;
  text-align: center;
}
.sp-gallery__link:hover .sp-gallery__label { background: rgba(172,221,0,0.12); color: #1e3a2f; }

.sp-table-wrap { overflow-x: auto; margin-bottom: 1rem; }
.sp-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.sp-table th, .sp-table td { padding: 0.5rem 0.75rem; text-align: left; border-bottom: 1px solid #e2e8f0; }
.sp-table th { font-weight: 600; color: #64748b; }
.sp-radio { accent-color: #acdd00; }

.sp-result-form__grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: start; margin-bottom: 1.25rem; }
@media (max-width: 576px) { .sp-result-form__grid { grid-template-columns: 1fr; } .sp-result-form__vs { text-align: center; } }
.sp-result-form__vs { color: #94a3b8; font-weight: 600; padding-top: 1.5rem; }
.sp-result-form__preview img { max-height: 120px; margin-top: 0.5rem; border-radius: 12px; }

.sp-form__label { display: block; font-size: 0.9rem; font-weight: 600; color: #374151; margin-bottom: 0.4rem; }
.sp-form__input { width: 100%; padding: 0.5rem 0.75rem; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 1rem; }
.sp-form__input:focus { outline: none; border-color: #acdd00; box-shadow: 0 0 0 2px rgba(172, 221, 0, 0.2); }

.sp-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: 10px; font-weight: 600; font-size: 0.9rem; border: none; cursor: pointer; text-decoration: none; transition: all 0.2s; }
.sp-btn--primary { background: linear-gradient(135deg, #acdd00 0%, #8ab800 100%); color: #fff; box-shadow: 0 2px 8px rgba(172, 221, 0, 0.3); }
.sp-btn--primary:hover { box-shadow: 0 4px 12px rgba(172, 221, 0, 0.4); transform: translateY(-1px); }
.sp-btn--secondary { background: #f1f5f9; color: #475569; }
.sp-btn--secondary:hover { background: #e2e8f0; color: #334155; }
.sp-btn--ghost { background: transparent; color: #64748b; }
.sp-btn--danger { color: #dc2626; }
.sp-btn--danger:hover { color: #b91c1c; background: #fef2f2; }

.sp-modal .modal-content { border-radius: 16px; border: 1px solid rgba(0,0,0,0.08); overflow: hidden; }
.sp-modal__header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid #e2e8f0; }
.sp-modal__title { margin: 0; font-size: 1.1rem; font-weight: 700; color: #2d3748; }
.sp-modal__close { background: none; border: 0; font-size: 1.5rem; color: #64748b; cursor: pointer; line-height: 1; }
.sp-modal__body { padding: 1.25rem; }
.sp-modal__footer { display: flex; gap: 0.5rem; justify-content: flex-end; padding: 1rem 1.25rem; border-top: 1px solid #e2e8f0; }

.sp-alert { padding: 0.85rem 1.25rem; border-radius: 12px; margin-bottom: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.sp-alert--success { background: rgba(172, 221, 0, 0.15); color: #2d3748; border: 1px solid rgba(172, 221, 0, 0.4); }
.sp-alert--danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.sp-alert--info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.sp-alert--warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.sp-alert--pass { flex-wrap: wrap; }
.sp-alert__link { color: #b45309; font-weight: 600; text-decoration: underline; margin-left: 0.25rem; }
.sp-alert__link:hover { color: #92400e; }
.sp-alert__muted { opacity: 0.9; margin-left: 0.25rem; }
.sp-alert__close { background: none; border: 0; font-size: 1.25rem; opacity: 0.6; cursor: pointer; line-height: 1; }
.sp-btn, a.sp-btn, .sp-back { text-decoration: none !important; }
.sp-btn:hover, a.sp-btn:hover, .sp-back:hover { text-decoration: none !important; }
.sp-participant-card__name { text-decoration: none; }
.sp-participant-card__name:hover { text-decoration: none; }

/* Foto: Fancybox (tāpat kā news) */
.sp-gallery__link { display: block; cursor: pointer; }
.sp-gallery__link:focus { outline: 2px solid var(--sp-accent, #8ab800); outline-offset: 2px; }
