.nesine-manset-widget {
  --nm-page: #061822;
  --nm-panel: #0b2532;
  --nm-panel-2: #123247;
  --nm-line: rgba(124, 177, 206, 0.26);
  --nm-text: #f6fbff;
  --nm-muted: #9db5c4;
  --nm-accent: #ffd21f;
  --nm-red: #ed1f3b;
  --nm-cyan: #35a9e6;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--nm-text);
  font-family: Arial, Helvetica, sans-serif;
}

.nesine-manset-widget * {
  box-sizing: border-box;
}

.nesine-manset-widget a {
  color: inherit;
  text-decoration: none;
}

.nm-manset {
  display: grid;
  grid-template-columns: minmax(0, 2.12fr) minmax(288px, 1fr);
  gap: 10px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.nm-manset__hero,
.nm-live-panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 274px;
  overflow: hidden;
  border: 1px solid var(--nm-line);
  border-radius: 8px;
  background: #0a202c;
}

.nm-manset__hero {
  position: relative;
  aspect-ratio: 667 / 274;
}

.nm-hero-slide {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 274px;
  overflow: hidden;
  background: #061822;
}

.nm-hero-slide__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.nm-hero-slide__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 24, 34, 0) 42%, rgba(6, 24, 34, 0.9) 100%),
    linear-gradient(90deg, rgba(6, 24, 34, 0.2), rgba(6, 24, 34, 0.03));
}

.nm-hero-slide__link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.nm-score-badge {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 3;
  min-width: 112px;
  transform: translateX(-50%);
  overflow: hidden;
  border-radius: 4px;
  background: rgba(32, 14, 8, 0.84);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.nm-score-badge__numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 38px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  line-height: 38px;
}

.nm-score-badge__numbers span + span {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.nm-score-badge__time {
  min-height: 25px;
  background: #af1027;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  line-height: 25px;
}

.nm-play-chip {
  position: absolute;
  left: 50%;
  bottom: 76px;
  z-index: 3;
  display: inline-flex;
  overflow: hidden;
  transform: translateX(-50%) skew(-8deg);
  border-radius: 5px;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.3);
  font-weight: 900;
}

.nm-play-chip span {
  display: block;
  padding: 8px 9px;
  transform: skew(8deg);
  line-height: 1;
}

.nm-play-chip__live {
  background: var(--nm-accent);
  color: #061822;
  font-size: 24px;
}

.nm-play-chip__play {
  background: var(--nm-red);
  color: #fff;
  font-size: 13px;
}

.nm-odds-bar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 12px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(var(--nm-odds-count, 2), minmax(0, 1fr));
  gap: 8px;
  max-width: calc(100% - 20px);
  min-width: 0;
}

.nm-odd-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(145, 197, 220, 0.18);
  background: rgba(16, 48, 58, 0.94);
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
}

.nm-odd-button__team {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nm-odd-button__value {
  color: #8fa6b2;
  font-size: 18px;
}

.nm-hero-controls {
  position: absolute;
  right: 14px;
  top: 12px;
  z-index: 4;
  display: flex;
  gap: 6px;
}

.nm-hero-control {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(8, 29, 41, 0.72);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.nm-hero-dots {
  position: absolute;
  left: 50%;
  bottom: 2px;
  z-index: 5;
  display: flex;
  gap: 5px;
  transform: translateX(-50%);
}

.nm-hero-dot {
  width: 22px;
  height: 3px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

.nm-hero-dot.is-active {
  background: var(--nm-accent);
}

.nm-live-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: linear-gradient(180deg, #071b25 0%, #0c2532 100%);
}

.nm-live-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 45px;
  padding: 0 12px;
  border-bottom: 1px solid var(--nm-line);
  background: #061822;
}

.nm-live-panel__title,
.nm-live-panel__count {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 900;
}

.nm-live-panel__title::before {
  width: 16px;
  height: 16px;
  border: 2px solid var(--nm-accent);
  border-radius: 50%;
  content: "";
}

.nm-live-panel__count strong {
  display: inline-grid;
  min-width: 28px;
  height: 20px;
  place-items: center;
  border-radius: 6px;
  background: var(--nm-red);
  color: #fff;
  font-size: 13px;
}

.nm-live-panel__count span {
  color: var(--nm-accent);
  font-size: 12px;
}

.nm-live-list {
  display: grid;
  padding: 8px;
  background:
    linear-gradient(90deg, rgba(7, 27, 37, 0.94), rgba(7, 27, 37, 0.55)),
    url("https://cdnsc.nesine.com/10963720701/www/assets/images/liveBroadcastWidget/football.png");
  background-position: center;
  background-size: cover;
}

.nm-live-match {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 28px;
  gap: 9px;
  align-items: center;
  min-height: 56px;
  padding: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.nm-live-match:last-child {
  border-bottom: 0;
}

.nm-live-match__icon {
  display: grid;
  gap: 3px;
  justify-items: center;
  color: var(--nm-accent);
  font-size: 10px;
  font-weight: 900;
}

.nm-live-match__ball {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #071b25;
  font-size: 11px;
  line-height: 1;
}

.nm-live-match__status {
  display: grid;
  gap: 2px;
  justify-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.nm-live-match__minute {
  color: #fff;
  font-size: 13px;
}

.nm-live-match__teams,
.nm-live-match__scores {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.nm-live-match__teams span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nm-live-match__scores {
  justify-items: end;
  font-size: 13px;
}

.nm-live-panel__footer {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 6px 8px;
  border-top: 1px solid var(--nm-line);
  background: #fff;
  color: #061822;
}

.nm-live-panel__tv {
  display: grid;
  width: 36px;
  height: 28px;
  place-items: center;
  background: var(--nm-accent);
  color: #061822;
  font-size: 14px;
  font-weight: 900;
}

.nm-live-panel__program {
  overflow: hidden;
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.nm-live-panel__program span {
  margin-right: 5px;
  color: var(--nm-red);
}

.nm-live-panel__watch {
  min-height: 24px;
  padding: 0 9px;
  border-radius: 5px;
  background: var(--nm-red);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 24px;
}

.nm-skeleton,
.nm-error-box {
  display: grid;
  height: 100%;
  min-height: 274px;
  place-items: center;
  padding: 18px;
  color: var(--nm-muted);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 860px) {
  .nm-manset {
    grid-template-columns: 1fr;
    overflow: hidden;
  }

  .nm-manset__hero,
  .nm-hero-slide {
    min-height: 0;
  }

  .nm-live-panel {
    min-height: 236px;
  }
}

@media (max-width: 560px) {
  .nm-odds-bar {
    left: 6px;
    right: 6px;
    bottom: 8px;
    gap: 4px;
    max-width: calc(100% - 12px);
  }

  .nm-odd-button {
    min-height: 38px;
    padding: 0 7px;
  }

  .nm-odd-button__team {
    font-size: 12px;
  }

  .nm-odd-button__value {
    font-size: 14px;
  }

  .nm-play-chip {
    bottom: 68px;
  }

  .nm-play-chip__live {
    font-size: 18px;
  }

  .nm-score-badge {
    min-width: 96px;
  }
}

@media (max-width: 430px) {
  .nm-odds-bar {
    grid-template-columns: 1fr;
  }

  .nm-odd-button {
    min-height: 34px;
  }

  .nm-hero-controls {
    right: 8px;
    top: 8px;
  }

  .nm-hero-control {
    height: 28px;
    width: 28px;
  }
}
