  /* Soccernet calendar overlay – desktop: dropdown, mobile: full-screen paneel */

    #snc-calendar-overlay {
    display: none;
    position: absolute;
    top: 290px; /* sinu header + reklaami kõrguse summa */
    right: calc((100vw - 1110px) / 2);
    z-index: 1001;
    }

    @media (max-width: 1110px) {
    #snc-calendar-overlay {
        right: 0;
        left: 0;
        margin: 0 auto;
    }
    }

    #snc-calendar-panel {
    width: 340px;
    max-height: calc(100vh - 290px - 16px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    }

  /* Keha (kalender + mängu/ uudiste list) – üks scrollbar */
    #snc-calendar-body {
    flex: 1;
    overflow-y: auto;
    }

  /* Footer X nupuga – alati paneeli allservas */
  #snc-calendar-footer {
    height: 45px;
    width: 100%;
    text-align: center;
    font-size: 40px;
    color: #ffffff;
    background-color: var(--color-nav-background);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Mobiil: täisekraan, lilla raam täidab ekraani */
  @media (max-width: 768px) {
    #snc-calendar-overlay {
      position: fixed;
      left: 0;
      right: 0;
      top: 0;
      bottom: 0;
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 500;
    }

    #snc-calendar-panel {
      width: 100%;
      height: 100%;
      max-height: 100%;
      border-radius: 0;
    }
  }