/* ==========================================================================
   POR — Fun Match Minisoccer: hero penuh lebar (por.php, di bawah daftar cabor)
   Latar gelap bergaris diagonal, ornamen lapangan, gawang berjaring + bola.
   ========================================================================== */
.fm-section {
  --fm-slant: 36px;
  position: relative; z-index: 21; overflow: clip; color: #fff; scroll-margin-top: 96px;
  margin-top: calc(var(--fm-slant) * -1);
  clip-path: polygon(0 var(--fm-slant), 100% 0, 100% 100%, 0 100%);
  background:
    linear-gradient(180deg, rgba(0, 51, 102, 0) 72%, rgba(0, 51, 102, .9) 100%),
    radial-gradient(760px 360px at 100% 8%, rgba(76, 175, 80, .34), transparent 62%),
    radial-gradient(520px 300px at 0% 60%, rgba(245, 124, 0, .12), transparent 65%),
    linear-gradient(135deg, #001d3d 0%, #003366 48%, #0a5a3a 100%);
}
.fm-section::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .045) 0 2px, transparent 2px 26px);
}
.fm-section::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(255, 255, 255, .08); pointer-events: none; }
.fm-wrap { position: relative; z-index: 2; padding-top: calc(var(--fm-slant) + 40px); padding-bottom: 8px; }

/* Garis lapangan sangat tipis: lingkaran tengah, garis tengah, kotak penalti */
.fm-pitch { position: absolute; z-index: 0; left: -300px; bottom: 56px; width: 640px; height: auto; color: rgba(255, 255, 255, .09); pointer-events: none; }
@media (min-width: 900px) { .fm-pitch { left: -6%; bottom: 40px; width: 940px; } }

.fm-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
@media (min-width: 900px) { .fm-section { --fm-slant: 56px; } .fm-in { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: 36px; } .fm-wrap { padding-top: calc(var(--fm-slant) + 52px); } }

/* ---------- Ilustrasi gawang + bola (dekoratif) ---------- */
.fm-art { --b: 26px; position: absolute; z-index: 1; right: 12px; top: calc(var(--fm-slant) + 8px); width: 128px; height: 84px; opacity: .6; pointer-events: none; }
.fm-goal { position: absolute; left: 0; top: 0; width: 100%; height: auto; color: rgba(255, 255, 255, .42); transform-origin: 50% 100%; }
.fm-shadow { position: absolute; left: 22%; bottom: -2px; width: calc(var(--b) * 1.3); height: calc(var(--b) * .22); border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .38), transparent); }
.fm-ball { position: absolute; left: 26%; bottom: 0; width: var(--b); height: var(--b); }
.fm-ballx, .fm-bally { display: block; width: 100%; height: 100%; }
.fm-ballsvg { display: block; width: 100%; height: 100%; color: #0b2a4a; fill: #fff; stroke-width: 1.4; }
@media (min-width: 900px) {
  .fm-art { --b: 54px; right: 3%; top: calc(var(--fm-slant) + 40px); width: 330px; height: 214px; opacity: .85; }
}
@media (prefers-reduced-motion: no-preference) {
  .fm-anim .fm-ballx { opacity: 0; transform: translateX(calc(var(--b) * -3.6)); }
  .fm-anim.fm-go .fm-ballx { animation: fmBallX .9s cubic-bezier(.2, .7, .3, 1) both; }
  .fm-anim.fm-go .fm-bally { animation: fmBallY .9s cubic-bezier(.33, 0, .4, 1) both; }
  .fm-anim.fm-go .fm-ballsvg { animation: fmBallSpin .9s cubic-bezier(.2, .7, .3, 1) both; }
  .fm-anim.fm-go .fm-goal { animation: fmNet .2s ease-out .78s both; }
  .fm-go .fm-ball { animation: fmFloat 3s ease-in-out 1.1s infinite alternate; }
}
@keyframes fmBallX { from { opacity: 0; transform: translateX(calc(var(--b) * -3.6)); } 15% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes fmBallY { 0% { transform: translateY(calc(var(--b) * .2)); } 45% { transform: translateY(calc(var(--b) * -1.2)); } 100% { transform: none; } }
@keyframes fmBallSpin { from { transform: rotate(0); } to { transform: rotate(540deg); } }
@keyframes fmNet { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); } }
@keyframes fmFloat { from { transform: translateY(0); } to { transform: translateY(-3px); } }

.fm-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; margin-bottom: 14px;
  background: #ffd700; color: #1f2937; font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
}
.fm-date { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 800; font-size: 15px; color: rgba(255, 255, 255, .92); }
.fm-date svg { color: #ffd700; }
.fm-desc { margin-top: 10px; max-width: 34rem; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .78); }

