/* ============================================================================
   Sportas › Šiuo metu gyvai page — page-scoped styles
   ----------------------------------------------------------------------------
   File layout:
     1. Page shell
     2. Toolbar (breadcrumb + search + hide-toggle)
     3. Grid of cards (5 per row → responsive down to 1)
     4. Card pieces (image, sport label, title, time, checks, tags)
     5. Responsive
   ============================================================================ */


/* ============================ 1. Page shell ============================ */
.app-shell[data-page="sports"] .content-shell,
.app-shell[data-page="sports-archive"] .content-shell,
.app-shell[data-page="sports-upcoming"] .content-shell,
.app-shell[data-page="sports-episodes"] .content-shell {
  overflow: hidden;
}

.sports-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  height: 100%;
  min-height: 0;
}


/* ============================ 2. Toolbar ============================ */
.sports-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.sports-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--dark4txt);
  text-transform: uppercase;
  flex: 0 0 auto;
}

.sports-breadcrumb-sep {
  color: var(--grey4txt);
  font-weight: 400;
}

.sports-breadcrumb-sub {
  color: var(--dark4txt);
  font-weight: 400;
  text-transform: none;
}

/* Search — same look as packages/drm */
.sports-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  height: 42px;
  padding: 0 12px 0 16px;
  border-radius: var(--radius-sm);
  background: var(--white);
  flex: 1 1 280px;
  min-width: 0;
}

.sports-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--grey4txt);
  background: transparent;
  font: inherit;
}

.sports-search img {
  width: 24px;
  height: 24px;
}

/* Slėpti deaktyvuotus toggle */
.sports-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--dark4txt);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.sports-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sports-toggle-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: background 0.15s ease;
}

.sports-toggle input:checked+.sports-toggle-box {
  background: var(--accent-green);
  border-color: var(--accent-green);
}

.sports-toggle-box::after {
  content: "";
  width: 6px;
  height: 11px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.sports-toggle input:checked+.sports-toggle-box::after {
  opacity: 1;
}


/* ============================ 3. Card grid ============================ */
.sports-grid-wrap {
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}

.sports-grid-wrap::-webkit-scrollbar {
  display: none;
}

.sports-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  padding-bottom: 8px;
}


/* ============================ 4. Card ============================ */
.sports-card {
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(20, 12, 45, 0.06);
  transition: background 0.15s ease;
  cursor: pointer;
}

.sports-card:nth-child(even) {
  background: #DCDCDE;
}

.sports-card:hover {
  background: #ececed;
}

.sports-card-img {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background: linear-gradient(135deg, #6b78a5 0%, #2c3b6f 100%);
  background-size: cover;
  background-position: center;
}

.sports-card-progress {
  height: 6px;
  margin-top: 10px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.sports-card-progress-fill {
  height: 100%;
  background: var(--accent-green);
  border-radius: 999px;
}

.sports-card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0 0;
  height: 100%;
}

.sports-card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.sports-card-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sports-card-cat {
  font-size: 12px;
  color: var(--grey4txt);
  line-height: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sports-card-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  color: var(--dark4txt);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sports-card-time {
  font-size: 13px;
  color: var(--grey4txt);
}

.sports-card-checks {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px 10px;
}

.sports-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--dark4txt);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.sports-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sports-check-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(20, 12, 45, 0.1);
  flex-shrink: 0;
  transition: box-shadow 0.15s ease;
}

.sports-check-box::after {
  content: "";
  width: 7px;
  height: 12px;
  border: solid var(--dark4txt);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.sports-check:has(input:checked) .sports-check-box::after {
  opacity: 1;
}

.sports-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.sports-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--text-color);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

.sports-tag-green {
  background: #cfeed7;
}

.sports-tag-amber {
  background: #fbe7b8;
}


/* ============================ 5. Modal (Redaguoti įvykį) ============================ */
.sports-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: var(--font-body);
}

.sports-modal.is-open {
  display: flex;
}

.sports-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 34, 0.38);
}

.sports-modal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(720px, 100vw - 48px);
  max-height: calc(100vh - 140px);
  padding: 24px 26px 22px;
  border-radius: 16px;
  background: var(--dark4txt) url("../../assets/images/app-bg.png") center / cover no-repeat;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  top: 100px !important;
}

.sports-modal.sports-modal-instance {
  background: transparent;
  pointer-events: none;
}

.sports-modal.sports-modal-instance .sports-modal-overlay {
  display: none;
}

.sports-modal.sports-modal-instance .sports-modal-card {
  pointer-events: auto;
}

.sports-modal.sports-modal-instance .sports-modal-head {
  cursor: move;
  -webkit-user-select: none;
  user-select: none;
}

.sports-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--white);
}

.sports-modal-title-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sports-modal-eyebrow {
  font-size: 14px;
  opacity: 0.9;
}

.sports-modal-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 32px;
  font-weight: 700;
}

.sports-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  flex: 0 0 40px;
}

.sports-modal-close img {
  width: 18px;
  height: 18px;
}

.sports-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 22px 24px;
  border-radius: 14px;
  background: var(--panel-bg);
}

