/* Favorite team pin — dashboard highlight */
.favorite-pin {
  background: linear-gradient(135deg, rgba(254, 240, 138, 0.12), rgba(10, 50, 24, 0.92));
  border: 1px solid rgba(254, 240, 138, 0.35);
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 22px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.favorite-pin-empty {
  border-style: dashed;
  border-color: rgba(254, 240, 138, 0.25);
}

.favorite-pin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.favorite-pin-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.favorite-pin-team {
  display: flex;
  align-items: center;
  gap: 14px;
}

.favorite-pin-team .flag-img {
  width: 48px;
  height: 36px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.favorite-pin-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--accent);
}

.favorite-pin-sub {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.favorite-pin-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.favorite-btn {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s, background 0.2s;
}

.favorite-btn:hover {
  border-color: var(--line-chalk);
  background: rgba(255, 255, 255, 0.1);
}

.favorite-btn-primary {
  background: var(--accent);
  color: var(--secondary);
  border-color: transparent;
}

.favorite-btn-primary:hover {
  filter: brightness(1.05);
}

.favorite-btn-muted {
  padding: 8px 10px;
  color: var(--text-muted);
}

.favorite-picker {
  margin-top: 8px;
}

.favorite-picker-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.favorite-picker-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: stretch;
}

.favorite-select {
  flex: 1;
  min-width: 180px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--secondary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
}

.favorite-picker-hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.favorite-quick-pin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px dashed rgba(254, 240, 138, 0.4);
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.favorite-quick-pin:hover {
  background: rgba(254, 240, 138, 0.08);
}

.favorite-change-panel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}

.favorite-change-panel.hidden {
  display: none;
}

.favorite-pin-grid {
  display: grid;
  grid-template-columns: 1fr min(340px, 38%);
  gap: 20px;
  align-items: start;
}

.favorite-block-title {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text-secondary);
}

.favorite-block-title-spaced {
  margin-top: 20px;
}

.favorite-matches .match-card-link {
  display: block;
  margin-bottom: 10px;
}

.favorite-matches .match-card.favorite-pinned {
  border-color: rgba(254, 240, 138, 0.55);
  box-shadow: 0 0 0 1px rgba(254, 240, 138, 0.2);
}

.favorite-matches .match-card.favorite-pinned::before {
  content: '⭐';
  position: absolute;
  bottom: 10px;
  right: 12px;
  top: auto;
  font-size: 11px;
  opacity: 0.7;
  pointer-events: none;
}

.favorite-matches .match-card {
  position: relative;
  padding-right: 28px;
}

.favorite-matches .match-meta {
  padding-right: 4px;
}

.favorite-matches .match-meta .match-status {
  max-width: 100%;
  font-size: 10px;
  white-space: nowrap;
}

.favorite-standing {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 14px;
  border: 1px solid var(--border);
}

.favorite-standing-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.favorite-standing-group {
  font-weight: 700;
  color: var(--accent);
  font-size: 13px;
}

.favorite-standing-rank {
  font-size: 12px;
  color: var(--text-muted);
}

.favorite-standing-stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-secondary);
}

.favorite-standing-stats strong {
  color: var(--success);
  font-size: 18px;
}

.favorite-standing-note {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
}

.favorite-news-list .news-card {
  margin-bottom: 10px;
  padding: 14px;
}

.favorite-news-list .news-title {
  font-size: 14px;
}

.favorite-empty {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  padding: 8px 0;
}

/* Global highlights (schedule, standings, news sections) */
.match-card.favorite-pinned,
.match-card-link .match-card.favorite-pinned {
  border-color: rgba(254, 240, 138, 0.5);
  box-shadow: inset 3px 0 0 var(--accent);
}

.standings-table tr.favorite-row {
  background: rgba(254, 240, 138, 0.1);
}

.standings-table tr.favorite-row td {
  border-top: 1px solid rgba(254, 240, 138, 0.25);
  border-bottom: 1px solid rgba(254, 240, 138, 0.25);
}

.standings-table tr.favorite-row .team-cell span:last-child {
  font-weight: 700;
  color: var(--accent);
}

.news-card.favorite-news {
  border-color: rgba(254, 240, 138, 0.4);
  box-shadow: inset 3px 0 0 var(--accent);
}

@media (max-width: 900px) {
  .favorite-pin {
    padding: 16px 14px;
    margin-bottom: 16px;
    border-radius: 14px;
  }

  .favorite-pin-grid {
    grid-template-columns: 1fr;
  }

  .favorite-pin-head {
    flex-direction: column;
  }

  .favorite-pin-actions {
    width: 100%;
  }

  .favorite-pin-team .flag-img {
    width: 40px;
    height: 30px;
  }

  .favorite-pin-title {
    font-size: 1.1rem;
  }

  .favorite-btn {
    flex: 1;
    text-align: center;
    min-height: 40px;
  }

  .favorite-matches .match-card {
    padding: 12px 10px 12px 12px;
  }
}
