/* Mobile League Picker
   WHY: Ersetzt den engen Swipe-Filter mobil durch ein grosses Bottom-Sheet,
   ohne die bestehende Liga-Filter-Logik zu duplizieren. */

.mobile-filter-card,
.mobile-league-picker {
  display: none;
}

@media (max-width: 600px) {
  .mobile-filter-card {
    width: 100%;
    display: grid;
    gap: 6px;
    margin: 0 0 10px;
    padding: 8px;
    border: 1px solid rgba(28, 48, 60, .95);
    border-radius: 16px;
    background:
      radial-gradient(circle at 10% 0%, rgba(0,230,118,.09), transparent 44%),
      linear-gradient(145deg, rgba(18,27,38,.92), rgba(8,13,20,.96));
    box-shadow:
      0 0 0 1px rgba(255,255,255,.025) inset,
      0 10px 24px rgba(0,0,0,.22),
      0 0 14px rgba(0,230,118,.06);
    transition: opacity .18s ease, transform .18s ease;
  }

  .mobile-filter-card.is-open {
    opacity: 0;
    transform: translateY(8px) scale(.98);
    pointer-events: none;
  }

  body:not(.tipps-tab-active) .mobile-filter-card {
    display: none !important;
  }

  .mobile-day-control {
    display: grid;
    grid-template-columns: 38px 1fr 38px;
    align-items: center;
    gap: 6px;
  }

  .mobile-day-control button {
    min-height: 44px;
    border: 1px solid rgba(95,119,143,.22);
    border-radius: 12px;
    color: #eef5ff;
    background: rgba(15,22,32,.78);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
    font-weight: 900;
  }

  .mobile-day-control > button:first-child,
  .mobile-day-control > button:last-child {
    font-size: 1.22rem;
    color: #8da2b8;
  }

  .mobile-day-current {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: center;
    justify-items: center;
    padding: 5px 10px;
    text-transform: uppercase;
  }

  .mobile-day-current span {
    color: #00e676;
    font-size: .62rem;
    letter-spacing: .16em;
  }

  .mobile-day-current strong {
    font-family: var(--fd, Impact, sans-serif);
    color: #fff;
    font-size: .96rem;
    letter-spacing: .05em;
  }

  .mobile-league-trigger {
    width: 100%;
    min-height: 44px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    border: 1px solid rgba(95,119,143,.22);
    border-radius: 12px;
    color: #edf5ff;
    background:
      linear-gradient(135deg, rgba(255,255,255,.035), rgba(0,230,118,.055)),
      rgba(15,22,32,.8);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
    font-family: var(--fb, sans-serif);
    text-align: left;
  }

  .mobile-league-trigger strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: .96rem;
    letter-spacing: .02em;
  }

  .mobile-league-trigger.is-open {
    opacity: 0;
    transform: translateY(8px) scale(.98);
    pointer-events: none;
  }

  .mlt-kicker {
    color: #00e676;
    font-size: .62rem;
    letter-spacing: .15em;
    text-transform: uppercase;
  }

  .filter-wrap {
    display: none !important;
  }

  .dn {
    display: none !important;
  }

  .mobile-league-picker {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: block;
    pointer-events: none;
  }

  .mobile-league-picker.is-open {
    pointer-events: auto;
  }

  .mlp-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0,0,0,.45);
    opacity: 0;
    transition: opacity .18s ease;
  }

  .mlp-sheet {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: calc(var(--mobile-nav-lift, 0px) + 84px);
    max-height: min(58vh, 480px);
    padding: 16px;
    border: 1px solid rgba(64,196,255,.26);
    border-radius: 24px;
    background:
      radial-gradient(circle at 16% 0%, rgba(0,230,118,.13), transparent 38%),
      linear-gradient(145deg, rgba(20,29,41,.96), rgba(8,13,20,.96));
    box-shadow: 0 24px 70px rgba(0,0,0,.55), 0 0 38px rgba(0,230,118,.13);
    backdrop-filter: blur(24px) saturate(1.35);
    -webkit-backdrop-filter: blur(24px) saturate(1.35);
    transform: translateY(18px) scale(.98);
    opacity: 0;
    transition: transform .2s ease, opacity .2s ease;
  }

  .mobile-league-picker.is-open .mlp-backdrop { opacity: 1; }
  .mobile-league-picker.is-open .mlp-sheet { opacity: 1; transform: translateY(0) scale(1); }

  .mlp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    color: #f4fff9;
  }

  .mlp-head span {
    display: block;
    color: #00e676;
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
  }

  .mlp-head strong {
    font-family: var(--fd, Impact, sans-serif);
    font-size: 1.5rem;
    letter-spacing: .05em;
  }

  .mlp-close {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    color: #fff;
    font-size: 1.7rem;
  }

  .mlp-day-row {
    display: grid;
    grid-template-columns: 46px 1fr 46px;
    gap: 8px;
    align-items: center;
    margin: 0 0 12px;
  }

  .mlp-day-row button,
  .mlp-day-row strong {
    min-height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(95,119,143,.22);
    border-radius: 14px;
    color: #eef5ff;
    background: rgba(15,22,32,.78);
  }

  .mlp-day-row button {
    font-size: 1.5rem;
    color: #8da2b8;
  }

  .mlp-day-row strong {
    font-family: var(--fd, Impact, sans-serif);
    font-size: 1.12rem;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  .mlp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-height: 330px;
    overflow: auto;
    padding-right: 2px;
  }

  .mlp-option {
    min-height: 52px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    background: rgba(13,20,30,.76);
    color: #dbe7f5;
    font-weight: 800;
    font-size: .9rem;
    text-align: left;
    padding: 10px 12px;
  }

  .mlp-option.is-active {
    color: #f5fff9;
    border-color: rgba(0,230,118,.58);
    background:
      radial-gradient(circle at 18% 0%, rgba(0,230,118,.22), transparent 50%),
      rgba(12,28,24,.88);
    box-shadow: inset 0 0 0 1px rgba(0,230,118,.16), 0 0 18px rgba(0,230,118,.16);
  }
}