.sports-modal-body::-webkit-scrollbar {
  display: none;
}

.sports-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.sports-field>span {
  font-size: 14px;
  color: var(--dark4txt);
}

.sports-input,
.sports-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--white);
  font: inherit;
  color: var(--dark4txt);
  outline: 0;
}

.sports-input {
  height: 42px;
  padding: 0 14px;
}

.sports-textarea {
  min-height: 90px;
  resize: vertical;
}

.sports-input::placeholder,
.sports-textarea::placeholder {
  color: var(--grey4txt);
}

/* Date / time row — 4 grouped controls */
.sports-daterow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.sports-datebox {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 6px 36px 6px 14px;
  border-radius: var(--radius-sm);
  background: var(--white);
}

.sports-datebox-label {
  font-size: 11px;
  color: var(--grey4txt);
  line-height: 14px;
}

.sports-datebox-value {
  font-size: 14px;
  color: var(--dark4txt);
  line-height: 18px;
}

.sports-datebox-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--grey4txt);
}

/* Image preview */
.sports-img-block {
  position: relative;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--white);
  margin-bottom: 14px;
}

.sports-img-preview {
  aspect-ratio: 16 / 7;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #6b78a5 0%, #2c3b6f 100%);
  background-size: cover;
  background-position: center;
}

.sports-img-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.sports-img-btn {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--dark4txt);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.sports-img-btn:hover {
  background: var(--button-bg-color);
}

.sports-img-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.sports-img-delete svg {
  width: 22px;
  height: 22px;
}

.sports-img-delete svg path:hover {
  fill: var(--accent-green);
}

.sports-datebox {
  cursor: pointer;
}

/* ============================ 5b. Themed calendar + time picker popups ============================ */
.sports-picker {
  position: fixed;
  z-index: 2000;
  display: none;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(20, 12, 45, 0.25);
  padding: 14px;
  font-family: var(--font-body);
  color: var(--dark4txt);
}

.sports-picker.is-open {
  display: block;
}

/* ---- Calendar ---- */
.sports-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.sports-cal-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: var(--button-bg-color);
  color: var(--dark4txt);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.sports-cal-nav:hover {
  background: rgba(123, 85, 203, 0.15);
}

.sports-cal-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--dark4txt);
  text-transform: capitalize;
}

.sports-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 32px);
  gap: 4px;
}

.sports-cal-dow {
  font-size: 11px;
  color: var(--grey4txt);
  text-align: center;
  line-height: 24px;
}

.sports-cal-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--dark4txt);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.sports-cal-cell:hover {
  background: rgba(123, 85, 203, 0.12);
}

.sports-cal-cell.is-other {
  color: rgba(0, 0, 0, 0.25);
}

.sports-cal-cell.is-today {
  outline: 1.5px solid var(--purple);
}

.sports-cal-cell.is-selected {
  background: var(--purple);
  color: var(--white);
  font-weight: 600;
}

/* ---- Time picker ---- */
.sports-time {
  display: grid;
  grid-template-columns: 1fr 1fr 64px;
  gap: 8px;
  width: 220px;
}

.sports-time-col {
  display: flex;
  flex-direction: column;
  height: 168px;
  overflow-y: auto;
  scrollbar-width: none;
  border-radius: 8px;
  background: var(--button-bg-color);
  padding: 4px;
}

.sports-time-col::-webkit-scrollbar {
  display: none;
}

.sports-time-opt {
  flex: 0 0 auto;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--dark4txt);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.sports-time-opt:hover {
  background: rgba(123, 85, 203, 0.12);
}

.sports-time-opt.is-selected {
  background: var(--purple) !important;
  color: var(--white);
  font-weight: 600;
}

.sports-time-ampm {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sports-time-ampm .sports-time-opt {
  height: 50%;
  background: var(--button-bg-color);
}

.sports-modal-actions {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

.sports-modal-save {
  height: 42px;
  padding: 0 32px;
  border: 1px solid var(--white);
  border-radius: var(--radius-sm);
  background: var(--button-bg-color);
  color: var(--dark4txt);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.sports-modal-save:hover {
  background: var(--white);
}


/* ============================ 5c. Image picker modal ============================ */
.sports-picker-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: var(--font-body);
}

.sports-picker-modal.is-open {
  display: flex;
}

.sports-picker-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 34, 0.38);
}

.sports-picker-modal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(880px, 100vw - 48px);
  max-height: calc(100vh - 48px);
  padding: 20px 22px 18px;
  border-radius: 16px;
  background: var(--dark4txt) url("../../assets/images/app-bg.png") center / cover no-repeat;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.sports-picker-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--white);
}

.sports-picker-modal-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
}

.sports-picker-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
}

.sports-picker-modal-close img {
  width: 16px;
  height: 16px;
}

.sports-picker-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 14px;
  border-radius: 14px;
  background: var(--panel-bg);
}

.sports-picker-modal-body::-webkit-scrollbar {
  display: none;
}

.sports-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