.fm-panel { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); padding: 16px 16px 18px; min-width: 0; backdrop-filter: blur(4px); }
.fm-k { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
.fm-count { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 10px; text-align: center; }
.fm-count > div { background: rgba(0, 0, 0, .22); padding: 8px 2px 6px; min-width: 0; }
.fm-count b { display: block; font-family: 'Barlow Condensed', 'Plus Jakarta Sans', sans-serif; font-style: italic; font-weight: 800; font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums; }
.fm-count span { display: block; margin-top: 4px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.fm-regs { margin-top: 12px; font-size: 14px; font-weight: 700; color: rgba(255, 255, 255, .9); }
.fm-regs b { color: #ffd700; font-size: 1.15em; }
.fm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 16px; }
.fm-closed { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; background: rgba(239, 68, 68, .16); border: 1px solid rgba(252, 165, 165, .5); color: #fecaca; font-weight: 800; font-size: 14px; }
.fm-share {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border: 2px solid rgba(255, 255, 255, .55); color: #fff; font-weight: 800; font-size: 14px; background: transparent; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.fm-share:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.fm-share:focus-visible, .fm-section .por-btn:focus-visible { outline: 3px solid #ffd700; outline-offset: 3px; }

/* ---------- Kartu ringkas setelah tim diumumkan ---------- */
#fmTimerBox { max-height: 220px; overflow: hidden; transition: max-height .3s ease, opacity .25s ease, margin .3s ease; }
#fmCard.is-ringkas #fmTimerBox { max-height: 0; opacity: 0; margin: 0; visibility: hidden; transition: max-height .3s ease, opacity .25s ease, margin .3s ease, visibility 0s .3s; }
#fmCard.is-ringkas #fmDaftar, #fmCard.is-ringkas #fmClosed { display: none; }
.fm-share, .fm-section .por-btn, .fm-tim-retry { -webkit-tap-highlight-color: transparent; }

/* ---------- Blok Pembagian Tim ---------- */
.fm-tim {
  position: relative; margin: 26px -16px 0; padding: 22px 14px 20px; background: #fff; color: #1f2937;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .55); min-width: 0; overflow-x: clip;
}
@media (min-width: 640px) { .fm-tim { margin: 28px 0 0; } }
.fm-tim-head { margin-bottom: 14px; padding: 0 4px; }
.fm-tim-head h3 { display: flex; align-items: center; gap: 10px; font-size: 2.2rem; line-height: 1; color: #003366; }
.fm-tim-head h3 svg { flex: none; color: #f57c00; }
.fm-tim-meta { margin-top: 6px; font-size: 13px; font-weight: 600; color: #6b7280; line-height: 1.4; }
.fm-tim-body { min-width: 0; }
@keyframes fmTimIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.fm-tim.fm-tim-in { animation: fmTimIn .3s cubic-bezier(.2, .7, .2, 1) both; }
.fm-tim-err { padding: 18px 8px; text-align: center; color: #4b5563; font-size: 14px; font-weight: 600; }
.fm-tim-retry {
  min-height: 44px; margin-top: 10px; padding: 0 22px; background: #003366; color: #fff; font-weight: 800; font-size: 14px;
  border: 0; cursor: pointer; transition: background .2s;
}
.fm-tim-retry:hover { background: #0a4a8a; }
.fm-tim-retry:focus-visible { outline: 3px solid #ffd700; outline-offset: 2px; }
@media (min-width: 640px) { .fm-tim { padding: 28px 24px 26px; } .fm-tim-head h3 { font-size: 2.8rem; } }
@media (max-width: 380px) { .fm-tim { padding-left: 10px; padding-right: 10px; } }
@media (prefers-reduced-motion: reduce) {
  #fmTimerBox, #fmCard.is-ringkas #fmTimerBox { transition: none; }
  .fm-ball, .fm-ballx, .fm-bally, .fm-ballsvg, .fm-goal { animation: none !important; }
  .fm-ballx { opacity: 1 !important; transform: none !important; }
  .fm-tim.fm-tim-in { animation: none; }
}

/* ---------- Teks status pendaftaran dan catatan pembaruan ---------- */
.fm-buka { margin-top: 6px; font-family: 'Barlow Condensed', 'Plus Jakarta Sans', sans-serif; font-style: italic; font-weight: 800; font-size: 1.5rem; line-height: 1.1; color: #fff; }
.fm-buka.hidden { display: none; }
.fm-updated { margin-top: 28px; padding: 16px 0; text-align: center; font-size: 12px; line-height: 1.4; color: rgba(255, 255, 255, .55); border-top: 1px solid rgba(255, 255, 255, .08); }
.fm-updated:empty { display: none; }
