/* Kadro kurucu (ana sayfa) */

.lineup-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: #14532d;
}

.lineup-hero .lead {
  color: #4b5563;
}

.pitch-wrap {
  background: #0f3d22;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(15, 61, 34, .25);
}

.pitch svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 110px);
}

.pitch-hint {
  color: #bbf7d0;
  font-size: .9rem;
}

.pitch .player {
  cursor: pointer;
  outline: none;
}

.pitch .player:hover .player-dot,
.pitch .player:focus-visible .player-dot {
  stroke: #fde047;
  stroke-width: 6;
}

/* Sitede paylaşımda boş kalan pozisyonlar */
.pitch .player.is-missing .player-dot {
  stroke: #f87171;
  stroke-width: 8;
  stroke-dasharray: 10 6;
}

.lineup-panel {
  border-radius: 16px;
  border: 0;
}

@media (min-width: 992px) {
  .lineup-panel {
    position: sticky;
    top: 16px;
  }
}

.option-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.option-group button {
  border: 1px solid #1f7a3a;
  background: #fff;
  color: #1f7a3a;
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 600;
  min-height: 40px;
}

.option-group button[aria-checked="true"] {
  background: #1f7a3a;
  color: #fff;
}

.kit-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.kit-group button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px #9ca3af;
}

.kit-group button[aria-checked="true"] {
  box-shadow: 0 0 0 3px #1f7a3a;
}

.lineup-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  max-width: calc(100% - 32px);
  background: #111827;
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 2000;
}

.lineup-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Bağlantılı bildirim tıklanabilir olmalı. */
.lineup-toast.show.has-link {
  pointer-events: auto;
}

.lineup-toast a {
  color: #86efac;
  font-weight: 600;
}

/* Kadro aracı düğmeleri: 2 x 2, eşit genişlik ve yükseklik */
.lineup-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}
.lineup-actions .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .5rem .75rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

