html,
body.legacy-live-standalone {
  min-height: 100%;
}

body.legacy-live-standalone {
  box-sizing: border-box;
  margin: 0;
  padding: 28px;
  color: #172033;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #08751d;
  background-image:
    linear-gradient(
      rgba(4, 44, 13, 0.18),
      rgba(4, 44, 13, 0.18)
    ),
    url('/images/grass.jpg');
  background-repeat: repeat;
  background-attachment: fixed;
}

.legacy-live-standalone *,
.legacy-live-standalone *::before,
.legacy-live-standalone *::after {
  box-sizing: border-box;
}

.legacy-live-standalone .legacy-live-scores {
  width: 100%;
  max-width: 1900px;
  margin: 0 auto;
}

/*
 * Επικεφαλίδα
 */

.legacy-live-standalone__header {
  min-height: 116px;
  margin: 0 auto 20px;
  color: #fff;
  text-align: center;
}

.legacy-live-standalone__logo {
  display: block;
  width: 100px;
  height: 100px;
  margin: 0 auto 8px;
  object-fit: contain;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.28));
}

.legacy-live-standalone__logo[hidden] {
  display: none;
}

.legacy-live-standalone__header p {
  margin: 3px 0;
  font-size: 13px;
  line-height: 1.45;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.75);
}

.legacy-live-standalone__header strong {
  color: #fff;
  font-size: 14px;
}

.legacy-live-standalone__status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

/*
 * Λίστα αγώνων
 */

.legacy-live-standalone .legacy-live-scores__list {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(min(100%, 340px), 450px));
  justify-content: center;
  align-items: start;
  gap: 24px;
}

/*
 * Κάρτα αγώνα
 */

.legacy-live-standalone .legacy-live-scores__game {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.99),
      rgba(249, 251, 253, 0.99)
    );
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.24),
    0 3px 10px rgba(0, 0, 0, 0.12);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.legacy-live-standalone .legacy-live-scores__game:hover {
  transform: translateY(-2px);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.27),
    0 5px 14px rgba(0, 0, 0, 0.13);
}

/*
 * Διοργάνωση, γήπεδο και ημερομηνία
 */

.legacy-live-standalone .legacy-live-scores__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
  padding: 0 2px 11px;
  border-bottom: 1px solid #e5e9ef;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.legacy-live-standalone .legacy-live-scores__meta > :first-child {
  min-width: 0;
  overflow: hidden;
  color: #334155;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legacy-live-standalone .legacy-live-scores__meta > :last-child {
  flex-shrink: 0;
  text-align: right;
}

.legacy-live-standalone .legacy-live-scores__meta a {
  color: #475569;
  font-weight: 600;
  text-decoration: none;
}

.legacy-live-standalone .legacy-live-scores__meta a:hover,
.legacy-live-standalone .legacy-live-scores__meta a:focus {
  color: #0f766e;
  text-decoration: underline;
}

/*
 * Ώρα έναρξης
 */

.legacy-live-standalone .legacy-live-scores__start {
  width: fit-content;
  margin: 11px auto 0;
  padding: 6px 11px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
}

.legacy-live-standalone .legacy-live-scores__start strong {
  color: #172033;
  font-weight: 800;
}

/*
 * Ομάδες και σκορ
 */

.legacy-live-standalone .legacy-live-scores__scoreboard {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(78px, auto)
    minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 150px;
  padding: 18px 2px 16px;
}

.legacy-live-standalone .legacy-live-scores__team {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.legacy-live-standalone .legacy-live-scores__team img {
  display: block;
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 4px 7px rgba(15, 23, 42, 0.13));
}

