.kl-wrap {
  --kl-card: #1a2129;
  --kl-line: #2a333d;
  --kl-text: #e8edf2;
  --kl-muted: #8b98a5;
  --kl-accent: #1fb26b;
  --kl-live: #e5484d;
  direction: rtl; color: var(--kl-text); max-width: 860px; margin: 0 auto;
  font-family: "Segoe UI", Tahoma, sans-serif; line-height: 1.5;
}
.kl-wrap * { box-sizing: border-box; }

.kl-days { display: flex; gap: 6px; justify-content: center; margin: 16px 0; }
.kl-days a {
  color: var(--kl-muted); border: 1px solid var(--kl-line); background: var(--kl-card);
  padding: 6px 16px; border-radius: 20px; text-decoration: none; font-size: 14px;
}
.kl-days a.active { background: var(--kl-accent); color: #fff; border-color: var(--kl-accent); }

.kl-notice { background: #3a2f12; color: #f5d27a; padding: 10px 14px; border-radius: 8px; font-size: 14px; }

.kl-league { margin-top: 24px; }
.kl-league h2 { font-size: 15px; color: var(--kl-muted); margin: 0 0 8px; }

.kl-match {
  display: grid; grid-template-columns: 1fr 110px 1fr; align-items: center;
  background: var(--kl-card); border: 1px solid var(--kl-line); border-radius: 10px;
  padding: 14px; margin-bottom: 8px; cursor: pointer; transition: border-color .15s;
}
.kl-match:hover, .kl-match:focus { border-color: var(--kl-accent); outline: none; }
.kl-team { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.kl-away { flex-direction: row-reverse; }
.kl-team img { width: 32px; height: 32px; object-fit: contain; }
.kl-mid { text-align: center; }
.kl-score, .kl-time { font-size: 20px; font-weight: 700; }
.kl-status { font-size: 12px; color: var(--kl-muted); }
.kl-status.kl-live { color: var(--kl-live); font-weight: 700; }
.kl-status.kl-live::before { content: "● "; animation: kl-blink 1s infinite; }
@keyframes kl-blink { 50% { opacity: .3; } }

.kl-empty { text-align: center; color: var(--kl-muted); padding: 60px 0; }
.kl-foot { color: var(--kl-muted); font-size: 13px; text-align: center; padding: 30px 0; }
.kl-muted { color: var(--kl-muted); margin: 6px 0 14px; }

.kl-modal { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; z-index: 99999; padding: 16px; }
.kl-modal[hidden] { display: none; }
.kl-modal-box { background: var(--kl-card); border: 1px solid var(--kl-line); border-radius: 12px; padding: 24px; width: 100%; max-width: 420px; position: relative; }
.kl-modal-box h3 { font-size: 18px; margin: 0; color: var(--kl-text); }
.kl-close { position: absolute; top: 8px; left: 12px; background: none; border: none; color: var(--kl-muted); font-size: 26px; cursor: pointer; }
.kl-watch {
  display: block; background: var(--kl-accent); color: #fff !important; text-decoration: none !important;
  padding: 12px; border-radius: 8px; text-align: center; font-weight: 700; margin-bottom: 8px;
}

@media (max-width: 520px) {
  .kl-match { grid-template-columns: 1fr 80px 1fr; padding: 10px; }
  .kl-team, .kl-away { flex-direction: column; text-align: center; gap: 6px; font-size: 13px; }
  .kl-team img { width: 28px; height: 28px; }
}
