.modal-fav-match {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(8, 8, 8, 0.78); /* Dimmed backdrop */
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.modal-content-fav-match {
    position: relative; /* Relative position for close button alignment */
    margin: 16vh auto; /* centered, near the top */
    width: 400px;
    max-width: calc(100% - 32px);
    padding: 42px 34px 34px;
    background: linear-gradient(160deg, #262626 0%, #161616 100%);
    border: 1px solid #353535;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    text-align: center; /* Center content within the modal */
    overflow: hidden;
    animation: modalPopFavMatch 0.35s ease;
}

/* gold accent strip along the top edge */
.modal-content-fav-match::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #fbb03c, #ffd27f);
}

@keyframes modalPopFavMatch {
    from { opacity: 0; transform: translateY(14px) scale(0.97); }
    to   { opacity: 1; transform: none; }
}

/* circular gold icon badge */
.modal-icon-fav-match {
    width: 60px;
    height: 60px;
    margin: 4px auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(251, 176, 60, 0.14);
    border: 1px solid rgba(251, 176, 60, 0.4);
}

.modal-icon-fav-match:empty { display: none; }

.modal-icon-fav-match i {
    font-size: 26px;
    color: #fbb03c;
}

.modal-content-fav-match h2 {
    font-size: 1.7rem !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin: 0 0 12px !important;
}

.modal-content-fav-match p {
    margin: 0 auto !important;
    max-width: 300px;
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #c2c2c2 !important;
}

.modal-content-fav-match p strong,
.modal-content-fav-match p a {
    color: #fbb03c !important;
}

.close-fav-match {
    color: #8a8a8a;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    position: absolute;
    top: 14px;
    right: 18px;
    transition: color 0.2s;
    cursor: pointer;
}

.close-fav-match:hover,
.close-fav-match:focus {
    color: #ffffff;
    text-decoration: none;
}

.modal-header-fav-match h2 {
    color: #ffffff;
    margin: 0;
}

.modal-body-fav-match {
    margin-top: 15px;
    color: #c2c2c2;
}

.modal-button-fav-match {
    background: #fbb03c;
    color: #1a1a1a;
    font-weight: 700;
    border: none;
    padding: 13px 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.15s ease, transform 0.15s ease;
    margin-top: 24px;
}

.modal-button-fav-match:hover {
    background: #ffc05f;
    transform: translateY(-2px);
}

@media (max-width: 768px) { /* only applies to screens with width <= 768px */

  .dekstop {
      display: 'none';
  }
  .mobile {
      display: '';

  }

}