/* ──────────────────────────────────────────────────────────────────────────
   Estilos da camada de nuvem do site público:
   card de jogo personalizado (Início), pílula de filtro (Palpites),
   cards do feed, card de identidade e aviso de encerramento.
   ────────────────────────────────────────────────────────────────────────── */

/* ─── Card de jogo (Início) ─────────────────────────────────────────────────── */
.match-card {
  background: #ffffff;
  border: 1px solid rgba(15, 30, 60, 0.08);
  border-radius: 22px;
  padding: 18px 20px;
  box-shadow: 0 14px 34px rgba(15, 35, 70, 0.10);
  margin-bottom: 16px;
}
.match-card.is-current { box-shadow: 0 18px 40px rgba(20, 120, 80, 0.16); border-color: rgba(34, 197, 119, 0.35); }
.match-card.is-closed { opacity: 0.96; }

.match-card-head {
  display: flex; align-items: center; justify-content: space-between;
  color: #6b7a93; font-weight: 600; font-size: 14px;
}
.mc-time { display: inline-flex; align-items: center; gap: 7px; color: #2b3a55; font-weight: 700; font-size: 17px; }
.mc-countdown { font-size: 12.5px; font-weight: 700; letter-spacing: 0.6px; color: #8a97ad; text-transform: uppercase; }
.mc-icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.match-card-body {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 0 6px;
}
.mc-matchup {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 18px;
}
.mc-team { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.mc-team img {
  width: 64px; height: 64px; border-radius: 14px; object-fit: cover;
  box-shadow: 0 6px 16px rgba(15, 35, 70, 0.16);
}
.mc-team span { font-weight: 800; font-size: 15px; letter-spacing: 0.5px; color: #46546f; }
.mc-vs { font-weight: 900; font-style: italic; font-size: 20px; color: #c2cad8; letter-spacing: -1px; }

.mc-status { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 78px; }
.mc-status > small { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: #9aa6ba; }
.mc-badge {
  display: inline-flex; align-items: center; gap: 5px; justify-content: center;
  padding: 9px 8px; border-radius: 14px; font-weight: 700; font-size: 12.5px;
  text-align: center; line-height: 1.15; min-width: 74px;
}
.mc-badge.is-done { background: #e3f8ec; color: #138a52; flex-direction: column; gap: 2px; }
.mc-badge.is-aberto { background: #eef3ff; color: #3568d4; }
.mc-badge.is-fechado { background: #f1f3f7; color: #8a97ad; }
.mc-badge.is-finished { background: #fdeced; color: #c0455a; }
.mc-check { width: 22px; height: 22px; fill: none; stroke: #1aa563; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.mc-community {
  display: inline-flex; align-items: center; gap: 8px;
  color: #2f8f63; font-weight: 700; font-size: 14px; margin-top: 6px;
}
.mc-community .mc-icon { stroke: #2f8f63; }

.mc-your-pick {
  width: 100%; margin-top: 14px; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  background: #f7f9fc; border: 1px solid rgba(15, 30, 60, 0.08);
  border-radius: 16px; padding: 13px 16px; text-align: left;
}
.mc-your-pick:hover { background: #eef2f8; }
.mc-your-pick-label { font-size: 12px; font-weight: 800; letter-spacing: 0.6px; color: #7a8aa3; }
.mc-your-pick-score { display: inline-flex; align-items: center; gap: 8px; }
.mc-your-pick-score img { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; }
.mc-your-pick-score strong { font-size: 18px; color: #25324a; }
.mc-mini-vs { font-size: 11px; font-weight: 800; color: #aab4c6; }
.mc-combo-tag { font-size: 10.5px; font-weight: 800; color: #b9762a; background: #fdf0db; padding: 3px 7px; border-radius: 999px; }
.mc-edit-icon { margin-left: auto; display: inline-flex; }
.mc-edit-icon svg { width: 18px; height: 18px; fill: none; stroke: #6f7d94; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mc-your-pick-chevron { font-size: 22px; color: #b6c0d0; font-weight: 700; }

.match-card .game-prediction-button { width: 100%; margin-top: 14px; }
.mc-date { color: #2b3a55; font-weight: 800; }

/* ─── Expandir card do jogo ─────────────────────────────────────────────────── */
.mc-expand-toggle {
  width: 100%; margin-top: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: transparent; border: none; color: #6b7a93;
  font-weight: 700; font-size: 13px; padding: 8px;
  border-top: 1px solid rgba(15, 30, 60, 0.07);
}
.mc-expand-toggle:hover { color: #2f8f63; }
.mc-expand-chevron { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s ease; }
.match-card.is-expanded .mc-expand-chevron { transform: rotate(180deg); }

.mc-details { margin-top: 10px; display: grid; gap: 14px; animation: mcDetails 0.2s ease; }
@keyframes mcDetails { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.mc-detail-label {
  display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.7px;
  text-transform: uppercase; color: #9aa6ba; margin-bottom: 8px;
}
.mc-detail-mom {
  background: #f7f9fc; border: 1px solid rgba(15, 30, 60, 0.07);
  border-radius: 14px; padding: 12px 14px;
}
.mc-mom-player { display: inline-flex; align-items: center; gap: 10px; }
.mc-mom-player .player-photo { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.mc-mom-player strong { font-size: 15px; color: #25324a; }
.mc-mom-player.is-empty strong { color: #9aa6ba; font-weight: 600; }

.mc-detail-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mc-detail-col {
  background: #f7f9fc; border: 1px solid rgba(15, 30, 60, 0.07);
  border-radius: 14px; padding: 12px 14px;
}
.mc-stat-entry { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.mc-stat-entry + .mc-stat-entry { border-top: 1px solid rgba(15, 30, 60, 0.05); }
.mc-stat-entry .player-photo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.mc-stat-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: #3a4a63; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-stat-count {
  flex: none; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 7px;
  display: grid; place-items: center; font-weight: 800; font-size: 13px;
  background: #e3f8ec; color: #138a52;
}
.mc-detail-col:last-child .mc-stat-count { background: #eef3ff; color: #3568d4; }
.mc-stat-empty { font-size: 13px; color: #aab4c6; font-weight: 500; }

/* ─── Aviso de encerramento ─────────────────────────────────────────────────── */
.prediction-deadline-note {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: #fcf3e4; border: 1px solid #f0dcb8; border-radius: 18px;
  padding: 16px 18px; color: #7a5a1e; font-size: 15px; margin-top: 4px;
}
.prediction-deadline-note strong { color: #6a4d16; }
.pdn-badge {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  background: #f4a623; color: #5a3d05; font-weight: 700; border-radius: 12px;
  padding: 8px 14px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}
.pdn-badge strong {
  background: #e8901a; color: #fff; border-radius: 8px; padding: 2px 9px;
  font-size: 17px;
}

/* ─── Pílula de filtro (Palpites) ───────────────────────────────────────────── */
.feed-pill-toggle {
  display: inline-flex; gap: 4px; padding: 5px; margin: 4px 0 22px;
  background: #eef2f8; border-radius: 999px;
}
.feed-pill {
  border: none; cursor: pointer; background: transparent; color: #6b7a93;
  padding: 9px 26px; border-radius: 999px; font-weight: 700; font-size: 14px;
  transition: background 0.15s, color 0.15s;
}
.feed-pill.is-active { background: #ffffff; color: #1f6f47; box-shadow: 0 3px 10px rgba(15,35,70,0.10); }

/* ─── Cards do feed (Palpites) ──────────────────────────────────────────────── */
.cloud-feed-grid { display: grid; gap: 14px; }
.cloud-feed-card {
  background: #ffffff; border: 1px solid rgba(15, 30, 60, 0.08);
  border-radius: 18px; padding: 16px; box-shadow: 0 10px 26px rgba(15, 35, 70, 0.07);
}
.cloud-feed-head { display: flex; align-items: center; gap: 12px; }
.cloud-feed-avatar {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover;
  display: grid; place-items: center; font-weight: 800; color: #fff;
  background: var(--avatar-bg, #2f6df6);
}
.cloud-feed-person { display: flex; flex-direction: column; min-width: 0; }
.cloud-feed-person strong { font-size: 15px; color: #23324a; }
.cloud-feed-person small { font-size: 12.5px; color: #7a8aa3; }
.cloud-feed-status {
  margin-left: auto; font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.4px; padding: 4px 10px; border-radius: 999px;
}
.cloud-feed-status.aprovado { background: #e3f8ec; color: #138a52; }
.cloud-feed-status.pendente { background: #fdf0db; color: #b9762a; }
.cloud-feed-status.recusado { background: #fdeced; color: #c0455a; }
.cloud-feed-scores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cloud-feed-score {
  display: inline-flex; align-items: center; gap: 8px;
  background: #f7f9fc; border-radius: 12px; padding: 8px 12px;
}
.cloud-feed-score img { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; }
.cloud-feed-score strong { font-size: 16px; color: #25324a; }
.cloud-feed-player { margin-top: 12px; font-size: 13.5px; font-weight: 600; color: #4a5a76; }

/* ─── Card de identidade no construtor de palpite ───────────────────────────── */
.prediction-identity-card { display: grid; gap: 14px; }
.prediction-identity-row { display: flex; align-items: center; gap: 12px; }
.prediction-identity-avatar {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  display: grid; place-items: center; font-weight: 800; color: #fff;
  background: var(--avatar-bg, #2f6df6);
}
.prediction-identity-info { display: flex; flex-direction: column; }
.prediction-identity-info small { color: #7a8aa3; font-size: 12.5px; }
.prediction-identity-info strong { font-size: 16px; color: #23324a; }
.prediction-handle-field { display: grid; gap: 6px; font-size: 13px; color: #4a5a76; font-weight: 600; }
.prediction-handle-field input {
  padding: 11px 13px; border-radius: 11px; border: 1px solid rgba(15,30,60,0.14);
  font-size: 15px;
}
.field-optional { color: #9aa6ba; font-weight: 500; }

.google-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  cursor: pointer; background: #fff; color: #1f2a44;
  border: 1px solid rgba(0,0,0,0.14); border-radius: 12px; padding: 12px 16px;
  font-weight: 700; font-size: 15px; width: 100%;
}
.google-button:hover { background: #f5f7fb; }

/* ─── Ranking (cards estilo imagem + expandido compacto) ────────────────────── */
.ranking-list { display: grid; gap: 14px; }
.ranking-list .ranking-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: #ffffff; border: 1px solid rgba(15, 30, 60, 0.08); border-radius: 22px;
  padding: 14px 18px; box-shadow: 0 10px 26px rgba(15, 35, 70, 0.07); cursor: pointer;
}
.ranking-list .ranking-row.is-you { background: #eaf7ef; border-color: #abe0c1; box-shadow: 0 12px 28px rgba(31, 122, 71, 0.14); }
.ranking-list .place-badge {
  flex: none; width: 50px; height: 50px; border-radius: 16px;
  display: grid; place-items: center; font-weight: 800; font-size: 19px;
  background: #e6e9f0; color: #5a6781;
}
.ranking-list .ranking-row.gold .place-badge { background: #f7b733; color: #5a3d05; }
.ranking-list .ranking-row.silver .place-badge { background: #c4ccd8; color: #42506a; }
.ranking-list .ranking-row.bronze .place-badge { background: #e0b483; color: #5a3d12; }
.ranking-list .ranking-row .avatar {
  flex: none; width: 54px; height: 54px; border-radius: 50%; object-fit: cover;
  display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--avatar-bg, #2f6df6);
}
.ranking-list .ranking-person { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.ranking-list .ranking-person strong { font-size: 19px; color: #26334c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ranking-list .ranking-row.is-you .ranking-person strong { color: #1f7a47; }
.rank-you-badge {
  flex: none; font-size: 11px; font-weight: 800; letter-spacing: 0.5px;
  background: #1f7a47; color: #fff; padding: 3px 9px; border-radius: 999px;
}
.ranking-list .ranking-score { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.rank-score-main { display: inline-flex; align-items: center; gap: 7px; }
.rank-score-main strong { font-size: 23px; color: #1f7a47; line-height: 1; }
.rank-trophy { width: 22px; height: 22px; fill: none; stroke: #e9a81f; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rank-score-label { font-size: 12px; color: #8a97ad; }
.ranking-list .ranking-chevron { color: #b6c0d0; }

.ranking-details { width: 100%; margin-top: 4px; display: grid; gap: 10px; }
.rank-entry {
  background: #f7f9fc; border: 1px solid rgba(15, 30, 60, 0.07); border-radius: 14px;
  padding: 11px 13px; display: grid; gap: 9px;
}
.ranking-row.is-you .rank-entry { background: #f3fbf6; border-color: #cdebd9; }
.rank-entry-match { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #46546f; }
.rank-flag { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; }
.rank-entry-codes { font-weight: 800; }
.rank-combo-tag { margin-left: auto; font-size: 10px; font-weight: 800; color: #b9762a; background: #fdf0db; padding: 2px 8px; border-radius: 999px; }
.rank-entry-lines { display: flex; flex-wrap: wrap; gap: 6px; }
.rank-line {
  display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 13px;
  padding: 4px 10px; border-radius: 9px; background: #fff; border: 1px solid rgba(15, 30, 60, 0.1); color: #3a4a63;
}
.rank-line.is-hit { background: #e3f8ec; border-color: #bfe9d0; color: #138a52; }
.rank-line.is-miss { background: #fdeef0; border-color: #f3d2d8; color: #b3475a; }
.rank-line i { font-style: normal; font-size: 12px; }
.rank-entry-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rank-entry-player { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: #4a5a76; }
.rank-entry-player .player-photo { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.rank-entry-points strong { color: #1f7a47; font-size: 15px; }
.rank-entry-points { font-size: 12px; color: #8a97ad; }

/* card de identidade: ícone do Google à direita */
.prediction-identity-check { margin-left: auto; display: inline-flex; opacity: 0.9; }

@media (max-width: 560px) {
  .mc-team img { width: 54px; height: 54px; }
  .mc-matchup { gap: 12px; }
  .prediction-deadline-note { flex-direction: column; align-items: flex-start; }
  .ranking-list .ranking-person strong { font-size: 17px; }
}