/* Ana sayfa: solda kadro aracı, ortada ayraç, sağda maç bulma */
.home-split { align-items: stretch; }
.home-tool, .home-cta { padding: 0 0 1.5rem; }
.home-cta {
  border-bottom: 2px dashed #b7d3c1;
  margin-bottom: 1.5rem;
}
.home-cta h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); color: #14532d; }
.home-cta .lead { color: #4b5563; font-size: 1.05rem; }
@media (min-width: 992px) {
  .home-tool {
    padding-right: 1.75rem;
    border-right: 2px dashed #b7d3c1;   /* ortadaki ayraç: kadro aracı uzun olduğu için onun kenarında */
  }
  .home-cta {
    padding-left: 1.75rem;
    border-bottom: 0; margin-bottom: 0;
    position: sticky; top: 1rem; align-self: flex-start;
  }
}
.home-cta-buttons { display: grid; gap: .75rem; }
.home-cta-buttons[hidden] { display: none; }
/* "Sana en yakın halı saha" kartı, maç türü düğmelerinin yerinde (ana sayfa sağ sütun) */
.home-near { margin-top: .25rem; }
.home-near .near-ask { margin: 0; }
.home-cta-btn {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem; border-radius: 16px;
  text-decoration: none; color: #fff;
  box-shadow: 0 8px 20px rgba(15, 61, 34, .18);
  transition: transform .15s ease, box-shadow .15s ease;
}
.home-cta-btn:hover, .home-cta-btn:focus-visible { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(15, 61, 34, .28); }
.home-cta-btn.is-team { background: linear-gradient(135deg, #14532d, #1f7a3a); }
.home-cta-btn.is-solo { background: linear-gradient(135deg, #1e3a8a, #2563eb); }
.home-cta-btn strong { display: block; font-size: 1.15rem; }
.home-cta-btn small { display: block; opacity: .85; }
.home-cta-icon { font-size: 2rem; line-height: 1; }
.home-steps { padding-left: 1.1rem; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
@media (min-width: 992px) and (max-width: 1199.98px) {
  .home-tool .pitch-wrap { max-width: 380px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { .home-cta-btn { transition: none; } }

/* Maç bul (3 adım) */
.mac-steps { counter-reset: none; }
.mac-step { display: flex; align-items: center; gap: .4rem; color: #6b7280; font-size: .9rem; }
.mac-step + .mac-step::before { content: "›"; margin-right: .4rem; color: #9ca3af; }
.mac-step-num {
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #e5efe8; color: #14532d; font-weight: 700; font-size: .8rem;
}
.mac-step.is-current { color: #14532d; font-weight: 600; }
.mac-step.is-current .mac-step-num, .mac-step.is-done .mac-step-num { background: #1f7a3a; color: #fff; }
.mac-days, .mac-hours { display: flex; flex-wrap: wrap; gap: .4rem; }
.mac-chip { position: relative; cursor: pointer; }
.mac-chip input { position: absolute; opacity: 0; pointer-events: none; }
.mac-chip span {
  display: inline-flex; flex-direction: column; align-items: center;
  min-width: 4.5rem; padding: .4rem .7rem; border-radius: 12px;
  border: 1px solid #1f7a3a; background: #fff; color: #1f7a3a; line-height: 1.15;
}
.mac-chip small { font-size: .72rem; opacity: .8; }
.mac-chip input:checked + span { background: #1f7a3a; color: #fff; }
.mac-chip input:focus-visible + span { outline: 2px solid #258cfb; outline-offset: 2px; }
.mac-chip.is-disabled { cursor: not-allowed; }
.mac-chip.is-disabled span { border-color: #d1d5db; color: #9ca3af; background: #f3f4f6; }

/* Seçilemeyen pozisyonlar (lobide dolu yerler) */
.pitch .player:not([data-i]) { cursor: default; }

/* Kendini yazan üye ve "sen" vurgusu */
.pitch .player.is-me .player-dot { stroke: #fde047; stroke-width: 7; }
.member-legend {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: #16a34a; color: #fff; font-size: .7rem; font-weight: 800;
  border: 2px solid #fff; vertical-align: -.15em;
}

/* Ana sayfa: özel maç linki kutusu */
.match-link { border: 0; border-radius: 16px; background: #f0fdf4; }
.match-link input[readonly] { background: #fff; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.save-status:empty { display: none; }
.save-status.is-muted { color: #6b7280; }
.save-status.is-ok { color: #15803d; }
.save-status.is-warning { color: #b45309; }

/* Özel maç lobisi: ince çerçeve + açık yeşil zemin → ana sayfadaki kadro aracından ayrı bir "lobi" hissi */
.lobby {
  border: 1px solid #a7d7b5;
  border-radius: 20px;
  background: linear-gradient(180deg, #f3fbf5 0, #fff 220px);
  box-shadow: 0 0 0 4px rgba(31, 122, 58, .06);
  padding: 1.25rem;
  margin-top: .25rem;
}
@media (max-width: 575.98px) { .lobby { padding: .85rem .75rem; border-radius: 16px; } }
.lobby-head { padding-bottom: .9rem; border-bottom: 1px dashed #c7e6d0; }
.lobby-code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .06em; text-transform: none; background: #fff; border: 1px solid #a7d7b5; border-radius: 999px; padding: .05rem .5rem; margin-left: .35rem; }
.lobby-kicker { color: #1f7a3a; letter-spacing: .04em; text-transform: uppercase; }
.lobby-head h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); color: #14532d; overflow-wrap: anywhere; }
.lobby-meta { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; color: #374151; }
.lobby-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem 1rem; flex-wrap: wrap; }
.lobby-notime { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .4rem .5rem; padding: .35rem .5rem .35rem .75rem; border-radius: 12px;
  background: #fef2f2; border: 1px solid #fca5a5; color: #111827; font-size: .85rem; margin-left: auto; }
.lobby-notime[hidden] { display: none; }
.lobby-notime svg { color: #dc2626; flex: 0 0 auto; }
.lobby-notime strong { color: #b91c1c; }
.lobby-private { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border-radius: 999px; background: #ecfdf5; border: 1px solid #a7d7b5; color: #14532d; }
.lobby-private svg { flex: 0 0 auto; }
.lobby-meta-label { color: #6b7280; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; margin-right: .2rem; }
.lobby-me { background: #fefce8; border-radius: 12px; padding: .75rem 1rem; }
.lobby .pitch-wrap { max-width: 460px; margin: 0 auto; }

/* Ana sayfa: "Özel Maç Kur" en belirgin düğme; diğerleri "Çok yakında" */
.home-cta-btn { position: relative; }
.home-cta-btn.is-private { background: linear-gradient(135deg, #facc15, #f59e0b); color: #14532d; box-shadow: 0 10px 24px rgba(180, 120, 0, .3); }
.home-cta-btn.is-private:hover, .home-cta-btn.is-private:focus-visible { color: #14532d; }
.home-cta-btn.is-private strong { font-size: 1.3rem; }
.home-cta-btn.is-team, .home-cta-btn.is-solo { opacity: .92; }
.home-cta-icon svg { display: block; }
.soon-badge {
  position: absolute; top: .5rem; right: .6rem;
  background: rgba(255, 255, 255, .92); color: #14532d;
  font-size: .68rem; font-weight: 700; letter-spacing: .02em;
}
.home-cta-btn.is-team > span:nth-child(2), .home-cta-btn.is-solo > span:nth-child(2) { padding-right: 4.5rem; }
/* Ana sayfa: 5 adımlık akış (zaman çizelgesi) */
.home-steps-wrap {
  background: linear-gradient(160deg, #f0fdf4 0%, #ffffff 70%);
  border: 1px solid #bbf7d0; border-radius: 18px;
  padding: 1rem 1.1rem 1.1rem; box-shadow: 0 8px 22px rgba(20, 83, 45, .08);
}
.home-steps-title {
  margin: 0 0 .75rem; font-weight: 800; font-size: .8rem; letter-spacing: .08em;
  text-transform: uppercase; color: #15803d;
}
.home-steps { list-style: none; counter-reset: hstep; padding: 0; margin: 0; position: relative; }
.home-steps li {
  counter-increment: hstep; position: relative; display: flex; align-items: center; gap: .8rem;
  padding: .55rem .25rem .55rem 3.1rem; font-size: 1.02rem; color: #1f2937; line-height: 1.35;
  border-radius: 12px; transition: background-color .2s ease, transform .2s ease;
  animation: hstep-in .45s ease both;
}
.home-steps li:hover { background: rgba(22, 163, 74, .07); transform: translateX(3px); }
.home-steps li:nth-child(2) { animation-delay: .08s; }
.home-steps li:nth-child(3) { animation-delay: .16s; }
.home-steps li:nth-child(4) { animation-delay: .24s; }
.home-steps li:nth-child(5) { animation-delay: .32s; }
/* Numara rozeti */
.home-steps li::before {
  content: counter(hstep); position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 1rem; color: #fff; z-index: 1;
  background: linear-gradient(135deg, #22c55e, #15803d);
  box-shadow: 0 0 0 4px #dcfce7, 0 6px 14px rgba(21, 128, 61, .35);
}
/* Adımları birleştiren çizgi */
.home-steps li:not(:last-child)::after {
  content: ''; position: absolute; left: 1.05rem; top: calc(50% + 1.1rem); height: calc(100% - 1.1rem);
  width: 3px; border-radius: 2px; background: linear-gradient(#86efac, #bbf7d0);
}
.home-steps li:last-child::before { background: linear-gradient(135deg, #facc15, #f59e0b); color: #14532d; box-shadow: 0 0 0 4px #fef3c7, 0 6px 14px rgba(180, 120, 0, .35); }
.home-steps li.is-done::before { content: '\2713'; }
.step-icon {
  flex: 0 0 auto; width: 2.1rem; height: 2.1rem; border-radius: 10px; display: grid; place-items: center;
  background: #dcfce7; color: #15803d;
}
.step-icon svg { width: 1.2rem; height: 1.2rem; }
.step-icon.is-wa { background: #d1fae5; color: #059669; }
.step-icon.is-gold { background: #fef3c7; color: #b45309; }
.step-text strong { color: #14532d; font-weight: 800; }
.step-text .hl-wa { color: #059669; }
.step-text .hl-gold { color: #b45309; background: linear-gradient(transparent 60%, #fde68a 60%); padding: 0 .15rem; }
.step-cta {
  display: inline-block; margin-left: .4rem; padding: .3rem .8rem; border-radius: 999px;
  background: #15803d; color: #fff; font-weight: 700; font-size: .85rem; text-decoration: none;
  box-shadow: 0 4px 10px rgba(21, 128, 61, .3); transition: background-color .2s ease, transform .2s ease;
}
.step-cta:hover, .step-cta:focus-visible { background: #166534; color: #fff; transform: translateY(-1px); }
.step-done { margin-left: .4rem; color: #15803d; font-weight: 700; font-size: .85rem; }
/* Ana sayfa: kayıt ve sıralama teşviki */
.home-rank-promo {
  display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border-radius: 16px;
  background: linear-gradient(135deg, #14532d 0%, #166534 55%, #15803d 100%); color: #ecfdf5;
  box-shadow: 0 10px 24px rgba(20, 83, 45, .28); position: relative; overflow: hidden;
  animation: hstep-in .45s ease .4s both;
}
.home-rank-promo::after {
  content: ''; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 204, 21, .35), transparent 70%); pointer-events: none;
}
.rank-promo-icon {
  flex: 0 0 auto; width: 2.8rem; height: 2.8rem; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #facc15, #f59e0b); color: #14532d; box-shadow: 0 0 0 4px rgba(250, 204, 21, .25);
}
.rank-promo-icon svg { width: 1.5rem; height: 1.5rem; }
.rank-promo-text { flex: 1 1 auto; font-size: .92rem; line-height: 1.4; }
.rank-promo-text strong { display: block; font-size: 1.08rem; color: #fde047; font-weight: 800; }
.rank-promo-cta {
  flex: 0 0 auto; padding: .5rem 1rem; border-radius: 999px; background: #facc15; color: #14532d;
  font-weight: 800; font-size: .9rem; text-decoration: none; white-space: nowrap; position: relative; z-index: 1;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .2); transition: transform .2s ease, background-color .2s ease;
}
.rank-promo-cta:hover, .rank-promo-cta:focus-visible { background: #fde047; color: #14532d; transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .home-rank-promo { animation: none; } .rank-promo-cta:hover { transform: none; } }
@media (max-width: 575.98px) {
  .home-rank-promo { flex-wrap: wrap; }
  .rank-promo-text { flex-basis: calc(100% - 3.7rem); }
  .rank-promo-cta { width: 100%; text-align: center; }
}
@keyframes hstep-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .home-steps li { animation: none; transition: none; }
  .home-steps li:hover, .step-cta:hover { transform: none; }
}
@media (max-width: 575.98px) {
  .home-steps-wrap { padding: .85rem .8rem .9rem; }
  .home-steps li { font-size: .95rem; padding-left: 2.9rem; gap: .6rem; }
  .step-icon { width: 1.9rem; height: 1.9rem; }
}
@media (max-width: 575.98px) {
  .home-cta h1 { font-size: 1.45rem; }
  .home-cta .lead { font-size: .95rem; margin-bottom: .75rem; }
  .home-cta-btn { padding: .8rem 1rem; gap: .75rem; }
  .home-cta-btn.is-team, .home-cta-btn.is-solo { padding: .6rem 1rem; }
  .home-cta-btn.is-team small, .home-cta-btn.is-solo small { display: none; }
}

/* İkinci takım */
.team2-box { background: #f0fdf4; border-radius: 12px; padding: .75rem 1rem; }
.pitch-label { color: #fff; font-weight: 700; text-align: center; margin: 0 0 .5rem; overflow-wrap: anywhere; }
.lobby-hint { color: #4b5563; }

/* Oyuncu kartı: lobide üzerine gelince / dokununca açılan kutu */
.player-card-pop {
  position: absolute; z-index: 1500; width: 15rem; max-width: calc(100vw - 16px);
  background: #fff; border-radius: 12px; padding: .75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.pitch .player.is-checked .player-dot { stroke: #93c5fd; }

/* Geldim */
/* Lobi: "Geldim" ve "Kadrodan ayrıl" yan yana, ikonlu ve belirgin */
.slot-actions { display: flex; gap: .5rem; }
.slot-actions:not(:has(> .btn:not([hidden]))) { display: none; }
.slot-btn { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 3rem; font-weight: 700; border-radius: 12px; white-space: nowrap; }
.slot-btn.btn-success { box-shadow: 0 6px 14px rgba(22, 163, 74, .3); }
.slot-btn.btn-outline-danger { border-width: 2px; background: #fff; }
.slot-btn.btn-outline-danger:hover, .slot-btn.btn-outline-danger:focus-visible { background: #dc2626; color: #fff; }
.slot-btn[hidden] { display: none; }
.checkin-done { color: #15803d; }

/* Ana sayfa: henüz açılmamış düğmeler (gri, tıklanamaz) */
.home-cta-btn.is-disabled {
  background: linear-gradient(135deg, #9ca3af, #6b7280) !important; color: #f3f4f6;
  opacity: 1; box-shadow: none; cursor: not-allowed; user-select: none; filter: grayscale(1);
}
.home-cta-btn.is-disabled:hover, .home-cta-btn.is-disabled:focus-visible { transform: none; box-shadow: none; color: #f3f4f6; }
.home-cta-btn.is-disabled .soon-badge { background: #f3f4f6; color: #374151; }

/* Özel maç linki: girdi tam genişlik; altında aynı genişlikte, eşit paylaşımlı düğme satırı
   ("Linki Paylaş" yeşil, "Lobiye Git" koyu, "Yeni maç kur" mavi). Üçü her zaman yan yana; dar ekranda yazı küçülür. */
.match-link-row { display: flex; flex-direction: column; gap: .5rem; }
.match-link-btns { display: flex; gap: .5rem; }
.match-link-btns > .btn { flex: 1 1 0; min-width: 0; white-space: nowrap; }
@media (max-width: 575.98px) { .match-link-btns { gap: .35rem; } .match-link-btns > .btn { font-size: .8rem; padding: .45rem .3rem; } }
.link-info-box { display: grid; gap: .35rem; }
/* Paylaşım engellenince kutuya kaydırılır ve kısa süre vurgulanır (lineup.js revealLinkInfo). */
.link-info-box.is-flash { animation: link-info-flash 1.2s ease 2; border-radius: 12px; }
@keyframes link-info-flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); } 40% { box-shadow: 0 0 0 6px rgba(220, 38, 38, .35); } }
@media (prefers-reduced-motion: reduce) { .link-info-box.is-flash { animation: none; } }
.link-info { display: flex; align-items: flex-start; gap: .5rem; padding: .45rem .7rem; border-radius: 10px; font-size: .88rem; line-height: 1.35; }
.link-info .li-icon { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .75rem; color: #fff; margin-top: .05rem; }
.link-info.is-ok { background: #f0fdf4; color: #14532d; border: 1px solid #bbf7d0; }
.link-info.is-ok .li-icon { background: #16a34a; }
.link-info.is-warn { background: #fef2f2; color: #111827; border: 1px solid #fecaca; }
.link-info.is-warn .li-icon { background: #dc2626; }
#linkInfo .link-info.is-ok, #linkInfo .link-info.is-ok strong { color: #14532d; }
#linkInfo .link-info.is-warn { color: #111827; } #linkInfo .link-info.is-warn strong { color: #b91c1c; }
/* Paylaşım uyarıları: alt alta satırlar, kırmızı + siyah tonlar (açıklama metni siyah, başlık kırmızı) */
.link-info-title { margin: 0; font-weight: 700; font-size: .88rem; color: #111827; }
.link-info.is-error { background: #fef2f2; border: 1px solid #fca5a5; color: #111827; }
.link-info.is-error .li-icon { background: #dc2626; }
#linkInfo .link-info.is-error, #linkInfo .link-info .li-text { color: #111827; }
#linkInfo .link-info.is-error strong { color: #b91c1c; }
#linkInfo .link-info.is-ok .li-text { color: #14532d; }
#linkInfo .li-text a { color: #b91c1c; font-weight: 700; text-decoration: underline; }

/* Ana sayfa: "Son oynanan maç" (Sizden Gelenler'deki son kadro), tam genişlik */
.home-last-match {
  border-radius: 24px; overflow: hidden; position: relative;
  background: radial-gradient(120% 140% at 0% 0%, #166534 0%, #14532d 45%, #0b3a1f 100%);
  color: #ecfdf5; box-shadow: 0 18px 40px rgba(11, 58, 31, .3);
}
.home-last-match::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .08;
  background-image: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 80px);
}
.last-match-inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 2rem; align-items: center; padding: 2.25rem 2.5rem;
}
.last-match-eyebrow {
  display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border-radius: 999px;
  background: #facc15; color: #14532d; font-weight: 800; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
}
.last-match-team { font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin: .8rem 0 1rem; color: #fff; overflow-wrap: anywhere; }
.last-match-facts { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.last-match-facts li { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: .6rem .75rem; }
.last-match-facts span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #a7f3d0; }
.last-match-facts strong { display: flex; align-items: center; gap: .35rem; font-size: 1.05rem; color: #fff; }
.kit-dot { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); }
.last-match-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: #d1fae5; font-size: .92rem; margin-bottom: 1.25rem; }
.last-match-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.last-match-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.last-match-all { color: #fde047; font-weight: 700; text-decoration: none; }
.last-match-all:hover, .last-match-all:focus-visible { color: #fef08a; text-decoration: underline; }
.last-match-pitch .mini-pitch { margin: 0; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); border-radius: 16px; }
@media (max-width: 991.98px) {
  .last-match-inner { grid-template-columns: 1fr; padding: 1.75rem 1.5rem; gap: 1.5rem; }
}
@media (max-width: 575.98px) {
  .home-last-match { border-radius: 18px; }
  .last-match-inner { padding: 1.25rem 1rem; }
  .last-match-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Lobi: "Ben kesin katılacağım" */
.confirm-btn { width: 100%; padding: .65rem 1rem; border-radius: 12px; color: #14532d; box-shadow: 0 6px 14px rgba(180, 120, 0, .25); }
.confirm-btn:hover, .confirm-btn:focus-visible { color: #14532d; }
.confirm-done { display: flex; flex-wrap: wrap; align-items: center; padding: .55rem .75rem; border-radius: 12px; background: #f0fdf4; border: 1px solid #bbf7d0; }
.confirm-done-text { color: #14532d; font-weight: 700; }
.confirm-tick { display: inline-grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: #16a34a; color: #fff; font-size: .8rem; margin-right: .2rem; }
.owner-legend {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.15rem; height: 1.15rem; border-radius: 50%; background: #14532d; color: #fde047; font-size: .7rem; vertical-align: -.15em;
}

/* Özel maç paneli: "İl ve ilçe | Halı saha adı" açılır kapanır blok (forma renginin altında) */
.place-acc { border: 1px solid #d7e3da; border-radius: 12px; background: #f8fbf9; }
.place-acc > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .7rem .9rem; }
.place-acc > summary::-webkit-details-marker { display: none; }
.place-acc > summary::after { content: ""; width: .6rem; height: .6rem; border-right: 2px solid #15803d; border-bottom: 2px solid #15803d; transform: rotate(45deg); transition: transform .2s; margin-left: auto; flex: 0 0 auto; }
.place-acc[open] > summary::after { transform: rotate(-135deg); }
.place-acc[open] > summary { border-bottom: 1px solid #d7e3da; }
.place-acc .place-acc-sep { color: #94a3b8; margin: 0 .25rem; }
.place-acc .place-acc-body { padding: .3rem .9rem .9rem; }

/* Rakip Takımı Ekle: VS anahtarı (Bizim Takım sahasının altında; açılınca iki saha arasında kalır) */
.vs-toggle { position: relative; }
.vs-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vs-label { display: flex; align-items: center; gap: .65rem; margin: 0; padding: .65rem .75rem; border-radius: 18px; cursor: pointer; user-select: none;
  background: linear-gradient(110deg, #fff 0%, #f0fdf4 100%); border: 2px dashed #86efac; box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
  transition: background .3s, border-color .3s, box-shadow .3s, transform .15s; }
.vs-label:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(21, 128, 61, .15); border-color: #22c55e; }
.vs-input:focus-visible + .vs-label { outline: 3px solid #facc15; outline-offset: 2px; }
.vs-badge { position: relative; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 3px #fff, 0 4px 12px rgba(0, 0, 0, .2); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.vs-red, .vs-blue { position: absolute; top: 0; bottom: 0; width: 50%; }
.vs-red { left: 0; background: linear-gradient(135deg, #ef4444, #b91c1c); }
.vs-blue { right: 0; background: #cbd5e1; transition: background .4s; }
.vs-badge b { position: relative; color: #fff; font-weight: 900; font-size: 1rem; font-style: italic; letter-spacing: -.02em; text-shadow: 0 2px 4px rgba(0, 0, 0, .4); }
.vs-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; line-height: 1.25; }
.vs-text strong { font-size: .95rem; line-height: 1.2; font-weight: 800; color: #14532d; }
.vs-text small { color: #64748b; font-size: .76rem; }
.vs-on { display: none; }
.vs-switch { position: relative; flex: 0 0 auto; width: 54px; height: 30px; border-radius: 999px; background: #e2e8f0; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .12); transition: background .3s; }
.vs-knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: .9rem; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: left .35s cubic-bezier(.34, 1.56, .64, 1), transform .5s ease; }
.vs-input:checked + .vs-label { background: linear-gradient(110deg, #fef2f2 0%, #fff 50%, #eff6ff 100%); border-style: solid; border-color: #facc15; }
.vs-input:checked + .vs-label .vs-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.vs-input:checked + .vs-label .vs-badge { transform: rotate(360deg) scale(1.05); }
.vs-input:checked + .vs-label .vs-switch { background: linear-gradient(90deg, #22c55e, #15803d); }
.vs-input:checked + .vs-label .vs-knob { left: 27px; transform: rotate(360deg); }
.vs-input:checked + .vs-label .vs-off { display: none; }
.vs-input:checked + .vs-label .vs-on { display: inline; }
.vs-input:disabled + .vs-label { opacity: .55; cursor: not-allowed; transform: none; }
.team2-box-title { display: flex; align-items: center; gap: .5rem; font-weight: 800; color: #1e3a8a; margin-bottom: .75rem; }
.vs-mini { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; font-weight: 900; font-style: italic; font-size: .75rem;
  background: linear-gradient(90deg, #dc2626 50%, #1d4ed8 50%); }
.team2-box { border: 1px solid #bfdbfe; background: linear-gradient(180deg, #eff6ff, #fff); }
@media (prefers-reduced-motion: reduce) { .vs-badge, .vs-knob { transition: none; } }

/* Ana sayfa panel başlığının altındaki tanıtım cümlesi: punto aynı (small), renk ve vurgu belirgin */
.hero-intro { display: flex; align-items: flex-start; gap: .5rem; margin-top: .35rem; padding: .45rem .75rem; border-radius: 10px; font-weight: 600; line-height: 1.45;
  background: linear-gradient(90deg, rgba(250, 204, 21, .18), rgba(34, 197, 94, .10)); border-left: 4px solid #facc15; }
.hero-intro > span:last-child { background: linear-gradient(90deg, #14532d, #15803d 55%, #0f766e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-intro-mark { flex: 0 0 auto; line-height: 1.45; }
@media (forced-colors: active) { .hero-intro > span:last-child { color: CanvasText; background: none; } }

/* Ana sayfa alt bölüm: "Son oynanan maç" + "Sana en yakın halı saha" (geniş ekranda yan yana) */
.home-bottom { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 1200px) {
  .home-bottom { flex-direction: row; align-items: stretch; }
  .home-bottom > .home-last-match { flex: 2 1 0; min-width: 0; }
  .home-bottom > .near-card { flex: 1 1 0; min-width: 0; max-width: 420px; }
  .home-bottom:has(> .near-card:not([hidden])) > .home-last-match .last-match-inner { grid-template-columns: 1fr; gap: 1.5rem; padding: 2rem; }
}
.near-card[hidden] { display: none !important; }
.near-card { position: relative; overflow: hidden; display: flex; flex-direction: column; border-radius: 24px; background: #fff;
  box-shadow: 0 18px 40px rgba(11, 58, 31, .14); border: 1px solid #d1fae5; }
.near-head { padding: 1.25rem 1.5rem .75rem; background: linear-gradient(135deg, #f0fdf4, #fefce8); }
.near-eyebrow { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border-radius: 999px;
  background: #14532d; color: #fde047; font-weight: 800; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.near-body { padding: 1.25rem 1.5rem 1.5rem; flex: 1 1 auto; display: flex; flex-direction: column; }
.near-ask { text-align: center; margin: auto 0; }
.near-radar { position: relative; width: 96px; height: 96px; margin: .25rem auto 1rem; display: flex; align-items: center; justify-content: center; }
.near-radar span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #22c55e; opacity: 0; animation: nearPing 2.4s ease-out infinite; }
.near-radar span:nth-child(2) { animation-delay: .8s; }
.near-radar span:nth-child(3) { animation-delay: 1.6s; }
.near-radar b { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #15803d); font-size: 1.6rem; box-shadow: 0 8px 20px rgba(21, 128, 61, .35); }
@keyframes nearPing { 0% { transform: scale(.45); opacity: .9; } 100% { transform: scale(1.15); opacity: 0; } }
.near-title { font-weight: 800; font-size: 1.35rem; color: #14532d; margin: 0 0 .35rem; overflow-wrap: anywhere; }
.near-text { color: #475569; font-size: .92rem; margin-bottom: 1rem; }
.near-btn { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; color: #14532d; border: 0; border-radius: 999px; padding: .55rem 1.15rem;
  background: linear-gradient(135deg, #fde047, #facc15 55%, #f59e0b); box-shadow: 0 4px 14px rgba(250, 204, 21, .35); }
.near-btn:hover { color: #14532d; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(250, 204, 21, .5); }
.near-btn-ghost { border-radius: 999px; font-weight: 700; color: #15803d; border: 2px solid #bbf7d0; padding: .45rem 1rem; background: #fff; }
.near-btn-ghost:hover { background: #f0fdf4; color: #14532d; border-color: #86efac; }
.near-loading { margin: auto 0; text-align: center; color: #15803d; font-weight: 600; }
.near-main { position: relative; }
.near-dist { display: inline-block; margin-bottom: .6rem; padding: .2rem .7rem; border-radius: 999px; background: #dcfce7; color: #15803d; font-weight: 800; font-variant-numeric: tabular-nums; }
.near-place { color: #15803d; font-weight: 600; margin: 0 0 .25rem; }
.near-address { color: #64748b; font-size: .88rem; margin: 0 0 1rem; }
.near-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.near-more { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px dashed #d1d5db; }
.near-more-title { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #94a3b8; margin-bottom: .5rem; }
.near-list { list-style: none; padding: 0; margin: 0; }
.near-list li { display: flex; flex-direction: column; padding: .4rem 0; }
.near-list a { font-weight: 700; color: #14532d; text-decoration: none; overflow-wrap: anywhere; }
.near-list a:hover { text-decoration: underline; }
.near-list-sub { font-size: .8rem; color: #64748b; }
@media (prefers-reduced-motion: reduce) { .near-radar span { animation: none; opacity: .35; } }

/* Ana sayfa: "Zaten aktif bir lobin var" bildirimi (özel maç linkinin üstünde), header ile aynı yeşil-sarı dil. */
.active-lobby { position: relative; overflow: hidden; display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem;
  border-radius: 16px; color: #ecfdf5; box-shadow: 0 10px 24px rgba(20, 83, 45, .25);
  background: radial-gradient(circle at 92% 10%, rgba(250, 204, 21, .22), transparent 45%), linear-gradient(135deg, #14532d 0%, #166534 55%, #15803d 100%); }
.active-lobby::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #facc15; }
.active-lobby-icon { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.35rem; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.active-lobby-body { display: flex; flex-direction: column; gap: .2rem; min-width: 0; flex: 1 1 0; }
.active-lobby-eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; color: #fde68a; }
.active-lobby-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .7);
  animation: activeLobbyPulse 1.8s ease-out infinite; }
@keyframes activeLobbyPulse { 70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
@media (prefers-reduced-motion: reduce) { .active-lobby-dot { animation: none; } }
.active-lobby-team { font-size: 1.05rem; font-weight: 800; color: #fff; line-height: 1.2; overflow-wrap: anywhere; }
.active-lobby-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .15rem; }
.active-lobby-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 999px;
  font-size: .78rem; font-weight: 600; color: #ecfdf5; background: rgba(255, 255, 255, .12); white-space: nowrap; }
.active-lobby-btn { flex: 0 0 auto; font-weight: 800; color: #14532d; background: #facc15; border: 0; border-radius: 999px;
  padding: .55rem 1.1rem; white-space: nowrap; box-shadow: 0 6px 16px rgba(250, 204, 21, .35); transition: transform .15s ease, box-shadow .15s ease; }
.active-lobby-btn:hover, .active-lobby-btn:focus-visible { color: #14532d; background: #fde047; transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(250, 204, 21, .45); }
@media (max-width: 480px) {
  .active-lobby { flex-wrap: wrap; }
  .active-lobby-icon { width: 38px; height: 38px; font-size: 1.15rem; }
  .active-lobby-btn { flex: 1 1 100%; text-align: center; }
}
