﻿.ns {
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #2563eb;

  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  border-radius: 16px;
  padding: 14px;
}

.ns * { box-sizing: border-box; }

.ns-top {
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  margin-bottom: 0 !important;
}

.ns-top .card-body {
  padding-bottom: 10px;
}

.ns-kinds {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.ns-kinds::-webkit-scrollbar { display: none; }

.ns-searchbar {
  display: grid;
  grid-template-columns: 160px 160px minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.ns-season {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.ns-season-label {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.ns-season select {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.ns-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.ns-search-icon {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.ns-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.ns-search input::placeholder {
  color: #94a3b8;
}

.ns-search-clear {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: #475569;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.ns-search-clear:disabled {
  opacity: .45;
}

.ns-chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.ns-chip.is-active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.ns-monthbar {
  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 2px 0 0;
}

.ns-month-side {
  display: flex;
  align-items: center;
}

.ns-month-left {
  justify-content: flex-start;
}

.ns-month-right {
  justify-content: flex-end;
}

.ns-month-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.ns-month {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  min-width: 118px;
}

.ns-week-wrap {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.ns-icon-btn,
.ns-week-arrow {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  font-size: 22px;
  line-height: 1;
  color: #374151;
}

.ns-today {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}

.ns-picker {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ns-picker input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.ns-week {
  display: flex;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px;
}

.ns-week::-webkit-scrollbar { display: none; }

.ns-day {
  min-width: 56px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  padding: 8px 6px;
  text-align: center;
}

.ns-day .w {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}

.ns-day.is-sat .w,
.ns-day.is-active.is-sat .w {
  color: #2563eb;
}

.ns-day.is-sat .d,
.ns-day.is-active.is-sat .d {
  color: #2563eb;
}

.ns-day.is-sun .w,
.ns-day.is-active.is-sun .w {
  color: #dc2626;
}

.ns-day.is-sun .d,
.ns-day.is-active.is-sun .d {
  color: #dc2626;
}

.ns-day .d {
  display: block;
  margin-top: 2px;
  font-size: 18px;
  color: #1f2937;
  font-weight: 800;
}

.ns-day.is-active {
  border: 2px solid #1f2937;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
  transform: translateY(-1px) scale(1.03);
  z-index: 1;
}

.ns-day.is-active.is-sat {
  border-color: #2563eb;
}

.ns-day.is-active.is-sun {
  border-color: #dc2626;
}

.ns-day.is-disabled {
  opacity: .38;
}

.ns-day.is-active .w,
.ns-day.is-active .d {
  color: #1f2937;
}

.ns-day.is-active .w {
  font-size: 14px;
}

.ns-day.is-active .d {
  font-size: 24px;
}

.ns-ad-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.ns-ad-col {
  min-width: 0;
}

.ns-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.ns-card + .ns-card {
  margin-top: 12px;
}

.ns-card-head {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ns-title {
  font-weight: 800;
  color: var(--text);
}

.ns-sub {
  font-size: 12px;
  color: var(--muted);
}

.ns-row {
  display: grid;
  grid-template-columns: minmax(96px, auto) 1fr;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
}

.ns-row:last-child {
  border-bottom: 0;
}

.ns-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  text-align: left;
  padding-top: 2px;
}

.ns-main {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "match live"
    "meta live";
  column-gap: 8px;
  align-items: center;
}

.ns-main-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ns-match {
  grid-area: match;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
}

.ns-team {
  color: #111827;
}

.ns-team.is-loser {
  color: #9ca3af;
}

.ns-score {
  min-width: 14px;
  text-align: center;
  color: #111827;
}

.ns-score.is-winner {
  color: #dc2626;
}

.ns-score-sep,
.ns-versus {
  color: #6b7280;
}

.ns-meta {
  grid-area: meta;
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ns-live-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  border: 1px solid #2563eb;
  color: #1d4ed8;
  background: #eff6ff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}

.ns-live-btn:hover {
  background: #dbeafe;
}

.ns-actions {
  grid-area: live;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.ns-edit-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  border: 1px solid #cbd5e1;
  color: #334155;
  background: #f8fafc;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}

.ns-edit-btn:hover {
  background: #f1f5f9;
}

.ns-weather-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  border: 1px solid #f5c2c7;
  color: #be123c;
  background: #fff1f2;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.ns-weather-btn:hover {
  background: #ffe4e6;
}

.ns-weather-btn.is-clear {
  border-color: #cbd5e1;
  color: #334155;
  background: #f8fafc;
}

.ns-weather-btn.is-clear:hover {
  background: #f1f5f9;
}

.ns-weather-btn:disabled {
  opacity: .78;
  cursor: default;
}

.ns-status {
  margin-left: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #4b5563;
  background: #fff;
}

.ns-status.is-weather-cancel {
  border-color: #f5c2c7;
  background: #fff1f2;
  color: #be123c;
}

.ns-empty,
.ns-error,
.ns-loading {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  color: #6b7280;
}

.ns-error { color: #b91c1c; }

@media (max-width: 768px) {
  .ns-ad-row {
    grid-template-columns: 1fr;
  }

  .ns-searchbar {
    grid-template-columns: 1fr;
  }

  .ns-season {
    padding: 10px;
  }

  .ns-search {
    gap: 8px;
    padding: 10px;
  }

  .ns-search-icon {
    display: none;
  }

  .ns-main-top {
    flex-wrap: wrap;
  }

  .ns-monthbar {
    grid-template-columns: auto auto auto;
    justify-content: center;
    gap: 6px;
  }

  .ns-month-left { justify-content: flex-start; }
  .ns-month-right { justify-content: flex-end; }
}