.legacy-live-standalone .legacy-live-scores__team span {
  display: -webkit-box;
  max-height: 54px;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-transform: uppercase;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.legacy-live-standalone .legacy-live-scores__score {
  display: grid;
  min-height: 52px;
  place-items: center;
  align-content: center;
  text-align: center;
}

.legacy-live-standalone .legacy-live-scores__score strong {
  display: block;
  min-width: 76px;
  padding: 10px 12px;
  border-radius: 13px;
  background: #111827;
  box-shadow: 0 7px 16px rgba(15, 23, 42, 0.18);
  color: #fff;
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.legacy-live-standalone .legacy-live-scores__score small {
  display: block;
  margin-top: 7px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

/*
 * Κατάσταση αγώνα
 */

.legacy-live-standalone .legacy-live-scores__state {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid #dbe5f0;
  border-radius: 11px;
  background: #edf4fb;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.legacy-live-standalone
  .legacy-live-scores__state--centered {
  justify-content: center;
  text-align: center;
}

.legacy-live-standalone
  .legacy-live-scores__state strong {
  display: inline-flex;
  min-width: 34px;
  min-height: 25px;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 900;
}

/*
 * Γεγονότα αγώνα
 */

.legacy-live-standalone .legacy-live-scores__events {
  display: grid;
  gap: 6px;
  margin: 11px 0 0;
  padding: 0;
  list-style: none;
}

.legacy-live-standalone .legacy-live-scores__events li {
  display: grid;
  grid-template-columns:
    42px
    minmax(86px, 0.8fr)
    minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid #edf0f4;
  border-radius: 9px;
  background: #fff;
  color: #475569;
  font-size: 12px;
  line-height: 1.3;
}

.legacy-live-standalone
  .legacy-live-scores__events li:hover {
  border-color: #d9e1ea;
  background: #f8fafc;
}

.legacy-live-standalone
  .legacy-live-scores__events li strong {
  color: #172033;
  font-weight: 800;
}

.legacy-live-standalone
  .legacy-live-scores__event-minute {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 3px 6px;
  border-radius: 7px;
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 900;
  text-align: center;
}

/*
 * Κενή κατάσταση
 */

.legacy-live-standalone .legacy-live-scores__empty,
.legacy-live-standalone .legacy-live-scores__notice {
  grid-column: 1 / -1;
  max-width: 620px;
  margin: 0 auto;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  background: rgba(5, 37, 13, 0.68);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(5px);
}

/*
 * Καταστάσεις φόρτωσης
 */

.legacy-live-standalone .legacy-live-scores.is-loading
  .legacy-live-scores__list {
  opacity: 0.82;
}

.legacy-live-standalone
  .legacy-live-scores.is-stale
  .legacy-live-standalone__header::after {
  display: block;
  width: fit-content;
  margin: 7px auto 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(127, 29, 29, 0.85);
  color: #fff;
  content: 'Προσωρινή αδυναμία ενημέρωσης';
  font-size: 12px;
  font-weight: 700;
}

/*
 * Tablet
 */

@media (max-width: 1200px) {
  body.legacy-live-standalone {
    padding: 22px;
  }

  .legacy-live-standalone .legacy-live-scores__list {
    grid-template-columns:
      repeat(auto-fit, minmax(min(100%, 330px), 450px));
    gap: 20px;
  }
}

/*
 * Κινητό
 */

@media (max-width: 700px) {
  body.legacy-live-standalone {
    padding: 12px;
    background-attachment: scroll;
  }

  .legacy-live-standalone__header {
    min-height: 104px;
    margin-bottom: 15px;
  }

  .legacy-live-standalone__logo {
    width: 82px;
    height: 82px;
  }

  .legacy-live-standalone .legacy-live-scores__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .legacy-live-standalone .legacy-live-scores__game {
    padding: 14px;
    border-radius: 15px;
  }

  .legacy-live-standalone .legacy-live-scores__scoreboard {
    grid-template-columns:
      minmax(0, 1fr)
      70px
      minmax(0, 1fr);
    gap: 8px;
    min-height: 138px;
    padding: 16px 0 14px;
  }

  .legacy-live-standalone .legacy-live-scores__team {
    gap: 8px;
    font-size: 12px;
  }

  .legacy-live-standalone .legacy-live-scores__team img {
    width: 56px;
    height: 56px;
  }

  .legacy-live-standalone .legacy-live-scores__score strong {
    min-width: 65px;
    padding: 9px 8px;
    font-size: 20px;
  }

  .legacy-live-standalone .legacy-live-scores__events li {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 7px;
  }

  .legacy-live-standalone
    .legacy-live-scores__events li > :last-child {
    grid-column: 2;
  }
}

/*
 * Πολύ μικρές οθόνες
 */

@media (max-width: 380px) {
  .legacy-live-standalone .legacy-live-scores__game {
    padding: 12px;
  }

  .legacy-live-standalone .legacy-live-scores__scoreboard {
    grid-template-columns:
      minmax(0, 1fr)
      58px
      minmax(0, 1fr);
    gap: 5px;
  }

  .legacy-live-standalone .legacy-live-scores__team {
    font-size: 11px;
  }

  .legacy-live-standalone .legacy-live-scores__team img {
    width: 49px;
    height: 49px;
  }

  .legacy-live-standalone .legacy-live-scores__score strong {
    min-width: 55px;
    padding: 8px 6px;
    font-size: 18px;
  }
}

/*
 * Προσβασιμότητα
 */

@media (prefers-reduced-motion: reduce) {
  .legacy-live-standalone .legacy-live-scores__game {
    transition: none;
  }
}