/* "+" placeholder card */
.sports-picker-add {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 10px solid white;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sports-picker-add-plus {
  font-size: 96px;
  font-weight: 300;
  color: var(--grey4txt);
  line-height: 1;
  margin-top: 12px;
}

/* Image card */
.sports-picker-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  background: var(--white);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.sports-picker-card.is-selected {
  border-color: var(--accent-green);
}

.sports-picker-card-label {
  font-size: 12px;
  color: var(--dark4txt);
  line-height: 16px;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sports-picker-card-img {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  background: linear-gradient(135deg, #6b78a5 0%, #2c3b6f 100%);
  background-size: cover;
  background-position: center;
}

.sports-picker-card-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent-green);
  display: none;
  align-items: center;
  justify-content: center;
}

.sports-picker-card.is-selected .sports-picker-card-check {
  display: inline-flex;
}

.sports-picker-card-check::after {
  content: "";
  width: 6px;
  height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-1px);
}

.sports-picker-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.sports-picker-card-size {
  font-size: 12px;
  color: var(--grey4txt);
}

.sports-picker-card-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.sports-picker-card-delete svg {
  width: 18px;
  height: 18px;
}

.sports-picker-card-delete svg path:hover {
  fill: var(--accent-green);
}

.sports-picker-modal-actions {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.sports-picker-modal-save {
  height: 42px;
  padding: 0 32px;
  border: 1px solid var(--white);
  border-radius: var(--radius-sm);
  background: var(--button-bg-color);
  color: var(--dark4txt);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.sports-picker-modal-save:hover {
  background: var(--white);
}


/* ============================ 5d. Delete confirm modal ============================ */
.sports-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: var(--font-body);
}

.sports-confirm-modal.is-open {
  display: flex;
}

.sports-confirm-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 34, 0.45);
}

.sports-confirm-modal-card {
  position: relative;
  width: min(460px, 100vw - 48px);
  padding: 20px 22px 18px;
  border-radius: 16px;
  background: var(--dark4txt) url("../../assets/images/app-bg.png") center / cover no-repeat;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

.sports-confirm-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--white);
}

.sports-confirm-modal-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
}

.sports-confirm-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
}

.sports-confirm-modal-close img {
  width: 14px;
  height: 14px;
}

.sports-confirm-modal-panel {
  padding: 18px;
  border-radius: 14px;
  background: var(--panel-bg);
}

.sports-confirm-modal-message {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 20px;
  color: var(--dark4txt);
}

.sports-confirm-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.sports-confirm-modal-btn {
  height: 38px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.sports-confirm-modal-btn--no {
  background: var(--button-bg-color);
  color: var(--dark4txt);
  border-color: var(--white);
}

.sports-confirm-modal-btn--no:hover {
  background: var(--white);
}

.sports-confirm-modal-btn--yes {
  background: var(--accent-pink);
  color: var(--white);
}

.sports-confirm-modal-btn--yes:hover {
  filter: brightness(0.95);
}


/* ============================================================================
   6. Responsive
   ============================================================================ */

@media (max-width: 1400px) {
  .sports-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .sports-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {

  .app-shell[data-page="sports"] .content-shell,
  .app-shell[data-page="sports-archive"] .content-shell,
  .app-shell[data-page="sports-upcoming"] .content-shell,
  .app-shell[data-page="sports-episodes"] .content-shell {
    overflow: auto;
  }

  .sports-page {
    height: auto;
    grid-template-rows: auto auto;
  }

  .sports-grid-wrap {
    overflow: visible;
  }

  .sports-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 620px) {
  .sports-toolbar {
    gap: 10px 12px;
  }

  .sports-toggle {
    order: 2;
    margin-left: auto;
  }

  .sports-search {
    order: 3;
    flex: 0 0 100%;
  }
}

@media (max-width: 600px) {
  .sports-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
}

/* Modal — full-screen at ≤600px (both single + instance clones) */
@media (max-width: 600px) {
  .sports-modal {
    padding: 0;
  }

  .sports-modal-card {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    padding: 18px 18px 16px;
  }

  .sports-modal.sports-modal-instance .sports-modal-card {
    left: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }

  .sports-modal.sports-modal-instance .sports-modal-head {
    cursor: default;
  }

  .sports-modal-title {
    font-size: 22px;
    line-height: 26px;
  }

  .sports-modal-body {
    padding: 16px;
  }

  .sports-daterow {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* ---- Image picker popup — responsive grid + card ---- */
@media (max-width: 900px) {
  .sports-picker-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .sports-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .sports-picker-modal {
    padding: 0;
  }

  .sports-picker-modal-card {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    padding: 16px 14px 14px;
  }

  .sports-picker-modal-title {
    font-size: 18px;
    line-height: 24px;
  }

  .sports-picker-modal-body {
    padding: 12px;
  }

  .sports-picker-add-plus {
    font-size: 44px;
  }
  .sports-modal-card {
 
  top: 0px !important;
}
}

@media (max-width: 420px) {
  .sports-picker-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
}

/* ---- Delete confirm modal — small viewport ---- */
@media (max-width: 480px) {
  .sports-confirm-modal-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .sports-confirm-modal-btn {
    width: 100%;
  }
}